Skip to content

Commit

Permalink
Merge pull request #1 from alexandernanberg/tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer authored Dec 16, 2024
2 parents 89db6aa + a5b86d6 commit b453bda
Show file tree
Hide file tree
Showing 7 changed files with 235 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"@types/react-dom": "^19.0.0",
"@types/yargs": "^17.0.33",
"dts-bundle-generator": "^9.5.1",
"esbuild": "^0.24.0",
"eslint": "^8.0.0",
"eslint-plugin-workspaces": "^0.10.1",
"invariant": "^2.2.4",
Expand All @@ -54,6 +53,7 @@
"prettier-2": "npm:prettier@^2.8.8",
"prettier-plugin-packagejson": "^2.5.6",
"react-dom": "^19.0.0",
"tsup": "^8.3.5",
"typescript": "^5.7.2"
},
"pnpm": {
Expand Down
4 changes: 1 addition & 3 deletions packages/babel-fbtee/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
"fbtee": "lib/bin.js"
},
"scripts": {
"build": "rm -f lib/index.js; pnpm build:src; pnpm build:bin",
"build:bin": "esbuild --target=node22 --platform=node --format=esm --outfile=lib/bin.js --external:@nkzw/babel-plugin-fbtee --bundle ./src/bin.tsx",
"build:src": "esbuild --target=node22 --platform=node --format=esm --outfile=lib/index.js --external:@nkzw/babel-plugin-fbtee --external:@nkzw/babel-plugin-fbtee-runtime --external:@nkzw/babel-plugin-fbtee-auto-import --bundle ./src/index.tsx",
"build": "tsup src/index.tsx src/bin.tsx -d lib --target=node22 --format=esm --clean --no-splitting",
"build:types": "dts-bundle-generator -o lib/index.d.ts src/index.tsx"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-fbtee-auto-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"type": "module",
"main": "lib/index.js",
"scripts": {
"build": "rm -f lib/index.js; esbuild --target=node22 --platform=node --format=esm --outfile=lib/index.js --external:@nkzw/babel-plugin-fbtee --external:@babel/* --bundle ./src/index.tsx",
"build": "tsup src/index.tsx -d lib --target=node22 --format=esm --clean --no-splitting",
"build:types": "dts-bundle-generator -o lib/index.d.ts src/index.tsx"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-fbtee-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"type": "module",
"main": "lib/index.js",
"scripts": {
"build": "rm -f lib/index.js; esbuild --target=node22 --platform=node --format=esm --outfile=lib/index.js --external:@babel/* --bundle ./src/index.tsx",
"build": "tsup src/index.tsx -d lib --target=node22 --format=esm --clean --no-splitting",
"build:types": "dts-bundle-generator -o lib/index.d.ts src/index.tsx"
},
"dependencies": {
Expand Down
4 changes: 1 addition & 3 deletions packages/babel-plugin-fbtee/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
"fbtee": "lib/bin.js"
},
"scripts": {
"build": "rm -f lib/index.js; pnpm build:src; pnpm build:bin",
"build:bin": "esbuild --target=node22 --platform=node --format=esm --outfile=lib/bin.js --jsx=automatic --external:glob --external:jest-docblock --external:yargs --external:@babel/* --bundle ./src/bin.tsx",
"build:src": "esbuild --target=node22 --platform=node --format=esm --outfile=lib/index.js --jsx=automatic --external:glob --external:jest-docblock --external:yargs --external:@babel/* --bundle ./src/index.tsx",
"build": "tsup src/index.tsx src/bin.tsx -d lib --target=node22 --format=esm --clean --no-splitting",
"build:types": "dts-bundle-generator -o lib/index.d.ts src/index.tsx"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/fbtee/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"type": "module",
"main": "lib/index.js",
"scripts": {
"build": "rm -f lib/index.js; esbuild --target=node22 --platform=node --format=esm --outfile=lib/index.js --jsx=automatic --bundle ./src/index.tsx;",
"build": "tsup src/index.tsx -d lib --target=node22 --format=esm --clean --no-splitting",
"build:types": "dts-bundle-generator -o lib/index.d.ts src/index.tsx"
},
"dependencies": {
Expand Down
Loading

0 comments on commit b453bda

Please sign in to comment.