Skip to content

Commit 2f18ce2

Browse files
committed
build: update publish config
1 parent 5e1c654 commit 2f18ce2

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

packages/nx-dive/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type": "commonjs",
1010
"main": "./src/index.js",
1111
"typings": "./src/index.d.ts",
12-
"private": true,
12+
"private": false,
1313
"publishConfig": {
1414
"access": "public",
1515
"registry": "https://registry.npmjs.org/"

packages/nx-dive/project.json

+14-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"targets": {
88
"build": {
99
"executor": "@nx/js:tsc",
10-
"outputs": ["{options.outputPath}"],
10+
"outputs": [
11+
"{options.outputPath}"
12+
],
1113
"options": {
1214
"outputPath": "dist/packages/nx-dive",
1315
"main": "packages/nx-dive/src/index.ts",
@@ -36,6 +38,16 @@
3638
}
3739
]
3840
}
39-
}
41+
},
42+
"publish": {
43+
"dependsOn": [
44+
"nx-dive:build"
45+
],
46+
"executor": "nx:run-commands",
47+
"options": {
48+
"cwd": "dist/packages/nx-dive",
49+
"command": "npm publish"
50+
}
51+
},
4052
}
4153
}

0 commit comments

Comments
 (0)