-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(package-bundler): move TS types generation to rollup (#5270)
* chore(deps): upgrade typescript-transform-paths to ^3.5.2 * feat(bundler): use rollup to generate types * chore: delete tsconfig.types.json * chore(package-bundler): update readme * feat(package-bundler): resolve aliases through tsconfig * chore(storybook): remove broken config * chore(turbo): fix turbo config and split into package configs * chore(tailwind/deps): remove unused KAIO devDep * ci: fix storybook build * ci: fix broken turbo storybook commands * chore: remove package.json typescript version lock comment * style(package-bundler): clean up rollup config
- Loading branch information
1 parent
e5a3c7a
commit 573097f
Showing
31 changed files
with
364 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@kaizen/components": patch | ||
"@kaizen/design-tokens": patch | ||
"@kaizen/tailwind": patch | ||
--- | ||
|
||
Update @kaizen/package-bundler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@kaizen/package-bundler": patch | ||
--- | ||
|
||
Update dep `typescript-transform-paths` to `^3.5.2` and loosen `typescript` peerDep version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"@kaizen/package-bundler": major | ||
--- | ||
|
||
Move TypeScript types generation to rollup as the separate step using `tsc` was not resolving aliases with `[email protected]`. | ||
|
||
BREAKING CHANGES: | ||
- `@kaizen/package-bundler/tsconfig.dist.json` has been removed | ||
- Remove this from `extends` within your `tsconfig.dist.json` | ||
- `@kaizen/package-bundler/tsconfig.types.json` | ||
- Delete your `tsconfig.types.json` (no longer required) | ||
- `rollupConfig` no longer accepts the `alias` arg as aliases are now automatically resolved based on your `tsconfig.json` paths | ||
- Remove `alias` defined within your `rollup.config.mjs` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"extends": ["//"], | ||
"tasks": { | ||
"build:tailwind": { | ||
"dependsOn": ["^build"], | ||
"inputs": ["$TURBO_DEFAULT$", "../packages/**/*"], | ||
"outputs": ["docs/.storybook/preview.css"], | ||
"cache": false | ||
}, | ||
"build:docs": { | ||
"dependsOn": ["^build", "build:tailwind"], | ||
"inputs": ["$TURBO_DEFAULT$", "../packages/**/*"], | ||
"outputs": ["docs/storybook-static/**"], | ||
"cache": false | ||
}, | ||
"build:test": { | ||
"dependsOn": ["^build", "build:tailwind"], | ||
"inputs": ["$TURBO_DEFAULT$", "../packages/**/*"], | ||
"outputs": ["docs/storybook-static/**"], | ||
"cache": false | ||
}, | ||
"build:chromatic": { | ||
"dependsOn": ["^build", "build:tailwind"], | ||
"outputs": ["docs/storybook-static/**"], | ||
"cache": false | ||
}, | ||
"dev": { | ||
"dependsOn": ["^build", "build:tailwind"], | ||
"cache": false | ||
}, | ||
"test:storybook": { | ||
"dependsOn": ["^build", "build:tailwind"], | ||
"outputs": ["docs/storybook-static/**"], | ||
"cache": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"extends": ["//"], | ||
"tasks": { | ||
"build": { | ||
"inputs": [ | ||
"$TURBO_DEFAULT$", | ||
"!**/README.md", | ||
"!**/*.stories.*", | ||
"!**/*.spec.*", | ||
"!__tests__/**/*", | ||
"!CHANGELOG.md", | ||
"!svgo.config.js", | ||
"!svgo.spec.ts", | ||
"!svgoUtils.js" | ||
], | ||
"outputs": ["dist/**"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"extends": ["//"], | ||
"tasks": { | ||
"build": { | ||
"inputs": [ | ||
"$TURBO_DEFAULT$", | ||
"!**/README.md", | ||
"!_docs/**/*", | ||
"!CHANGELOG.md", | ||
"!CONTRIBUTING.md", | ||
"!TODO.md" | ||
], | ||
"outputs": ["dist/**"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": ["//"], | ||
"tasks": { | ||
"build": { | ||
"inputs": ["$TURBO_DEFAULT$", "!CHANGELOG.md", "!README.md"], | ||
"outputs": ["dist/**"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,7 @@ | |
"files": [ | ||
"dist", | ||
"bin", | ||
"tsconfig.base.json", | ||
"tsconfig.dist.json", | ||
"tsconfig.types.json" | ||
"tsconfig.base.json" | ||
], | ||
"author": "Geoffrey Chong <[email protected]>", | ||
"homepage": "https://cultureamp.design", | ||
|
@@ -37,7 +35,7 @@ | |
"rollup-plugin-node-externals": "^7.1.3", | ||
"rollup-plugin-postcss": "^4.0.2", | ||
"ts-patch": "^3.2.1", | ||
"typescript-transform-paths": "^3.5.1" | ||
"typescript-transform-paths": "^3.5.2" | ||
}, | ||
"dependenciesComments": { | ||
"ts-patch": "Required for typescript-transform-paths" | ||
|
@@ -53,11 +51,6 @@ | |
"postcss-preset-env": "^9.5.14 || ^10.0.0", | ||
"rollup": "^4.18.0", | ||
"tslib": ">=2.6.2", | ||
"typescript": ">= 5.4.5 <= 5.5.4" | ||
}, | ||
"peerDependenciesMeta": { | ||
"typescript": { | ||
"comments": "https://github.com/LeDDGroup/typescript-transform-paths/issues/266" | ||
} | ||
"typescript": "5.x" | ||
} | ||
} |
Oops, something went wrong.