Skip to content

Commit

Permalink
Merge pull request #64 from ScottLogic/prepare-script
Browse files Browse the repository at this point in the history
Add prepare script to allow estimator to be included via github url
  • Loading branch information
mgriffin-scottlogic authored May 22, 2024
2 parents c2fef51 + 5a7df0b commit 2e7022a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"browser": "src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": [],
"assets": ["src/favicon.ico"],
"styles": ["src/styles.css"],
"scripts": []
},
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,7 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"prepare": "ng build",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
Expand Down Expand Up @@ -64,6 +65,9 @@
"tailwindcss": "^3.4.1",
"typescript": "~5.3.3"
},
"files": [
"dist/tech-carbon-estimator/**"
],
"repository": {
"type": "git",
"url": "git+https://github.com/ScottLogic/sl-tech-carbon-estimator.git"
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cp README.md package.json ./dist/tech-carbon-estimator/

cd dist/tech-carbon-estimator

npm pkg delete scripts private devDependencies
npm pkg delete scripts private devDependencies files

npm pkg set main=main.js

Expand Down

0 comments on commit 2e7022a

Please sign in to comment.