Skip to content

Commit

Permalink
chore: added clean script to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed Sep 17, 2024
1 parent 14429c6 commit 862e223
Show file tree
Hide file tree
Showing 19 changed files with 110 additions and 46 deletions.
4 changes: 3 additions & 1 deletion examples/cjs-interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
],
"scripts": {
"attw": "pnpm exec attw --pack",
"build": "packem build --cjsInterop"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.16.2",
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"rimraf": "^6.0.1",
"typescript": "^5.6.2"
}
}
4 changes: 3 additions & 1 deletion examples/copy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"devDependencies": {
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"rimraf": "^6.0.1",
"typescript": "^5.6.2"
},
"packem": {
Expand Down
6 changes: 4 additions & 2 deletions examples/esm-cjs-exports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
"./dist"
],
"scripts": {
"build": "packem build --cjsInterop"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"devDependencies": {
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1"
"esbuild": "^0.23.1",
"rimraf": "^6.0.1"
}
}
18 changes: 10 additions & 8 deletions examples/isolated-declarations-oxc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,25 @@
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
".": [
"./dist/index.d.ts"
]
}
},
"files": [
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"devDependencies": {
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"oxc-transform": "^0.29.0",
"rimraf": "^6.0.1",
"typescript": "^5.6.2"
},
"typesVersions": {
"*": {
".": [
"./dist/index.d.ts"
]
}
}
}
18 changes: 10 additions & 8 deletions examples/isolated-declarations-swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,25 @@
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
".": [
"./dist/index.d.ts"
]
}
},
"files": [
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"devDependencies": {
"@swc/core": "^1.7.26",
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"rimraf": "^6.0.1",
"typescript": "^5.6.2"
},
"typesVersions": {
"*": {
".": [
"./dist/index.d.ts"
]
}
}
}
4 changes: 3 additions & 1 deletion examples/isolated-declarations-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"devDependencies": {
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"rimraf": "^6.0.1",
"typescript": "^5.6.2"
}
}
4 changes: 3 additions & 1 deletion examples/mixed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"dependencies": {
"react": "^18.3.1",
Expand All @@ -81,6 +82,7 @@
"@types/node": "^20.11.5",
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"rimraf": "^6.0.1",
"typescript": "^5.6.2"
}
}
4 changes: 3 additions & 1 deletion examples/multi-exports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"dependencies": {
"react": "^18.3.1",
Expand All @@ -61,6 +62,7 @@
"@types/react-dom": "^18.3.0",
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"rimraf": "^6.0.1",
"typescript": "^5.6.2",
"vite": "5.3.5"
}
Expand Down
1 change: 1 addition & 0 deletions examples/native-node-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"nodehun": "^3.0.2",
"rimraf": "^6.0.1",
"typescript": "^5.6.2"
}
}
4 changes: 3 additions & 1 deletion examples/react-tsx-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"dependencies": {
"react": "^18.3.1",
Expand All @@ -20,6 +21,7 @@
"@types/react-dom": "^18.3.0",
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"rimraf": "^6.0.1",
"typescript": "^5.6.2"
}
}
4 changes: 3 additions & 1 deletion examples/react-tsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"dependencies": {
"react": "^18.3.1",
Expand All @@ -40,6 +41,7 @@
"@types/react-dom": "^18.3.0",
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"rimraf": "^6.0.1",
"typescript": "^5.6.2",
"vite": "5.3.5"
}
Expand Down
4 changes: 3 additions & 1 deletion examples/react-use-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"dependencies": {
"react": "^19.0.0-rc-eb3ad065-20240822",
Expand All @@ -42,6 +43,7 @@
"@types/react-dom": "^18.3.0",
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"rimraf": "^6.0.1",
"typescript": "^5.6.2"
}
}
17 changes: 9 additions & 8 deletions examples/transformer-esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
".": [
"./dist/index.d.ts"
]
}
},
"files": [
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"dependencies": {
"react": "^18.3.1",
Expand All @@ -34,12 +42,5 @@
"@visulima/packem": "workspace:*",
"esbuild": "^0.23.1",
"typescript": "^5.6.2"
},
"typesVersions": {
"*": {
".": [
"./dist/index.d.ts"
]
}
}
}
3 changes: 2 additions & 1 deletion examples/transformer-sucrase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"dependencies": {
"react": "^18.3.1",
Expand Down
17 changes: 9 additions & 8 deletions examples/transformer-swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
".": [
"./dist/index.d.ts"
]
}
},
"files": [
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"dependencies": {
"react": "^18.3.1",
Expand All @@ -35,12 +43,5 @@
"@types/react-dom": "^18.3.0",
"@visulima/packem": "workspace:*",
"typescript": "^5.6.2"
},
"typesVersions": {
"*": {
".": [
"./dist/index.d.ts"
]
}
}
}
3 changes: 2 additions & 1 deletion examples/types-entries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"devDependencies": {
"@visulima/packem": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion examples/typescript-tsconfig-paths/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"./dist"
],
"scripts": {
"build": "packem build"
"build": "packem build",
"clean": "rimraf node_modules dist"
},
"devDependencies": {
"@visulima/packem": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"nx": "nx",
"plop": "plop",
"prepare": "is-ci || husky || exit 0",
"sort-package-json": "sort-package-json packages/**/package.json example_*/**/package.json ./package.json",
"sort-package-json": "sort-package-json packages/**/package.json examples/**/package.json ./package.json",
"test": "nx run-many --target=test --all --parallel",
"test:affected": "nx affected --target=test --parallel --exclude=*-bench,docs,example_* --nxBail",
"test:affected:coverage": "nx affected --target=test:coverage --parallel --exclude=*-bench,docs,example_* --nxBail",
Expand Down
Loading

0 comments on commit 862e223

Please sign in to comment.