Skip to content

Commit

Permalink
feat: change cjs to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
maneike committed Oct 29, 2024
1 parent 388ab23 commit eebf186
Show file tree
Hide file tree
Showing 12 changed files with 56 additions and 20 deletions.
7 changes: 7 additions & 0 deletions .changeset/lazy-steaks-jog.md
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "ES2018",
"module": "CommonJS",
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"esModuleInterop": true,
"outDir": "./dist",
Expand Down
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
5 changes: 3 additions & 2 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "ES2018",
"module": "CommonJS",
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"esModuleInterop": true,
"outDir": "./dist",
Expand Down
6 changes: 6 additions & 0 deletions packages/create-stapler-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/create-stapler-app/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 3 additions & 2 deletions packages/create-stapler-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "ES2018",
"module": "CommonJS",
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"esModuleInterop": true,
"outDir": "./dist",
Expand Down
23 changes: 15 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eebf186

Please sign in to comment.