add a prebuild for svgcanvas (#866)

fix the netlify build
This commit is contained in:
JFH
2022-12-13 01:27:27 +01:00
committed by GitHub
parent 0417618156
commit 59148d467e
2 changed files with 3 additions and 2 deletions

2
package-lock.json generated
View File

@@ -67,7 +67,7 @@
"start-server-and-test": "1.15.2" "start-server-and-test": "1.15.2"
}, },
"engines": { "engines": {
"node": ">=10" "node": ">=16"
} }
}, },
"node_modules/@ampproject/remapping": { "node_modules/@ampproject/remapping": {

View File

@@ -10,7 +10,7 @@
"test": "test" "test": "test"
}, },
"engines": { "engines": {
"node": ">=10" "node": ">=16"
}, },
"workspaces": [ "workspaces": [
"packages/svgcanvas" "packages/svgcanvas"
@@ -18,6 +18,7 @@
"scripts": { "scripts": {
"lint": "standard .", "lint": "standard .",
"test": "NODE_ENV=test start-server-and-test start http://localhost:8000/src/editor/index.html cypress:run", "test": "NODE_ENV=test start-server-and-test start http://localhost:8000/src/editor/index.html cypress:run",
"prebuild": "npm run build --workspace=packages/svgcanvas",
"build": "rollup -c", "build": "rollup -c",
"build:watch": "rollup -c --watch", "build:watch": "rollup -c --watch",
"start": "web-dev-server --app-index src/editor/index.html --node-resolve", "start": "web-dev-server --app-index src/editor/index.html --node-resolve",