-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use babel to transpile TS projects #47502
Changes from 8 commits
754d9f0
b1437cb
f30a2ee
4e6d7ce
f3a6ae0
2bb6c25
4d29dab
b64457b
b35c0c5
6278a0d
fcf7ac7
1712884
df001a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
}, | ||
"scripts": { | ||
"clean": "npx rimraf js css src/__color-studio", | ||
"prepare": "node bin/prepare-sass-assets.js && node bin/build-css.js" | ||
"postinstall": "node bin/prepare-sass-assets.js && node bin/build-css.js" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure about this change tbh. Calypso needs those commands before it can use the package, so We could keep There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does It looks like yarn uses different lifecycle scripts, should we be updating these? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yarn runs So either we have our own explicit list ( |
||
}, | ||
"devDependencies": { | ||
"postcss": "^7.0.32", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "./tsconfig", | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"declaration": false, | ||
"declarationMap": false, | ||
"declarationDir": null, | ||
"outDir": "dist/cjs", | ||
"composite": false, | ||
"incremental": true | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
/** | ||
* Internal dependencies | ||
*/ | ||
export { default, Props } from './domain-picker'; | ||
export { default } from './domain-picker'; | ||
export type { Props } from './domain-picker'; | ||
|
||
export { ITEM_TYPE_RADIO, ITEM_TYPE_BUTTON } from './domain-picker/suggestion-item'; | ||
export type { SUGGESTION_ITEM_TYPE } from './domain-picker/suggestion-item'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tsc --build ... --clean
deletes the files but lefts lots of empty dirs, that's why I addednpx rimraf dist