Skip to content

Commit ef985e9

Browse files
committed
chore: add publish targets to all packages
1 parent 6009ca0 commit ef985e9

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

libs/cannon/project.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
},
2323
"defaultConfiguration": "production"
2424
},
25+
"publish": {
26+
"command": "npm publish",
27+
"options": {
28+
"cwd": "dist/libs/cannon"
29+
}
30+
},
2531
"test": {
2632
"executor": "@nx/jest:jest",
2733
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],

libs/core/project.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
},
5656
"publish": {
5757
"command": "npm publish",
58-
"cwd": "dist/libs/core"
58+
"options": {
59+
"cwd": "dist/libs/core"
60+
}
5961
},
6062
"test": {
6163
"executor": "@nx/jest:jest",

libs/postprocessing/project.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
},
2323
"defaultConfiguration": "production"
2424
},
25+
"publish": {
26+
"command": "npm publish",
27+
"options": {
28+
"cwd": "dist/libs/postprocessing"
29+
}
30+
},
2531
"test": {
2632
"executor": "@nx/jest:jest",
2733
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],

libs/soba/project.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
},
2323
"defaultConfiguration": "production"
2424
},
25+
"publish": {
26+
"command": "npm publish",
27+
"options": {
28+
"cwd": "dist/libs/soba"
29+
}
30+
},
2531
"test": {
2632
"executor": "@nx/jest:jest",
2733
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"scripts": {
66
"release": "dotenv release-it --",
77
"storybook": "nx storybook soba",
8-
"generate-soba": "node tools/scripts/generate-soba-json.mjs"
8+
"generate-soba": "node tools/scripts/generate-soba-json.mjs",
9+
"publish": "nx run-many --target=publish --projects=core,soba,postprocessing,cannon --parallel=false",
10+
"publish:beta": "nx run-many --target=publish --projects=core,soba,postprocessing,cannon --parallel=false --tag=beta"
911
},
1012
"private": true,
1113
"devDependencies": {

0 commit comments

Comments
 (0)