From 6898d5e6963ac303b5c67ed271f1e84b74316623 Mon Sep 17 00:00:00 2001 From: Anmol Baranwal Date: Sat, 11 Nov 2023 12:31:40 +0530 Subject: [PATCH] check changes --- package-lock.json | 9 +++++++++ package.json | 3 ++- tsconfig.json | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 540d38e..cd4d121 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "@actions/core": "^1.10.1", "@actions/github": "^6.0.0", "@types/node": "^20.8.6", + "@vercel/ncc": "^0.38.1", "typescript": "^5.2.2" }, "engines": { @@ -183,6 +184,14 @@ "undici-types": "~5.25.1" } }, + "node_modules/@vercel/ncc": { + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz", + "integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==", + "bin": { + "ncc": "dist/ncc/cli.js" + } + }, "node_modules/before-after-hook": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", diff --git a/package.json b/package.json index d803c97..6ea48ed 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "dist/index.js", "scripts": { "test": "npm test", - "build": "tsc", + "build": "tsc && ncc build lib/index.js", "workflow": "npm run build && node dist/index.js" }, "repository": { @@ -35,6 +35,7 @@ "@actions/core": "^1.10.1", "@actions/github": "^6.0.0", "@types/node": "^20.8.6", + "@vercel/ncc": "^0.38.1", "typescript": "^5.2.2" }, "engines": { diff --git a/tsconfig.json b/tsconfig.json index 8a76cdf..bb369f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,7 @@ "compilerOptions": { "target": "ES2019", "module": "commonjs", - "outDir": "dist", + "outDir": "lib", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true,