build: Add ncc

npm run build works now without global install
This commit is contained in:
Edmund Miller 2022-11-12 21:54:46 -06:00 committed by Thomas A. Christensen II
parent 16725d6eeb
commit 1b07a3f172
4 changed files with 23 additions and 8 deletions

View file

@ -30,7 +30,6 @@ jobs:
with: with:
node-version: 16 node-version: 16
cache: "npm" cache: "npm"
- run: npm i -g @vercel/ncc
- run: npm ci && npm run build - run: npm ci && npm run build
- uses: ./ - uses: ./
with: with:

View file

@ -13,7 +13,6 @@ jobs:
with: with:
node-version: 16 node-version: 16
cache: "npm" cache: "npm"
- run: npm i -g @vercel/ncc
- run: npm ci && npm run build - run: npm ci && npm run build
- uses: JasonEtco/build-and-tag-action@v1 - uses: JasonEtco/build-and-tag-action@v1
env: env:

28
package-lock.json generated
View file

@ -19,6 +19,7 @@
}, },
"devDependencies": { "devDependencies": {
"@tsconfig/node16": "^1.0.3", "@tsconfig/node16": "^1.0.3",
"@vercel/ncc": "^0.34.0",
"typescript": "^4.7.3" "typescript": "^4.7.3"
} }
}, },
@ -191,9 +192,18 @@
"dev": true "dev": true
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "17.0.44", "version": "17.0.45",
"resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.44.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz",
"integrity": "sha512-gWYiOlu6Y4oyLYBvsJAPlwHbC8H4tX+tLsHy6Ee976wedwwZKrG2hFl3Y/HiH6bIyLTbDWQexQF/ohwKkOpUCg==" "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw=="
},
"node_modules/@vercel/ncc": {
"version": "0.34.0",
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.34.0.tgz",
"integrity": "sha512-G9h5ZLBJ/V57Ou9vz5hI8pda/YQX5HQszCs3AmIus3XzsmRn/0Ptic5otD3xVST8QLKk7AMk7AqpsyQGN7MZ9A==",
"dev": true,
"bin": {
"ncc": "dist/ncc/cli.js"
}
}, },
"node_modules/async-retry": { "node_modules/async-retry": {
"version": "1.3.3", "version": "1.3.3",
@ -509,9 +519,15 @@
"dev": true "dev": true
}, },
"@types/node": { "@types/node": {
"version": "17.0.44", "version": "17.0.45",
"resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.44.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz",
"integrity": "sha512-gWYiOlu6Y4oyLYBvsJAPlwHbC8H4tX+tLsHy6Ee976wedwwZKrG2hFl3Y/HiH6bIyLTbDWQexQF/ohwKkOpUCg==" "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw=="
},
"@vercel/ncc": {
"version": "0.34.0",
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.34.0.tgz",
"integrity": "sha512-G9h5ZLBJ/V57Ou9vz5hI8pda/YQX5HQszCs3AmIus3XzsmRn/0Ptic5otD3xVST8QLKk7AMk7AqpsyQGN7MZ9A==",
"dev": true
}, },
"async-retry": { "async-retry": {
"version": "1.3.3", "version": "1.3.3",

View file

@ -21,6 +21,7 @@
}, },
"devDependencies": { "devDependencies": {
"@tsconfig/node16": "^1.0.3", "@tsconfig/node16": "^1.0.3",
"@vercel/ncc": "^0.34.0",
"typescript": "^4.7.3" "typescript": "^4.7.3"
} }
} }