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

feat: support dual package #2

Merged
merged 6 commits into from
Jan 15, 2023
Merged

feat: support dual package #2

merged 6 commits into from
Jan 15, 2023

Conversation

azu
Copy link
Owner

@azu azu commented Jan 14, 2023

This is example migration step for tsconfig-to-dual-package

  1. Install tsconfig-to-dual-package && add type and exports
  2. Update tsconfig.json for ESM and Add tsconfig.cjs.json for CJS
  3. Use --loader ts-node/esm instead --require ts-node/register
  4. Convert source code to ESM

Test Plan

npm run clean
npm run build
npx publint
# tsconfig-to-dual-package-example lint results:
# All good!

@azu azu linked an issue Jan 14, 2023 that may be closed by this pull request
@azu azu added the Type: Breaking Change Includes breaking changes label Jan 14, 2023
@azu azu merged commit 9b59390 into main Jan 15, 2023
@azu azu deleted the 1-support-dual-package-1 branch January 15, 2023 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Breaking Change Includes breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support dual-package
1 participant