From 1b07a3f172c9c04dc7be9b81d140aed031608271 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Sat, 12 Nov 2022 21:54:46 -0600 Subject: [PATCH] build: Add ncc npm run build works now without global install --- .github/workflows/example.yml | 1 - .github/workflows/publish.yml | 1 - package-lock.json | 28 ++++++++++++++++++++++------ package.json | 1 + 4 files changed, 23 insertions(+), 8 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 50dc682..c5172c6 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -30,7 +30,6 @@ jobs: with: node-version: 16 cache: "npm" - - run: npm i -g @vercel/ncc - run: npm ci && npm run build - uses: ./ with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 41071e6..d70bb89 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,6 @@ jobs: with: node-version: 16 cache: "npm" - - run: npm i -g @vercel/ncc - run: npm ci && npm run build - uses: JasonEtco/build-and-tag-action@v1 env: diff --git a/package-lock.json b/package-lock.json index ada06ca..fcf8387 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ }, "devDependencies": { "@tsconfig/node16": "^1.0.3", + "@vercel/ncc": "^0.34.0", "typescript": "^4.7.3" } }, @@ -191,9 +192,18 @@ "dev": true }, "node_modules/@types/node": { - "version": "17.0.44", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.44.tgz", - "integrity": "sha512-gWYiOlu6Y4oyLYBvsJAPlwHbC8H4tX+tLsHy6Ee976wedwwZKrG2hFl3Y/HiH6bIyLTbDWQexQF/ohwKkOpUCg==" + "version": "17.0.45", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", + "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": { "version": "1.3.3", @@ -509,9 +519,15 @@ "dev": true }, "@types/node": { - "version": "17.0.44", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.44.tgz", - "integrity": "sha512-gWYiOlu6Y4oyLYBvsJAPlwHbC8H4tX+tLsHy6Ee976wedwwZKrG2hFl3Y/HiH6bIyLTbDWQexQF/ohwKkOpUCg==" + "version": "17.0.45", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", + "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": { "version": "1.3.3", diff --git a/package.json b/package.json index 149a8ae..3279a38 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ }, "devDependencies": { "@tsconfig/node16": "^1.0.3", + "@vercel/ncc": "^0.34.0", "typescript": "^4.7.3" } }