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

build: convert commonjs packages to esm #598

Merged
merged 27 commits into from
Nov 22, 2023
Merged

Conversation

brandonroberts
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Which package are you modifying?

  • vite-plugin-angular
  • vite-plugin-nitro
  • astro-angular
  • create-analog
  • router
  • platform
  • content
  • nx-plugin
  • trpc

What is the current behavior?

The above packages are bundled as CommonJS instead of ESM

Closes #573

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

The above packages are bundled as ESM instead of CommonJS. In order to upgrade to this released version, the type: module will need to be added to the package.json, which could have unintended impact across a project with multiple applications in it.

Other information

[optional] What gif best describes this PR or how it makes you feel?

@netlify
Copy link

netlify bot commented Aug 9, 2023

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit 7975ee9
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/654c5130c8542400081911f2
😎 Deploy Preview https://deploy-preview-598--analog-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Aug 9, 2023

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit 7975ee9
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/654c5130f7621e0008219ab9
😎 Deploy Preview https://deploy-preview-598--analog-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Aug 9, 2023

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit 7975ee9
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/654c51305de8f8000850df2c
😎 Deploy Preview https://deploy-preview-598--analog-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@benmccann benmccann left a comment

Choose a reason for hiding this comment

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

thank you!! this PR looks great and will be so nice. I just left one minor suggestion, but otherwise looks good to me

an empty message aborts the commit. # # On branch build-esm-packages # Changes to be committed: #
new file:  apps/analog-app-e2e-cypress/package.json # new file:
apps/analog-app-e2e-playwright/package.json # modified:  apps/analog-app/project.json # renamed:
apps/analog-app/vite.config.mts -> apps/analog-app/vite.config.ts # renamed:
apps/analog-preset-e2e/vite.config.mts -> apps/analog-preset-e2e/vite.config.ts # new file:
apps/astro-app-e2e-playwright/package.json # modified:
apps/astro-app-e2e-playwright/tests/app.spec.ts # renamed:
apps/astro-app-e2e-playwright/vite.config.mts -> apps/astro-app-e2e-playwright/vite.config.ts # new
file:  apps/blog-app-e2e-cypress/package.json # modified:  apps/blog-app/project.json # renamed:
apps/blog-app/vite.config.mts -> apps/blog-app/vite.config.ts # modified:
apps/create-analog-e2e/tests/create-analog.spec.ts # renamed:  apps/trpc-app/postcss.config.js ->
apps/trpc-app/postcss.config.cjs # modified:  apps/trpc-app/project.json # renamed:
apps/trpc-app/tailwind.config.js -> apps/trpc-app/tailwind.config.cjs # renamed:
apps/trpc-app/vite.config.mts -> apps/trpc-app/vite.config.ts # renamed:  commitlint.config.js ->
commitlint.config.cjs # modified:  package.json # modified:
packages/create-analog/template-angular-v16/angular.json # modified:
packages/create-analog/template-angular-v16/package.json # renamed:
packages/create-analog/template-angular-v16/vite.config.mts ->
packages/create-analog/template-angular-v16/vite.config.ts # modified:
packages/vite-plugin-nitro/src/lib/vite-plugin-nitro.ts #
@brandonroberts brandonroberts changed the base branch from main to beta November 9, 2023 03:26
@brandonroberts brandonroberts marked this pull request as ready for review November 22, 2023 04:41
@brandonroberts brandonroberts merged commit af53d8a into beta Nov 22, 2023
7 checks passed
@brandonroberts brandonroberts deleted the build-esm-packages branch November 22, 2023 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build: publish packages using ESM and/or CommonJS
2 participants