Skip to content

Commit

Permalink
[TASK] Add node and npm versions for build chain
Browse files Browse the repository at this point in the history
  • Loading branch information
david-bonhagen committed Apr 11, 2024
1 parent 8ee9394 commit 24b1ef1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion local_packages/portfolio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
"version": "0.0.0",
"license": "GPL-2.0-or-later",
"scripts": {
"build": "ddev npm run build:sass && ddev npm run build:ts",
"build": "npm run build:sass && npm run build:ts",
"build:sass": "sass ./Resources/Private/Build/Stylesheet/styles.scss:./Resources/Public/Stylesheet/styles.css --style compressed",
"build:ts": "tsc",
"watch:ts": "tsc --watch",
"watch:sass": "sass --watch ./Resources/Private/Build/Stylesheet/styles.scss:./Resources/Public/Stylesheet/styles.css --style compressed"
},
"engines": {
"node": "~18 || ~20",
"npm": ">=9.0.0 <11.0.0"
},
"devDependencies": {
"sass": "^1.74.1",
"typescript": "^5.4.4"
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"watch:ts": "npm run watch:ts --workspaces --if-present",
"watch:sass": "npm run watch:sass --workspaces --if-present"
},
"engines": {
"node": "~18 || ~20",
"npm": ">=9.0.0 <11.0.0"
},
"license": "GPL-2.0-or-later"
}

0 comments on commit 24b1ef1

Please sign in to comment.