-
Notifications
You must be signed in to change notification settings - Fork 507
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 @wessberg/rollup-plugin-ts
+ change output naming structure
#219
Use @wessberg/rollup-plugin-ts
+ change output naming structure
#219
Conversation
Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com>
Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com>
@wessberg/rollup-plugin-ts
@wessberg/rollup-plugin-ts
+ change output naming structure
Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com>
Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com>
Why are we changing the output format? |
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.
I would like to keep the dev/prod distinction in cjs. Also this is breaking change
`${paths.appDist}/${safePackageName(opts.name)}`, | ||
opts.format, | ||
opts.env, | ||
`${paths.appDist}/${opts.format}/index`, |
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.
If we were nice we would automagically update folks package.json for them
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.
Meaning? Codemod thingy? It's could be the next possible step after this whole change.
|
||
expect(shell.test('-f', 'dist/index.d.ts')).toBeTruthy(); | ||
expect(shell.test('-f', 'dist/cjs/index.js')).toBeTruthy(); | ||
expect(shell.test('-f', 'dist/cjs/index.min.js')).toBeTruthy(); |
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.
I am confused. Is .min the production version?
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.
Sure. Why otherwise one will want minifying? and especially, in cjs/node target.
For "reasons", the other PR has comments around that :) Or at least because such design decisions, problems and "features" appear in some other places/tools (referring the new "hook" option in the |
Addresses #208 and #200.
tsdx create
according to new output structure; Plus, correct "package generation". Currently, if user type@hela/core
in the prompt it will createcore
folder in thecwd
and also will add to the generated package.json file a name field to becore
instead@hela/core
, which definitely isn't correct behavior.use strict
on thetsdx-build.test.js
, obviously according to the given eslint config and prettier.pnpm i
on fresh branch, the pnpm's lockfile changed.The only left is to update the
babelPluginTsdx
file, meaning to drop therollup-plugin-babel
dependency and just generate babel config and pass it asbabelConfig
option to the ts plugin. But keep in mind the ts plugin also automatically includes some plugins and does merging some default options.