-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix(deps): update dependency @preconstruct/cli to v2 #1693
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/commercetools/ui-kit/2tlvnlc7j |
🦋 Changeset detectedLatest commit: b7c5a7a The changes in this PR will be included in the next version bump. This PR includes changesets to release 90 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
"main": "dist/design-system.cjs.js", | ||
"module": "dist/design-system.esm.js", | ||
"main": "dist/commercetools-uikit-design-system.cjs.js", | ||
"module": "dist/commercetools-uikit-design-system.esm.js", |
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.
💯
165c4f7
to
b69b369
Compare
b69b369
to
165c4f7
Compare
165c4f7
to
b7c5a7a
Compare
This PR contains the following updates:
1.1.34
->2.0.0
Release Notes
preconstruct/preconstruct
v2.0.0
Compare Source
Major Changes
9ac1df4
Thanks @mitchellhamilton! - Change the way entrypoints are configured. Instead of the entrypoints option referring to the entrypoint directories, they new refer to entrypoint source files. They are resolved relative to thesrc
directory of the package. To get the entrypoint directory from a source file, the extension is removed from the path relative to thesrc
directory and if the last part isindex
, theindex
part is removed. For example, an entrypoint ofsomething.js
would create an entrypoint atpkg-name/something
andanother/index.js
would create an entrypoint atpkg-name/another
.preconstruct fix
will also now automatically create the entrypointpackage.json
s because it already knows where the source file is.For example, a package that looks like the following in
@preconstruct/cli@1
package.json
src/index.js
src/other.js
other/package.json
Would need the following changes to work in
@preconstruct/cli@2
package.json
other/package.json
9ac1df4
Thanks @mitchellhamilton! - Change the way thatprocess.env.NODE_ENV
is replaced in the production CJS bundle to search forprocess.env.NODE_ENV
in the AST and replace it rather than using Terser to replace it and also skip running Terser on the production CJS bundle and instead rely on Rollup's dead code elimination to improve build performance. It's extremely unlikely that this will break anything but this is being made in a major release just in case it does.9ac1df4
Thanks @mitchellhamilton! - Change default dist filename strategy to include the scope and entrypoint path. For example, with an entrypoint accessible at@scope/pkg/entrypoint
, the CJS dist filename would bescope-pkg-entrypoint.cjs.js
. If you'd like to use the old dist filenames, you can set"distFilenameStrategy": "unscoped-package-name"
in your root Preconstruct config.dd0f041
Thanks @mitchellhamilton! - Use fast-glob directly instead of globby. This shouldn't break anything but because using fast-glob directly instead of globby may have subtly different behaviour, this is being done in a major version.Patch Changes
027e44d
Thanks @mitchellhamilton! - Remove theuseSourceInsteadOfGeneratingTSDeclarations
anduseTSMorphToGenerateTSDeclarations
experimental flags as the TypeScript declaration generator no longer has the issues that these experimental flags tried to solve20902dc
Thanks @mitchellhamilton! - Use symlinks instead of CJS re-export files for "module" and "browser" field when usingpreconstruct dev
.v1.2.1
Compare Source
Patch Changes
620e71f
#344 Thanks @mitchellhamilton! - Makepreconstruct fix
automatically create entrypoint package.jsons rather than asking if it should create them with the new entrypoints experimental flag620e71f
#344 Thanks @mitchellhamilton! - Renameonly-unscoped-package-name
tounscoped-package-name
in thedistFilenameStrategy
option(which is only enabled when the experimentalnewDistFilenames
flag is enabled)v1.2.0
Compare Source
Minor Changes
3c031da
#343 Thanks @Andarist! - Respectpackage.json#browser
when bundling dependencies for the UMD build.Patch Changes
a198073
#340 Thanks @Andarist! - Allow to build UMD files for packages having dependencies with top-levelthis
in ESM files. This can often happen if a dependency package is transpiled down to ES5 using TypeScript.Renovate configuration
📅 Schedule: "before 3am on Monday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.