Compare commits

...

2 Commits

Author SHA1 Message Date
shiyingchen
e71c9e98f6 test ncc 2024-03-27 16:25:12 +08:00
shiyingchen
67253182eb use ncc to compile 2024-03-27 16:21:03 +08:00
5 changed files with 9564 additions and 8 deletions

View File

@@ -39,6 +39,6 @@ branding:
color: 'blue'
runs:
using: 'node20'
pre: 'lib/cleanup.js'
main: 'lib/main.js'
post: 'lib/cleanup.js'
pre: 'lib/cleanup/index.js'
main: 'lib/main/index.js'
post: 'lib/cleanup/index.js'

4632
lib/cleanup/index.js Normal file

File diff suppressed because it is too large Load Diff

4911
lib/main/index.js Normal file

File diff suppressed because it is too large Load Diff

14
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "login",
"version": "1.0.0",
"version": "2.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "login",
"version": "1.0.0",
"version": "2.0.0",
"license": "MIT",
"dependencies": {
"@actions/core": "1.9.1",
@@ -17,6 +17,7 @@
"devDependencies": {
"@types/jest": "^29.2.4",
"@types/node": "^20.11.1",
"@vercel/ncc": "^0.38.1",
"jest": "^29.3.1",
"jest-circus": "^29.3.1",
"ts-jest": "^29.0.3",
@@ -1106,6 +1107,15 @@
"dev": true,
"license": "MIT"
},
"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==",
"dev": true,
"bin": {
"ncc": "dist/ncc/cli.js"
}
},
"node_modules/ansi-escapes": {
"version": "4.3.2",
"dev": true,

View File

@@ -1,10 +1,12 @@
{
"name": "login",
"version": "1.0.0",
"version": "2.0.0",
"description": "Login Azure wraps the az login, allowing for Azure actions to log into Azure",
"main": "lib/main.js",
"main": "lib/main/index.js",
"scripts": {
"build": "tsc",
"build:main": "ncc build src/main.ts -o lib/main",
"build:cleanup": "ncc build src/cleanup.ts -o lib/cleanup",
"build": "npm run build:main && npm run build:cleanup",
"test": "jest"
},
"author": "Microsoft",
@@ -12,6 +14,7 @@
"devDependencies": {
"@types/jest": "^29.2.4",
"@types/node": "^20.11.1",
"@vercel/ncc": "^0.38.1",
"jest": "^29.3.1",
"jest-circus": "^29.3.1",
"ts-jest": "^29.0.3",