Skip to content

Commit

Permalink
Merge branch 'release/v0.16.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Jan 6, 2024
2 parents 0052fe8 + 36c8f10 commit 5fecf46
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeed",
"type": "module",
"version": "0.16.0",
"version": "0.16.1",
"description": "🌱 Simple foundation library",
"author": {
"name": "Dirk Holtwick",
Expand Down Expand Up @@ -35,9 +35,6 @@
"exports": {
".": {
"types": "./dist/index.all.d.ts",
"browser": "./dist/index.browser.js",
"import": "./dist/index.node.js",
"require": "./dist/index.node.cjs",
"node": "./dist/index.node.js",
"default": "./dist/index.browser.js"
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('treeshake', () => {

it('should shake it in dist as well', async () => {
const code = `
import { arrayUnion } from '../dist/index.browser.js'
import { arrayUnion } from '..'
let a = [1,2,3,3,4]
let aa = arrayUnion(a)
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"include": [
"src/**/*.ts",
"tsup.config.ts",
"vitest-setup.ts"
],
"exclude": [
Expand Down
5 changes: 2 additions & 3 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ export const tsup: Options = {
sourcemap: env === 'production', // source map is only available in prod
clean: true, // rimraf disr
dts: true, // generate dts file for main module
format: ['cjs', 'esm'], // generate cjs and esm files
format: ['esm', 'cjs'], // generate cjs and esm files
minify: false, // env === 'production',
bundle: false, // env === 'production',
skipNodeModulesBundle: true,
// skipNodeModulesBundle: true,
entryPoints: ['src/index.all.ts'],
// watch: env === 'development',
target: 'es2020',
outDir: 'dist', // env === 'production' ? 'dist' : 'lib',
// entry: ['src/**/*[!.spec].ts'],
entry: ['src/**/*.ts'],
}

0 comments on commit 5fecf46

Please sign in to comment.