Skip to content

Commit

Permalink
change build output
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroki0525 committed Dec 7, 2023
1 parent d32a23d commit 1af56ed
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 64 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"tsx": "^4.6.2",
"turbo": "^1.11.0",
"typescript": "5.3.3",
"vitest": "^1.0.2"
"vitest": "^0.34.6"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
15 changes: 12 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,21 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/esm/index.js",
"module": "dist/index.js",
"exports": {
"require": "./dist/index.js",
"default": "./dist/esm/index.js"
".": {
"types": {
"require": "./dist/index.d.cts",
"default": "./dist/index.d.ts"
},
"default": {
"require": "./dist/index.cjs",
"default": "./dist/index.js"
}
}
},
"scripts": {
"build": "tsup --config ../../tsup.config.ts",
Expand Down
15 changes: 12 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,21 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/esm/index.js",
"module": "dist/index.js",
"exports": {
"require": "./dist/index.js",
"default": "./dist/esm/index.js"
".": {
"types": {
"require": "./dist/index.d.cts",
"default": "./dist/index.d.ts"
},
"default": {
"require": "./dist/index.cjs",
"default": "./dist/index.js"
}
}
},
"scripts": {
"build": "tsup --config ../../tsup.config.ts",
Expand Down
15 changes: 12 additions & 3 deletions packages/libs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,21 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/esm/index.js",
"module": "dist/index.js",
"exports": {
"require": "./dist/index.js",
"default": "./dist/esm/index.js"
".": {
"types": {
"require": "./dist/index.d.cts",
"default": "./dist/index.d.ts"
},
"default": {
"require": "./dist/index.cjs",
"default": "./dist/index.js"
}
}
},
"scripts": {
"build": "tsup --config ../../tsup.config.ts",
Expand Down
16 changes: 12 additions & 4 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,22 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/esm/index.js",
"module": "dist/index.js",
"exports": {
"require": "./dist/index.js",
"default": "./dist/esm/index.js"
".": {
"types": {
"require": "./dist/index.d.cts",
"default": "./dist/index.d.ts"
},
"default": {
"require": "./dist/index.cjs",
"default": "./dist/index.js"
}
}
},
"type": "module",
"scripts": {
"build": "tsup --config ../../tsup.config.ts",
"init": "tsx init.ts",
Expand Down
114 changes: 65 additions & 49 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export default defineConfig({
clean: true,
dts: true,
shims: true,
legacyOutput: true,
splitting: false,
format: ["esm", "cjs"],
entry: ["src", "!src/**/*.test.*", "!src/**__test__/**"],
Expand Down

0 comments on commit 1af56ed

Please sign in to comment.