Skip to content
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

Merged
merged 4 commits into from
Nov 23, 2020

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 23, 2020

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@preconstruct/cli 1.1.34 -> 2.0.0 age adoption passing confidence

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 the src directory of the package. To get the entrypoint directory from a source file, the extension is removed from the path relative to the src directory and if the last part is index, the index part is removed. For example, an entrypoint of something.js would create an entrypoint at pkg-name/something and another/index.js would create an entrypoint at pkg-name/another.

    preconstruct fix will also now automatically create the entrypoint package.jsons because it already knows where the source file is.

    For example, a package that looks like the following in @preconstruct/cli@1

    package.json

    {
      "name": "pkg",
      "main": "dist/pkg.cjs.js",
      "preconstruct": {
        "entrypoints": [".", "other"]
      }
    }

    src/index.js

    export const something = true;

    src/other.js

    export const other = true;

    other/package.json

    {
      "main": "dist/pkg.cjs.js",
      "preconstruct": {
        "source": "../src/other.js"
      }
    }

    Would need the following changes to work in @preconstruct/cli@2

    package.json

     {
       "name": "pkg",
       "main": "dist/pkg.cjs.js",
       "preconstruct": {
    -    "entrypoints": [".", "other"]
    +    "entrypoints": ["index.js", "other.js"]
       }
     }

    other/package.json

     {
       "main": "dist/pkg.cjs.js",
    -  "preconstruct": {
    -    "source": "../src/other.js"
    -  }
     }
  • 9ac1df4 Thanks @​mitchellhamilton! - Change the way that process.env.NODE_ENV is replaced in the production CJS bundle to search for process.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 be scope-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 the useSourceInsteadOfGeneratingTSDeclarations and useTSMorphToGenerateTSDeclarations experimental flags as the TypeScript declaration generator no longer has the issues that these experimental flags tried to solve

  • 20902dc Thanks @​mitchellhamilton! - Use symlinks instead of CJS re-export files for "module" and "browser" field when using preconstruct dev.

v1.2.1

Compare Source

Patch Changes
  • 620e71f #​344 Thanks @​mitchellhamilton! - Make preconstruct fix automatically create entrypoint package.jsons rather than asking if it should create them with the new entrypoints experimental flag

  • 620e71f #​344 Thanks @​mitchellhamilton! - Rename only-unscoped-package-name to unscoped-package-name in the distFilenameStrategy option(which is only enabled when the experimental newDistFilenames flag is enabled)

v1.2.0

Compare Source

Minor Changes
Patch Changes
  • a198073 #​340 Thanks @​Andarist! - Allow to build UMD files for packages having dependencies with top-level this 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot added the 🤖 Type: Dependencies Dependency updates or something similar label Nov 23, 2020
@vercel
Copy link

vercel bot commented Nov 23, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/commercetools/ui-kit/2tlvnlc7j
✅ Preview: https://ui-kit-git-renovate-preconstruct-cli-2x.commercetools.vercel.app

@changeset-bot
Copy link

changeset-bot bot commented Nov 23, 2020

🦋 Changeset detected

Latest commit: b7c5a7a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 90 packages
Name Type
@commercetools-uikit/design-system Patch
@commercetools-uikit/calendar-time-utils Patch
@commercetools-uikit/calendar-utils Patch
@commercetools-uikit/accessible-hidden Patch
@commercetools-uikit/avatar Patch
@commercetools-uikit/accessible-button Patch
@commercetools-uikit/flat-button Patch
@commercetools-uikit/icon-button Patch
@commercetools-uikit/link-button Patch
@commercetools-uikit/primary-button Patch
@commercetools-uikit/secondary-button Patch
@commercetools-uikit/secondary-icon-button Patch
@commercetools-uikit/card Patch
@commercetools-uikit/collapsible Patch
@commercetools-uikit/collapsible-motion Patch
@commercetools-uikit/collapsible-panel Patch
@commercetools-uikit/constraints Patch
@commercetools-uikit/data-table Patch
@commercetools-uikit/data-table-manager Patch
@commercetools-uikit/field-errors Patch
@commercetools-uikit/field-label Patch
@commercetools-uikit/async-creatable-select-field Patch
@commercetools-uikit/async-select-field Patch
@commercetools-uikit/creatable-select-field Patch
@commercetools-uikit/date-field Patch
@commercetools-uikit/date-range-field Patch
@commercetools-uikit/date-time-field Patch
@commercetools-uikit/localized-multiline-text-field Patch
@commercetools-uikit/localized-text-field Patch
@commercetools-uikit/money-field Patch
@commercetools-uikit/multiline-text-field Patch
@commercetools-uikit/number-field Patch
@commercetools-uikit/password-field Patch
@commercetools-uikit/radio-field Patch
@commercetools-uikit/search-select-field Patch
@commercetools-uikit/select-field Patch
@commercetools-uikit/text-field Patch
@commercetools-uikit/time-field Patch
@commercetools-uikit/grid Patch
@commercetools-uikit/icons Patch
@commercetools-uikit/async-creatable-select-input Patch
@commercetools-uikit/async-select-input Patch
@commercetools-uikit/checkbox-input Patch
@commercetools-uikit/creatable-select-input Patch
@commercetools-uikit/date-input Patch
@commercetools-uikit/date-range-input Patch
@commercetools-uikit/date-time-input Patch
@commercetools-uikit/input-utils Patch
@commercetools-uikit/localized-money-input Patch
@commercetools-uikit/localized-multiline-text-input Patch
@commercetools-uikit/localized-rich-text-input Patch
@commercetools-uikit/localized-text-input Patch
@commercetools-uikit/money-input Patch
@commercetools-uikit/multiline-text-input Patch
@commercetools-uikit/number-input Patch
@commercetools-uikit/password-input Patch
@commercetools-uikit/radio-input Patch
@commercetools-uikit/rich-text-input Patch
@commercetools-uikit/rich-text-utils Patch
@commercetools-uikit/search-select-input Patch
@commercetools-uikit/select-input Patch
@commercetools-uikit/select-utils Patch
@commercetools-uikit/text-input Patch
@commercetools-uikit/time-input Patch
@commercetools-uikit/toggle-input Patch
@commercetools-uikit/label Patch
@commercetools-uikit/link Patch
@commercetools-uikit/loading-spinner Patch
@commercetools-uikit/messages Patch
@commercetools-uikit/notifications Patch
@commercetools-uikit/primary-action-dropdown Patch
@commercetools-uikit/spacings-inline Patch
@commercetools-uikit/spacings-inset Patch
@commercetools-uikit/spacings-inset-squish Patch
@commercetools-uikit/spacings-stack Patch
@commercetools-uikit/stamp Patch
@commercetools-uikit/table Patch
@commercetools-uikit/tag Patch
@commercetools-uikit/text Patch
@commercetools-uikit/tooltip Patch
@commercetools-uikit/hooks Patch
@commercetools-uikit/i18n Patch
@commercetools-uikit/localized-utils Patch
@commercetools-uikit/utils Patch
@commercetools-uikit/buttons Patch
@commercetools-uikit/fields Patch
@commercetools-uikit/inputs Patch
@commercetools-uikit/spacings Patch
@commercetools-frontend/ui-kit Patch
visual-testing-app Patch

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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@emmenko emmenko force-pushed the renovate/preconstruct-cli-2.x branch from 165c4f7 to b7c5a7a Compare November 23, 2020 12:57
@emmenko emmenko merged commit c7d495b into master Nov 23, 2020
@emmenko emmenko deleted the renovate/preconstruct-cli-2.x branch November 23, 2020 13:25
@ghost ghost mentioned this pull request Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 Type: Dependencies Dependency updates or something similar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants