Skip to content

Commit

Permalink
chore(package.json): prevent publishing via NPM (#2661)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynekstara authored May 14, 2024
1 parent 68c5be4 commit 66e3c6b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/joint-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"access": "public"
},
"scripts": {
"prepublishOnly": "echo \"Publishing via NPM is not allowed!\" && exit 1",
"prepack": "yarn run dist",
"build": "grunt install",
"test": "grunt test",
Expand Down
1 change: 1 addition & 0 deletions packages/joint-decorators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"access": "public"
},
"scripts": {
"prepublishOnly": "echo \"Publishing via NPM is not allowed!\" && exit 1",
"prepack": "yarn run dist",
"build": "tsc",
"dist": "tsc"
Expand Down
1 change: 1 addition & 0 deletions packages/joint-layout-directed-graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"access": "public"
},
"scripts": {
"prepublishOnly": "echo \"Publishing via NPM is not allowed!\" && exit 1",
"prepack": "yarn run dist",
"dist": "rollup --config",
"build": "rollup --config",
Expand Down
1 change: 1 addition & 0 deletions packages/joint-shapes-general-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"access": "public"
},
"scripts": {
"prepublishOnly": "echo \"Publishing via NPM is not allowed!\" && exit 1",
"prepack": "yarn run dist",
"build": "tsc",
"dist": "tsc"
Expand Down
1 change: 1 addition & 0 deletions packages/joint-shapes-general/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"access": "public"
},
"scripts": {
"prepublishOnly": "echo \"Publishing via NPM is not allowed!\" && exit 1",
"prepack": "yarn run dist",
"build": "tsc",
"dist": "tsc"
Expand Down

0 comments on commit 66e3c6b

Please sign in to comment.