Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Chong committed Apr 2, 2024
1 parent 783271e commit 5fbf1cf
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
],
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": [
"styles.css"
],
Expand Down
7 changes: 0 additions & 7 deletions packages/components/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,4 @@ const getCompiledConfigByModuleType = format => ({
export default [
getCompiledConfigByModuleType("cjs"),
getCompiledConfigByModuleType("esm"),
// This step doesn't matter if it's cjs or esm, the output will be the same (esm is faster)
{
input: `./${OUTPUT_DIR}/esm/dts/index.d.ts`,
output: [{ file: `${OUTPUT_DIR}/index.d.ts`, format: "esm" }],
external: [/\.scss$/],
plugins: [dts()],
},
]
2 changes: 1 addition & 1 deletion packages/components/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.dist.json",
"compilerOptions": {
"declarationDir": "dist/cjs/dts"
"declarationDir": "dist/cjs"
}
}
2 changes: 1 addition & 1 deletion packages/components/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.dist.json",
"compilerOptions": {
"declarationDir": "dist/esm/dts"
"declarationDir": "dist/esm"
}
}
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"@kaizen/components#build": {
"dependsOn": ["@kaizen/design-tokens#build"],
"inputs": ["src/**"],
"outputs": ["dist/**"]
"outputs": ["dist/**"],
"cache": false
},
"@kaizen/components#test:treeshake": {
"dependsOn": ["@kaizen/components#build"],
Expand Down

0 comments on commit 5fbf1cf

Please sign in to comment.