From eebf18615377884f5f9a2f9bf0f6d33cdc43487d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Che=C5=82miniak?= Date: Tue, 29 Oct 2024 18:46:33 +0100 Subject: [PATCH] feat: change cjs to esm --- .changeset/lazy-steaks-jog.md | 7 +++++++ .changeset/pre.json | 1 + packages/cli/CHANGELOG.md | 6 ++++++ packages/cli/package.json | 4 ++-- packages/cli/tsconfig.json | 5 +++-- packages/core/CHANGELOG.md | 6 ++++++ packages/core/package.json | 4 ++-- packages/core/tsconfig.json | 5 +++-- packages/create-stapler-app/CHANGELOG.md | 6 ++++++ packages/create-stapler-app/package.json | 4 ++-- packages/create-stapler-app/tsconfig.json | 5 +++-- pnpm-lock.yaml | 23 +++++++++++++++-------- 12 files changed, 56 insertions(+), 20 deletions(-) create mode 100644 .changeset/lazy-steaks-jog.md diff --git a/.changeset/lazy-steaks-jog.md b/.changeset/lazy-steaks-jog.md new file mode 100644 index 0000000..1cada94 --- /dev/null +++ b/.changeset/lazy-steaks-jog.md @@ -0,0 +1,7 @@ +--- +'@tonik/create-stapler-app': minor +'@tonik/create-stapler-app-core': minor +'@tonik/create-stapler-app-cli': minor +--- + +Change cjs to esm diff --git a/.changeset/pre.json b/.changeset/pre.json index 81ed7cd..7a1d39d 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -10,6 +10,7 @@ "clean-frogs-poke", "cuddly-cups-itch", "curly-ligers-cheat", + "lazy-steaks-jog", "light-walls-obey", "new-eggs-cheat", "old-radios-bake", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 7676e96..5f01607 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,11 @@ # @tonik/create-stapler-app +## 0.1.0-alpha.2 + +### Minor Changes + +- Change cjs to esm + ## 0.1.0-alpha.1 ### Minor Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 496f652..fd7c2ef 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "@tonik/create-stapler-app-cli", - "version": "0.1.0-alpha.1", - "main": "../create-stapler-app/dist/cli/index.mjs", + "version": "0.1.0-alpha.2", + "main": "../create-stapler-app/dist/cli/index.js", "types": "../create-stapler-app/dist/cli/index.d.ts", "scripts": { "build": "tsup index.ts --out-dir ../create-stapler-app/dist/cli --format esm", diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index eec2338..21b8d7c 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { - "target": "ES2018", - "module": "CommonJS", + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Node", "strict": true, "esModuleInterop": true, "outDir": "./dist", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 7c7e9ef..f8a115c 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,11 @@ # @tonik/create-stapler-app-core +## 0.1.0-alpha.2 + +### Minor Changes + +- Change cjs to esm + ## 0.1.0-alpha.1 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index a3fb5d3..58d5d5e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,10 +1,10 @@ { "name": "@tonik/create-stapler-app-core", - "version": "0.1.0-alpha.1", + "version": "0.1.0-alpha.2", "main": "../create-stapler-app/dist/core/index.js", "types": "../create-stapler-app/dist/core/index.d.ts", "scripts": { - "build": "tsup index.ts --out-dir ../create-stapler-app/dist/core --format cjs", + "build": "tsup index.ts --out-dir ../create-stapler-app/dist/core --format esm", "dev": "tsc -w" }, "dependencies": { diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 6c41159..3650d82 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { - "target": "ES2018", - "module": "CommonJS", + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Node", "strict": true, "esModuleInterop": true, "outDir": "./dist", diff --git a/packages/create-stapler-app/CHANGELOG.md b/packages/create-stapler-app/CHANGELOG.md index 7c4177f..945b08d 100644 --- a/packages/create-stapler-app/CHANGELOG.md +++ b/packages/create-stapler-app/CHANGELOG.md @@ -1,5 +1,11 @@ # @tonik/create-stapler-app +## 0.1.0-alpha.13 + +### Minor Changes + +- Change cjs to esm + ## 0.1.0-alpha.12 ### Minor Changes diff --git a/packages/create-stapler-app/package.json b/packages/create-stapler-app/package.json index f4ec8ec..644f675 100644 --- a/packages/create-stapler-app/package.json +++ b/packages/create-stapler-app/package.json @@ -1,7 +1,7 @@ { "name": "@tonik/create-stapler-app", - "version": "0.1.0-alpha.12", - "main": "./dist/core/index.js", + "version": "0.1.0-alpha.13", + "main": "./dist/core/index.mjs", "types": "./dist/core/index.d.ts", "bin": { "create-stapler-app": "./dist/cli/index.mjs" diff --git a/packages/create-stapler-app/tsconfig.json b/packages/create-stapler-app/tsconfig.json index eec2338..21b8d7c 100644 --- a/packages/create-stapler-app/tsconfig.json +++ b/packages/create-stapler-app/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { - "target": "ES2018", - "module": "CommonJS", + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Node", "strict": true, "esModuleInterop": true, "outDir": "./dist", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b33368b..05df30c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -145,18 +145,25 @@ importers: version: 5.6.3 packages/create-stapler-app: + dependencies: + chalk: + specifier: ^5.3.0 + version: 5.3.0 + commander: + specifier: ^12.1.0 + version: 12.1.0 + gradient-string: + specifier: ^3.0.0 + version: 3.0.0 + inquirer: + specifier: ^10.2.2 + version: 10.2.2 devDependencies: - '@tonik/create-stapler-app-cli': - specifier: workspace:* - version: link:../cli - '@tonik/create-stapler-app-core': - specifier: workspace:* - version: link:../core tsup: - specifier: ^8.3.5 + specifier: ^8.2.4 version: 8.3.5(typescript@5.6.3) typescript: - specifier: ^5.6.3 + specifier: ^5.6.2 version: 5.6.3 packages: