Use prepare instead of build as script

The prepare script runs before publishing a package, after installation
of a package from source, and when running npm install without
arguments in the repository.  These are the times where a build of the
web interface files are required to make the web interface work and
removes a manual step from using the package(s). The "build" script on
the other hand is never automatically invoked by npm.
This commit is contained in:
Hornwitser committed 2022-06-05 16:13:53 +02:00
1 parent 2973485321
commit 4d5597a1da
10 files changed
+9 -13

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
"license": "MIT",
"repository": "clusterio/clusterio",
"scripts": {
"build": "webpack-cli --env production",
"prepare": "webpack-cli --env production",
"test": "echo \"Error: run tests from root\" && exit 1"
},
"bugs": {
+1 -1
View File
@@ -7,7 +7,7 @@
"license": "MIT",
"repository": "clusterio/factorioClusterio",
"scripts": {
"build": "webpack-cli --env production",
"prepare": "webpack-cli --env production",
"test": "echo \"Error: run tests from root\" && exit 1"
},
"bugs": {
+1 -1
View File
@@ -7,7 +7,7 @@
"license": "MIT",
"repository": "clusterio/clusterio",
"scripts": {
"build": "webpack-cli --env production",
"prepare": "webpack-cli --env production",
"test": "echo \"Error: run tests from root\" && exit 1"
},
"bugs": {
+1 -1
View File
@@ -7,7 +7,7 @@
"license": "MIT",
"repository": "clusterio/clusterio",
"scripts": {
"build": "webpack-cli --env production",
"prepare": "webpack-cli --env production",
"test": "echo \"Error: run tests from root\" && exit 1"
},
"bugs": {
+1 -1
View File
@@ -7,7 +7,7 @@
"license": "MIT",
"repository": "clusterio/clusterio",
"scripts": {
"build": "webpack-cli --env production",
"prepare": "webpack-cli --env production",
"test": "echo \"Error: run tests from root\" && exit 1"
},
"bugs": {
+1 -1
View File
@@ -7,7 +7,7 @@
"license": "MIT",
"repository": "clusterio/clusterio",
"scripts": {
"build": "webpack-cli --env production",
"prepare": "webpack-cli --env production",
"test": "echo \"Error: run tests from root\" && exit 1"
},
"bugs": {