Compare commits
5 Commits
master
...
inspect-is
Author | SHA1 | Date | |
---|---|---|---|
|
271a9df5fb | ||
|
3b5e8836ec | ||
|
0fa2b7d3a5 | ||
|
c3e0d9f20f | ||
|
d2316507fd |
14
.github/FUNDING.yml
vendored
14
.github/FUNDING.yml
vendored
@ -1,2 +1,12 @@
|
|||||||
custom:
|
# These are supported funding model platforms
|
||||||
- https://opencollective.com/pnpm
|
|
||||||
|
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||||
|
patreon: khai96_
|
||||||
|
open_collective: # Collective unavailable
|
||||||
|
ko_fi: # Replace with a single Ko-fi username
|
||||||
|
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||||
|
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||||
|
liberapay: # Replace with a single Liberapay username
|
||||||
|
issuehunt: # disabled
|
||||||
|
otechie: # Replace with a single Otechie username
|
||||||
|
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
||||||
|
7
.github/dependabot.yml
vendored
7
.github/dependabot.yml
vendored
@ -1,7 +0,0 @@
|
|||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: github-actions
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: weekly
|
|
||||||
open-pull-requests-limit: 10
|
|
122
.github/workflows/test.yaml
vendored
122
.github/workflows/test.yaml
vendored
@ -3,7 +3,6 @@ name: Test Action
|
|||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
- workflow_dispatch
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_default_inputs:
|
test_default_inputs:
|
||||||
@ -22,7 +21,7 @@ jobs:
|
|||||||
- windows-latest
|
- windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Run the action
|
- name: Run the action
|
||||||
uses: ./
|
uses: ./
|
||||||
@ -35,8 +34,8 @@ jobs:
|
|||||||
- name: 'Test: install'
|
- name: 'Test: install'
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
test_dest:
|
test_explicit_inputs:
|
||||||
name: Test with dest
|
name: Test with explicit inputs
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
@ -51,127 +50,18 @@ jobs:
|
|||||||
- windows-latest
|
- windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Run the action
|
- name: Run the action
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: 4.11.1
|
version: 4.11.1
|
||||||
dest: ~/test/pnpm
|
dest: ~/test/pnpm
|
||||||
|
bin_dest: ~/test/pnpm/.bin
|
||||||
|
registry: http://registry.yarnpkg.com/
|
||||||
|
|
||||||
- name: 'Test: which'
|
- name: 'Test: which'
|
||||||
run: which pnpm && which pnpx
|
run: which pnpm && which pnpx
|
||||||
|
|
||||||
- name: 'Test: install'
|
- name: 'Test: install'
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
test_standalone:
|
|
||||||
name: Test with standalone
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
- macos-latest
|
|
||||||
- windows-latest
|
|
||||||
|
|
||||||
standalone:
|
|
||||||
- true
|
|
||||||
- false
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Run the action
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
version: 7.0.0
|
|
||||||
standalone: ${{ matrix.standalone }}
|
|
||||||
|
|
||||||
- name: install Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
# pnpm@7.0.0 is not compatible with Node.js 12
|
|
||||||
node-version: 12.22.12
|
|
||||||
|
|
||||||
- name: 'Test: which (pnpm)'
|
|
||||||
run: which pnpm
|
|
||||||
|
|
||||||
- name: 'Test: which (pnpx)'
|
|
||||||
if: matrix.standalone == false
|
|
||||||
run: which pnpx
|
|
||||||
|
|
||||||
- name: 'Test: install when standalone is true'
|
|
||||||
if: matrix.standalone
|
|
||||||
run: pnpm install
|
|
||||||
|
|
||||||
- name: 'Test: install when standalone is false'
|
|
||||||
if: matrix.standalone == false
|
|
||||||
# Since the default shell on windows runner is pwsh, we specify bash explicitly
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if pnpm install; then
|
|
||||||
echo "pnpm install should fail"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "pnpm install failed as expected"
|
|
||||||
fi
|
|
||||||
|
|
||||||
test_run_install:
|
|
||||||
name: 'Test with run_install (${{ matrix.run_install.name }}, ${{ matrix.os }})'
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
pnpm:
|
|
||||||
- 4.11.1
|
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
- macos-latest
|
|
||||||
- windows-latest
|
|
||||||
run_install:
|
|
||||||
- name: 'null'
|
|
||||||
value: 'null'
|
|
||||||
- name: 'empty object'
|
|
||||||
value: '{}'
|
|
||||||
- name: 'recursive'
|
|
||||||
value: |
|
|
||||||
recursive: true
|
|
||||||
- name: 'global'
|
|
||||||
value: |
|
|
||||||
args:
|
|
||||||
- --global
|
|
||||||
- --global-dir=./pnpm-global
|
|
||||||
- npm
|
|
||||||
- yarn
|
|
||||||
- pnpm
|
|
||||||
- name: 'array'
|
|
||||||
value: |
|
|
||||||
- {}
|
|
||||||
- recursive: true
|
|
||||||
- args:
|
|
||||||
- --global
|
|
||||||
- --global-dir=./pnpm-global
|
|
||||||
- npm
|
|
||||||
- yarn
|
|
||||||
- pnpm
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Run the action
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
version: 4.11.1
|
|
||||||
run_install: ${{ matrix.run_install.value }}
|
|
||||||
|
|
||||||
- name: 'Test: which'
|
|
||||||
run: which pnpm; which pnpx
|
|
||||||
|
|
||||||
- name: 'Test: install'
|
|
||||||
run: pnpm install
|
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,12 +2,9 @@ node_modules
|
|||||||
*.log
|
*.log
|
||||||
/dist/*
|
/dist/*
|
||||||
!/dist/index.js
|
!/dist/index.js
|
||||||
!/dist/pnpm.cjs
|
|
||||||
!/dist/worker.js
|
|
||||||
tmp
|
tmp
|
||||||
temp
|
temp
|
||||||
*.tmp
|
*.tmp
|
||||||
*.temp
|
*.temp
|
||||||
tmp.*
|
tmp.*
|
||||||
temp.*
|
temp.*
|
||||||
.pnpm-store
|
|
||||||
|
151
README.md
151
README.md
@ -1,56 +1,28 @@
|
|||||||
> ## :warning: Upgrade from v2!
|
# Setup PNPM
|
||||||
>
|
|
||||||
> The v2 version of this action [has stopped working](https://github.com/pnpm/action-setup/issues/135) with newer Node.js versions. Please, upgrade to the latest version to fix any issues.
|
|
||||||
|
|
||||||
# Setup pnpm
|
Install PNPM package manager.
|
||||||
|
|
||||||
Install pnpm package manager.
|
|
||||||
|
|
||||||
## Inputs
|
## Inputs
|
||||||
|
|
||||||
### `version`
|
### `version`
|
||||||
|
|
||||||
Version of pnpm to install.
|
**Required** Version of PNPM to install.
|
||||||
|
|
||||||
**Optional** when there is a [`packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html).
|
|
||||||
|
|
||||||
otherwise, this field is **required** It supports npm versioning scheme, it could be an exact version (such as `6.24.1`), or a version range (such as `6`, `6.x.x`, `6.24.x`, `^6.24.1`, `*`, etc.), or `latest`.
|
|
||||||
|
|
||||||
### `dest`
|
### `dest`
|
||||||
|
|
||||||
**Optional** Where to store pnpm files.
|
**Optional** Where to store PNPM files.
|
||||||
|
|
||||||
|
### `bin_dest`
|
||||||
|
|
||||||
|
**Optional** Where to store executables (`pnpm` and `pnpx` commands).
|
||||||
|
|
||||||
|
### `registry`
|
||||||
|
|
||||||
|
**Optional** Registry to download PNPM from.
|
||||||
|
|
||||||
### `run_install`
|
### `run_install`
|
||||||
|
|
||||||
**Optional** (_default:_ `null`) If specified, run `pnpm install`.
|
**Optional** If specified, run `pnpm install`.
|
||||||
|
|
||||||
If `run_install` is either `null` or `false`, pnpm will not install any npm package.
|
|
||||||
|
|
||||||
If `run_install` is `true`, pnpm will install dependencies recursively.
|
|
||||||
|
|
||||||
If `run_install` is a YAML string representation of either an object or an array, pnpm will execute every install commands.
|
|
||||||
|
|
||||||
#### `run_install.recursive`
|
|
||||||
|
|
||||||
**Optional** (_type:_ `boolean`, _default:_ `false`) Whether to use `pnpm recursive install`.
|
|
||||||
|
|
||||||
#### `run_install.cwd`
|
|
||||||
|
|
||||||
**Optional** (_type:_ `string`) Working directory when run `pnpm [recursive] install`.
|
|
||||||
|
|
||||||
#### `run_install.args`
|
|
||||||
|
|
||||||
**Optional** (_type:_ `string[]`) Additional arguments after `pnpm [recursive] install`, e.g. `[--frozen-lockfile, --strict-peer-dependencies]`.
|
|
||||||
|
|
||||||
### `package_json_file`
|
|
||||||
|
|
||||||
**Optional** (_type:_ `string`, _default:_ `package.json`) File path to the `package.json` to read "packageManager" configuration.
|
|
||||||
|
|
||||||
### `standalone`
|
|
||||||
|
|
||||||
**Optional** (_type:_ `boolean`, _default:_ `false`) When set to true, [@pnpm/exe](https://www.npmjs.com/package/@pnpm/exe), which is a Node.js bundled package, will be installed, enabling using `pnpm` without Node.js.
|
|
||||||
|
|
||||||
This is useful when you want to use a incompatible pair of Node.js and pnpm.
|
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
@ -60,106 +32,33 @@ Expanded path of inputs#dest.
|
|||||||
|
|
||||||
### `bin_dest`
|
### `bin_dest`
|
||||||
|
|
||||||
Location of `pnpm` and `pnpx` command.
|
Expanded path of inputs#bin_dest.
|
||||||
|
|
||||||
## Usage example
|
## Usage example
|
||||||
|
|
||||||
### Install only pnpm without `packageManager`
|
|
||||||
|
|
||||||
This works when the repo either doesn't have a `package.json` or has a `package.json` but it doesn't specify `packageManager`.
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
install:
|
runs-on: ubuntu-latest
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
version: 8
|
- uses: pnpm/action-setup@v1.1.0
|
||||||
|
with:
|
||||||
|
version: 4.11.1
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install only pnpm with `packageManager`
|
|
||||||
|
|
||||||
Omit `version` input to use the version in the [`packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html).
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
on:
|
|
||||||
- push
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
install:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: pnpm/action-setup@v4
|
|
||||||
```
|
|
||||||
|
|
||||||
### Install pnpm and a few npm packages
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
on:
|
|
||||||
- push
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
install:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v4
|
|
||||||
with:
|
|
||||||
version: 8
|
|
||||||
run_install: |
|
|
||||||
- recursive: true
|
|
||||||
args: [--frozen-lockfile, --strict-peer-dependencies]
|
|
||||||
- args: [--global, gulp, prettier, typescript]
|
|
||||||
```
|
|
||||||
|
|
||||||
### Use cache to reduce installation time
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
on:
|
|
||||||
- push
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
cache-and-install:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v4
|
|
||||||
name: Install pnpm
|
|
||||||
with:
|
|
||||||
version: 8
|
|
||||||
run_install: false
|
|
||||||
|
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
cache: 'pnpm'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install
|
|
||||||
```
|
|
||||||
|
|
||||||
**Note:** You don't need to run `pnpm store prune` at the end; post-action has already taken care of that.
|
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
This action does not setup Node.js for you, use [actions/setup-node](https://github.com/actions/setup-node) yourself.
|
This action does not setup Node.js for you, use [actions/setup-node](https://github.com/actions/setup-node) yourself.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
[MIT](https://github.com/pnpm/action-setup/blob/master/LICENSE.md) © [Hoàng Văn Khải](https://github.com/KSXGitHub/)
|
[MIT](https://git.io/JfclH) © [Hoàng Văn Khải](https://github.com/KSXGitHub/)
|
||||||
|
33
action.yml
33
action.yml
@ -1,34 +1,29 @@
|
|||||||
name: Setup pnpm
|
name: Setup PNPM
|
||||||
description: Install pnpm package manager
|
description: Install PNPM package manager
|
||||||
branding:
|
branding:
|
||||||
icon: package
|
icon: package
|
||||||
color: orange
|
color: orange
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: Version of pnpm to install
|
description: Version of PNPM to install
|
||||||
required: false
|
required: true
|
||||||
dest:
|
dest:
|
||||||
description: Where to store pnpm files
|
description: Where to store PNPM files
|
||||||
required: false
|
required: false
|
||||||
default: ~/setup-pnpm
|
default: ~/setup-pnpm
|
||||||
|
bin_dest:
|
||||||
|
description: Where to store executables (pnpm and pnpx commands)
|
||||||
|
required: false
|
||||||
|
default: ~/setup-pnpm/.bin
|
||||||
|
registry:
|
||||||
|
description: Registry to download PNPM from
|
||||||
|
required: false
|
||||||
|
default: https://registry.npmjs.com
|
||||||
run_install:
|
run_install:
|
||||||
description: If specified, run `pnpm install`
|
description: If specified, run `pnpm install`
|
||||||
required: false
|
required: false
|
||||||
default: 'null'
|
default: 'null'
|
||||||
package_json_file:
|
|
||||||
description: File path to the package.json to read "packageManager" configuration
|
|
||||||
required: false
|
|
||||||
default: 'package.json'
|
|
||||||
standalone:
|
|
||||||
description: When set to true, @pnpm/exe, which is a Node.js bundled package, will be installed, enabling using pnpm without Node.js.
|
|
||||||
required: false
|
|
||||||
default: 'false'
|
|
||||||
outputs:
|
|
||||||
dest:
|
|
||||||
description: Expanded path of inputs#dest
|
|
||||||
bin_dest:
|
|
||||||
description: Location of `pnpm` and `pnpx` command
|
|
||||||
runs:
|
runs:
|
||||||
using: node20
|
using: node12
|
||||||
main: dist/index.js
|
main: dist/index.js
|
||||||
post: dist/index.js
|
post: dist/index.js
|
||||||
|
BIN
dist/index.js
vendored
BIN
dist/index.js
vendored
Binary file not shown.
220780
dist/pnpm.cjs
vendored
220780
dist/pnpm.cjs
vendored
File diff suppressed because one or more lines are too long
16625
dist/worker.js
vendored
16625
dist/worker.js
vendored
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
@ -1,23 +1,25 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build:schemas": "ts-schema-autogen generate",
|
||||||
"build:ncc": "ncc build --minify --no-source-map-register --no-cache dist/tsc/index.js --out dist/",
|
"build:ncc": "ncc build --minify --no-source-map-register --no-cache dist/tsc/index.js --out dist/",
|
||||||
"build": "tsc && pnpm run build:ncc",
|
"build": "pnpm run build:schemas && tsc && pnpm run build:ncc",
|
||||||
"start": "pnpm run build && sh ./run.sh",
|
"start": "pnpm run build && sh ./run.sh"
|
||||||
"update-pnpm-dist": "pnpm install && cp ./node_modules/pnpm/dist/pnpm.cjs ./dist/pnpm.cjs && cp ./node_modules/pnpm/dist/worker.js ./dist/worker.js"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"node-fetch": "^2.6.0",
|
||||||
"@types/expand-tilde": "^2.0.2",
|
|
||||||
"@types/node": "^20.11.5",
|
|
||||||
"@types/node-fetch": "^2.6.11",
|
|
||||||
"expand-tilde": "^2.0.2",
|
"expand-tilde": "^2.0.2",
|
||||||
"yaml": "^2.3.4",
|
"js-yaml": "^3.13.1",
|
||||||
"zod": "^3.22.4"
|
"ajv": "^6.12.0",
|
||||||
|
"@actions/core": "^1.2.4",
|
||||||
|
"@types/expand-tilde": "^2.0.0",
|
||||||
|
"@types/node-fetch": "^2.5.7",
|
||||||
|
"@types/js-yaml": "^3.12.3",
|
||||||
|
"@types/node": "^13.13.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vercel/ncc": "^0.38.1",
|
"typescript": "^3.8.3",
|
||||||
"pnpm": "^8.14.3",
|
"@ts-schema-autogen/cli": "^0.1.2",
|
||||||
"typescript": "^5.3.3"
|
"@zeit/ncc": "^0.22.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
921
pnpm-lock.yaml
921
pnpm-lock.yaml
@ -1,180 +1,797 @@
|
|||||||
lockfileVersion: '6.0'
|
|
||||||
|
|
||||||
settings:
|
|
||||||
autoInstallPeers: true
|
|
||||||
excludeLinksFromLockfile: false
|
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@actions/core':
|
'@actions/core': 1.2.4
|
||||||
specifier: ^1.10.1
|
'@types/expand-tilde': 2.0.0
|
||||||
version: 1.10.1
|
'@types/js-yaml': 3.12.3
|
||||||
'@types/expand-tilde':
|
'@types/node': 13.13.5
|
||||||
specifier: ^2.0.2
|
'@types/node-fetch': 2.5.7
|
||||||
version: 2.0.2
|
ajv: 6.12.0
|
||||||
'@types/node':
|
expand-tilde: 2.0.2
|
||||||
specifier: ^20.11.5
|
js-yaml: 3.13.1
|
||||||
version: 20.11.5
|
node-fetch: 2.6.0
|
||||||
'@types/node-fetch':
|
|
||||||
specifier: ^2.6.11
|
|
||||||
version: 2.6.11
|
|
||||||
expand-tilde:
|
|
||||||
specifier: ^2.0.2
|
|
||||||
version: 2.0.2
|
|
||||||
yaml:
|
|
||||||
specifier: ^2.3.4
|
|
||||||
version: 2.3.4
|
|
||||||
zod:
|
|
||||||
specifier: ^3.22.4
|
|
||||||
version: 3.22.4
|
|
||||||
|
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@vercel/ncc':
|
'@ts-schema-autogen/cli': 0.1.2
|
||||||
specifier: ^0.38.1
|
'@zeit/ncc': 0.22.1
|
||||||
version: 0.38.1
|
typescript: 3.8.3
|
||||||
pnpm:
|
lockfileVersion: 5.1
|
||||||
specifier: ^8.14.3
|
|
||||||
version: 8.14.3
|
|
||||||
typescript:
|
|
||||||
specifier: ^5.3.3
|
|
||||||
version: 5.3.3
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
/@actions/core/1.2.4:
|
||||||
/@actions/core@1.10.1:
|
dev: false
|
||||||
resolution: {integrity: sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==}
|
resolution:
|
||||||
|
integrity: sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg==
|
||||||
|
/@ts-schema-autogen/cli/0.1.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@actions/http-client': 2.2.0
|
'@ts-schema-autogen/main': 0.1.1
|
||||||
uuid: 8.3.2
|
'@types/fs-extra': 8.1.0
|
||||||
dev: false
|
'@types/node': 13.13.5
|
||||||
|
'@types/yargs': 15.0.4
|
||||||
/@actions/http-client@2.2.0:
|
fs-extra: 8.1.0
|
||||||
resolution: {integrity: sha512-q+epW0trjVUUHboliPb4UF9g2msf+w61b32tAkFEwL/IwP0DQWgbCMM0Hbe3e3WXSKz5VcUXbzJQgy8Hkra/Lg==}
|
tslib: 1.11.2
|
||||||
dependencies:
|
typescript-json-schema: 0.42.0
|
||||||
tunnel: 0.0.6
|
yargs: 15.3.1
|
||||||
undici: 5.28.3
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@fastify/busboy@2.1.0:
|
|
||||||
resolution: {integrity: sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==}
|
|
||||||
engines: {node: '>=14'}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@types/expand-tilde@2.0.2:
|
|
||||||
resolution: {integrity: sha512-wlsMYiapmIR4Eq/Z0qysN8xaDMjSkO6AIDNFx9oxgWGeKVA1jU+NzwPRZErBNP5z6/dx6QNkNpKglBGPO9OkTA==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@types/node-fetch@2.6.11:
|
|
||||||
resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==}
|
|
||||||
dependencies:
|
|
||||||
'@types/node': 20.11.5
|
|
||||||
form-data: 4.0.0
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@types/node@20.11.5:
|
|
||||||
resolution: {integrity: sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==}
|
|
||||||
dependencies:
|
|
||||||
undici-types: 5.26.5
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@vercel/ncc@0.38.1:
|
|
||||||
resolution: {integrity: sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==}
|
|
||||||
hasBin: true
|
|
||||||
dev: true
|
dev: true
|
||||||
|
hasBin: true
|
||||||
/asynckit@0.4.0:
|
resolution:
|
||||||
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
|
integrity: sha512-61aIkJh7RDDNLCQJtp++1pL/LWlPAI9dxgWyhXycyRm4TRaTVaRBOoxTVnN0IVT+akdhWeiXkhNkCzG6Vd5zAw==
|
||||||
|
/@ts-schema-autogen/lib/0.1.1:
|
||||||
|
dependencies:
|
||||||
|
'@ts-schema-autogen/status': 0.1.1
|
||||||
|
'@ts-schema-autogen/types': 0.1.1
|
||||||
|
'@ts-schema-autogen/utils': 0.0.1
|
||||||
|
'@ts-schema-autogen/validate': 0.1.1
|
||||||
|
'@tsfun/object': 0.0.17
|
||||||
|
'@tsfun/result': 0.0.16
|
||||||
|
'@types/js-yaml': 3.12.3
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
better-path-join: 0.0.1
|
||||||
|
fast-traverse: 0.1.6
|
||||||
|
js-yaml: 3.13.1
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-1oOQ9lbGnA3RVfIMiX1thvC0OEvTpvuTyLC6kwaBm8CnOBSFsxWUtoQ9ceyVe/otOqZL4SoucMmbJ3kOUnK7EQ==
|
||||||
|
/@ts-schema-autogen/main/0.1.1:
|
||||||
|
dependencies:
|
||||||
|
'@ts-schema-autogen/lib': 0.1.1
|
||||||
|
'@ts-schema-autogen/status': 0.1.1
|
||||||
|
'@ts-schema-autogen/types': 0.1.1
|
||||||
|
'@ts-schema-autogen/utils': 0.0.1
|
||||||
|
'@tsfun/object': 0.0.17
|
||||||
|
'@tsfun/pipe': 0.0.11
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-IC193iebvbbERdx2DGugDq97ne4Fn+zXNVqTc40QuyTbzTGBES6+DnSfI3t1e2f/jX0xGT1e6pDMN8DbdrK1Hw==
|
||||||
|
/@ts-schema-autogen/schemas/0.1.1:
|
||||||
|
dependencies:
|
||||||
|
'@ts-schema-autogen/types': 0.1.1
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
exec-once: 0.1.6
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-cHzhHPJsCQbZCYetSpxRcIEB17MLDOUnuxZiuZ0Yn1BRS72qMwgXqCDckMgGuf9TAsfbkBxUiOIT0C8S7FPYyw==
|
||||||
|
/@ts-schema-autogen/status/0.1.1:
|
||||||
|
dependencies:
|
||||||
|
'@ts-schema-autogen/types': 0.1.1
|
||||||
|
'@ts-schema-autogen/utils': 0.0.1
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-zN5KSkk9HjrsgCRFiENYUL7K/fZvK/afQolfSDrqj3nnyuYzRazIn/i2fV5pgTrdEKG3fK/95Zznko7evtK2ow==
|
||||||
|
/@ts-schema-autogen/types/0.1.1:
|
||||||
|
dependencies:
|
||||||
|
'@ts-schema-autogen/utils': 0.0.1
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
typescript-json-schema: 0.42.0
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-ePh2vU49xe8Tb4gXytOFDtI/dtSVzQpT1fp5WlyS4KwADZH4Gplj5c3M9t0m7bXl07qUVw5HnF7O6G7iliQ/XQ==
|
||||||
|
/@ts-schema-autogen/utils/0.0.1:
|
||||||
|
dependencies:
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-ASFLu03+zcRBaVAeRCTP84WvuHxmpGiksORB8QpE3nOmWC9m+f/dDRTvgTq/t3bNIYVSe1vKs4LutXX5pjhdjA==
|
||||||
|
/@ts-schema-autogen/validate/0.1.1:
|
||||||
|
dependencies:
|
||||||
|
'@ts-schema-autogen/schemas': 0.1.1
|
||||||
|
'@ts-schema-autogen/types': 0.1.1
|
||||||
|
'@tsfun/result': 0.0.16
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
ajv: 6.12.0
|
||||||
|
exec-once: 0.1.6
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-5h1xEHsCBk4JZeecLATpEDvCzuQifqA6YzmlEu2C1u8zEMNpv6Y49Yw7ABDGOnam8HQVdnCG6QggKVjVE4GyJQ==
|
||||||
|
/@tsfun/object/0.0.17:
|
||||||
|
dependencies:
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
utility-types: 3.10.0
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-H/hRAlGWkoui1ZqIX2iPSQdK07mUF7QZwIkyY5SzwBIe1jVkSRNXmHtm9WvWMuoaGCr3peCZGXphximX3DEzig==
|
||||||
|
/@tsfun/pipe/0.0.11:
|
||||||
|
dependencies:
|
||||||
|
'@tsfun/tap': 0.0.10
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>= 8.9.0'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-jL88eyhDR/Pena+eBzY9bw8SOED9nET2QPNSgvXpz4XK9t2CBmwtu6YUPzdZCBG6RTSZoQV5VKmsXu4255qVaA==
|
||||||
|
/@tsfun/prv-option-result-common/0.0.11:
|
||||||
|
dependencies:
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>= 8.9.0'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-AIp2Oygr9WD12BG4p+fUEhyGtPnchRVALahzDab2eobkD2IhxRnHsKZh4J3v84faEIuXbnpdfALwGkzaOcgkPA==
|
||||||
|
/@tsfun/prv-types/0.0.6:
|
||||||
|
dependencies:
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-s97gvRX2SjGTdU+Odsi6RgsVFi+xNOx3T6Jew2mo7m7Wj6eJmM0HB0HlFPmwIIi2MtXIpSr71TZmRVcMeU3Atw==
|
||||||
|
/@tsfun/result/0.0.16:
|
||||||
|
dependencies:
|
||||||
|
'@tsfun/prv-option-result-common': 0.0.11
|
||||||
|
'@tsfun/prv-types': 0.0.6
|
||||||
|
'@tsfun/tap': 0.0.10
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>= 8.9.0'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-lUpVISAm0RUxRdyVUuAOLBe7ArdrQkepdLz4nML0a/2/WvrDsAIn2PIdRL3eZXqqdyhS2dy+ot5E5vc/RNWOEQ==
|
||||||
|
/@tsfun/tap/0.0.10:
|
||||||
|
dependencies:
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-ArfW5g+1BxUXhqWOCOceiR3iviWn6PvDjOHzSBCCw3luYlVJ8JwYMcvj9ZXITBbP33uM8NKbxwzjRGGVckXLdg==
|
||||||
|
/@types/color-name/1.1.1:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==
|
||||||
|
/@types/expand-tilde/2.0.0:
|
||||||
dev: false
|
dev: false
|
||||||
|
resolution:
|
||||||
/combined-stream@1.0.8:
|
integrity: sha512-17h/6MRHoetV2QVUVnUfrmaFCXNIFJ3uDJmXlklX2xDtlEb1W0OXLgP+qwND2Ibg/PtQfQi0vx19KGuPayjLiw==
|
||||||
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
|
/@types/fs-extra/8.1.0:
|
||||||
engines: {node: '>= 0.8'}
|
dependencies:
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-UoOfVEzAUpeSPmjm7h1uk5MH6KZma2z2O7a75onTGjnNvAvMVrPzPL/vBbT65iIGHWj6rokwfmYcmxmlSf2uwg==
|
||||||
|
/@types/js-yaml/3.12.3:
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-otRe77JNNWzoVGLKw8TCspKswRoQToys4tuL6XYVBFxjgeM0RUrx7m3jkaTdxILxeGry3zM8mGYkGXMeQ02guA==
|
||||||
|
/@types/json-schema/7.0.4:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==
|
||||||
|
/@types/node-fetch/2.5.7:
|
||||||
|
dependencies:
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
form-data: 3.0.0
|
||||||
|
dev: false
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-o2WVNf5UhWRkxlf6eq+jMZDu7kjgpgJfl4xVNlvryc95O/6F2ld8ztKX+qu+Rjyet93WAWm5LjeX9H5FGkODvw==
|
||||||
|
/@types/node/13.13.5:
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-3ySmiBYJPqgjiHA7oEaIo2Rzz0HrOZ7yrNO5HWyaE5q0lQ3BppDZ3N53Miz8bw2I7gh1/zir2MGVZBvpb1zq9g==
|
||||||
|
/@types/yargs-parser/15.0.0:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw==
|
||||||
|
/@types/yargs/15.0.4:
|
||||||
|
dependencies:
|
||||||
|
'@types/yargs-parser': 15.0.0
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-9T1auFmbPZoxHz0enUFlUuKRy3it01R+hlggyVUMtnCTQRunsQYifnSGb8hET4Xo8yiC0o0r1paW3ud5+rbURg==
|
||||||
|
/@zeit/ncc/0.22.1:
|
||||||
|
dev: true
|
||||||
|
hasBin: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-Qq3bMuonkcnV/96jhy9SQYdh39NXHxNMJ1O31ZFzWG9n52fR2DLtgrNzhj/ahlEjnBziMLGVWDbaS9sf03/fEw==
|
||||||
|
/ajv/6.12.0:
|
||||||
|
dependencies:
|
||||||
|
fast-deep-equal: 3.1.1
|
||||||
|
fast-json-stable-stringify: 2.1.0
|
||||||
|
json-schema-traverse: 0.4.1
|
||||||
|
uri-js: 4.2.2
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw==
|
||||||
|
/ansi-regex/4.1.0:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==
|
||||||
|
/ansi-regex/5.0.0:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==
|
||||||
|
/ansi-styles/3.2.1:
|
||||||
|
dependencies:
|
||||||
|
color-convert: 1.9.3
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=4'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==
|
||||||
|
/ansi-styles/4.2.1:
|
||||||
|
dependencies:
|
||||||
|
'@types/color-name': 1.1.1
|
||||||
|
color-convert: 2.0.1
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==
|
||||||
|
/argparse/1.0.10:
|
||||||
|
dependencies:
|
||||||
|
sprintf-js: 1.0.3
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==
|
||||||
|
/asynckit/0.4.0:
|
||||||
|
dev: false
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-x57Zf380y48robyXkLzDZkdLS3k=
|
||||||
|
/balanced-match/1.0.0:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
|
||||||
|
/better-path-join/0.0.1:
|
||||||
|
dependencies:
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-JIv4V7rh19/Hg0O5I0l8eSobC3F+aUWaL9D9QQKAKFw4Qj+whdRrlRejrYICPS2NEJ/2vsDjhKur3iFhQf49QQ==
|
||||||
|
/brace-expansion/1.1.11:
|
||||||
|
dependencies:
|
||||||
|
balanced-match: 1.0.0
|
||||||
|
concat-map: 0.0.1
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
|
||||||
|
/camelcase/5.3.1:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==
|
||||||
|
/cliui/5.0.0:
|
||||||
|
dependencies:
|
||||||
|
string-width: 3.1.0
|
||||||
|
strip-ansi: 5.2.0
|
||||||
|
wrap-ansi: 5.1.0
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==
|
||||||
|
/cliui/6.0.0:
|
||||||
|
dependencies:
|
||||||
|
string-width: 4.2.0
|
||||||
|
strip-ansi: 6.0.0
|
||||||
|
wrap-ansi: 6.2.0
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==
|
||||||
|
/color-convert/1.9.3:
|
||||||
|
dependencies:
|
||||||
|
color-name: 1.1.3
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==
|
||||||
|
/color-convert/2.0.1:
|
||||||
|
dependencies:
|
||||||
|
color-name: 1.1.4
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=7.0.0'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==
|
||||||
|
/color-name/1.1.3:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=
|
||||||
|
/color-name/1.1.4:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
|
||||||
|
/combined-stream/1.0.8:
|
||||||
dependencies:
|
dependencies:
|
||||||
delayed-stream: 1.0.0
|
delayed-stream: 1.0.0
|
||||||
dev: false
|
dev: false
|
||||||
|
engines:
|
||||||
/delayed-stream@1.0.0:
|
node: '>= 0.8'
|
||||||
resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}
|
resolution:
|
||||||
engines: {node: '>=0.4.0'}
|
integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
|
||||||
|
/concat-map/0.0.1:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
|
||||||
|
/decamelize/1.2.0:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=0.10.0'
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=
|
||||||
|
/delayed-stream/1.0.0:
|
||||||
dev: false
|
dev: false
|
||||||
|
engines:
|
||||||
/expand-tilde@2.0.2:
|
node: '>=0.4.0'
|
||||||
resolution: {integrity: sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==}
|
resolution:
|
||||||
engines: {node: '>=0.10.0'}
|
integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk=
|
||||||
|
/emoji-regex/7.0.3:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==
|
||||||
|
/emoji-regex/8.0.0:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
|
||||||
|
/esprima/4.0.1:
|
||||||
|
engines:
|
||||||
|
node: '>=4'
|
||||||
|
hasBin: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==
|
||||||
|
/exec-once/0.1.6:
|
||||||
|
dependencies:
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-DMCRTmVoGgGJLS+Z7NfaV53QiQTi8XedoBNVWsl5S7ZQGgt587MOKqlu8k/ybtkEEVjkl4RjO4REOJv4v2ZBxw==
|
||||||
|
/expand-tilde/2.0.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
homedir-polyfill: 1.0.3
|
homedir-polyfill: 1.0.3
|
||||||
dev: false
|
dev: false
|
||||||
|
engines:
|
||||||
/form-data@4.0.0:
|
node: '>=0.10.0'
|
||||||
resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==}
|
resolution:
|
||||||
engines: {node: '>= 6'}
|
integrity: sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=
|
||||||
|
/fast-deep-equal/3.1.1:
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==
|
||||||
|
/fast-json-stable-stringify/2.1.0:
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==
|
||||||
|
/fast-traverse/0.1.6:
|
||||||
|
dependencies:
|
||||||
|
'@types/node': 13.13.5
|
||||||
|
tslib: 1.11.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-/5Ati6Qr9r++gG4R6ANxYH8RxQkZTrUDQF6EuSShgJCIrluPrvVSQRDpVl6SA4V/5nFALlF15OfXG1A3U3U6Mw==
|
||||||
|
/find-up/3.0.0:
|
||||||
|
dependencies:
|
||||||
|
locate-path: 3.0.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==
|
||||||
|
/find-up/4.1.0:
|
||||||
|
dependencies:
|
||||||
|
locate-path: 5.0.0
|
||||||
|
path-exists: 4.0.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==
|
||||||
|
/form-data/3.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
asynckit: 0.4.0
|
asynckit: 0.4.0
|
||||||
combined-stream: 1.0.8
|
combined-stream: 1.0.8
|
||||||
mime-types: 2.1.35
|
mime-types: 2.1.27
|
||||||
dev: false
|
dev: false
|
||||||
|
engines:
|
||||||
/homedir-polyfill@1.0.3:
|
node: '>= 6'
|
||||||
resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==}
|
resolution:
|
||||||
engines: {node: '>=0.10.0'}
|
integrity: sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==
|
||||||
|
/fs-extra/8.1.0:
|
||||||
|
dependencies:
|
||||||
|
graceful-fs: 4.2.3
|
||||||
|
jsonfile: 4.0.0
|
||||||
|
universalify: 0.1.2
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6 <7 || >=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==
|
||||||
|
/fs.realpath/1.0.0:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=
|
||||||
|
/get-caller-file/2.0.5:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: 6.* || 8.* || >= 10.*
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==
|
||||||
|
/glob/7.1.6:
|
||||||
|
dependencies:
|
||||||
|
fs.realpath: 1.0.0
|
||||||
|
inflight: 1.0.6
|
||||||
|
inherits: 2.0.4
|
||||||
|
minimatch: 3.0.4
|
||||||
|
once: 1.4.0
|
||||||
|
path-is-absolute: 1.0.1
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==
|
||||||
|
/graceful-fs/4.2.3:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==
|
||||||
|
/homedir-polyfill/1.0.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
parse-passwd: 1.0.0
|
parse-passwd: 1.0.0
|
||||||
dev: false
|
dev: false
|
||||||
|
engines:
|
||||||
/mime-db@1.52.0:
|
node: '>=0.10.0'
|
||||||
resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
|
resolution:
|
||||||
engines: {node: '>= 0.6'}
|
integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==
|
||||||
dev: false
|
/inflight/1.0.6:
|
||||||
|
|
||||||
/mime-types@2.1.35:
|
|
||||||
resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
|
|
||||||
engines: {node: '>= 0.6'}
|
|
||||||
dependencies:
|
dependencies:
|
||||||
mime-db: 1.52.0
|
once: 1.4.0
|
||||||
dev: false
|
wrappy: 1.0.2
|
||||||
|
|
||||||
/parse-passwd@1.0.0:
|
|
||||||
resolution: {integrity: sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==}
|
|
||||||
engines: {node: '>=0.10.0'}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/pnpm@8.14.3:
|
|
||||||
resolution: {integrity: sha512-w+2A61g74+K37zHrlri5z6oFA+XUTscXUUEgtRh7L5M3NukDjFGlojrVgnkLpB1Kt4RhjIn6fiNl9mZWhdYS7g==}
|
|
||||||
engines: {node: '>=16.14'}
|
|
||||||
hasBin: true
|
|
||||||
dev: true
|
dev: true
|
||||||
|
resolution:
|
||||||
/tunnel@0.0.6:
|
integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=
|
||||||
resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==}
|
/inherits/2.0.4:
|
||||||
engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/typescript@5.3.3:
|
|
||||||
resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==}
|
|
||||||
engines: {node: '>=14.17'}
|
|
||||||
hasBin: true
|
|
||||||
dev: true
|
dev: true
|
||||||
|
resolution:
|
||||||
/undici-types@5.26.5:
|
integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
|
||||||
resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
|
/is-fullwidth-code-point/2.0.0:
|
||||||
dev: false
|
dev: true
|
||||||
|
engines:
|
||||||
/undici@5.28.3:
|
node: '>=4'
|
||||||
resolution: {integrity: sha512-3ItfzbrhDlINjaP0duwnNsKpDQk3acHI3gVJ1z4fmwMK31k5G9OVIAMLSIaP6w4FaGkaAkN6zaQO9LUvZ1t7VA==}
|
resolution:
|
||||||
engines: {node: '>=14.0'}
|
integrity: sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=
|
||||||
|
/is-fullwidth-code-point/3.0.0:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==
|
||||||
|
/js-yaml/3.13.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@fastify/busboy': 2.1.0
|
argparse: 1.0.10
|
||||||
dev: false
|
esprima: 4.0.1
|
||||||
|
|
||||||
/uuid@8.3.2:
|
|
||||||
resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}
|
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==
|
||||||
|
/json-schema-traverse/0.4.1:
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
|
||||||
|
/json-stable-stringify/1.0.1:
|
||||||
|
dependencies:
|
||||||
|
jsonify: 0.0.0
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=
|
||||||
|
/jsonfile/4.0.0:
|
||||||
|
dev: true
|
||||||
|
optionalDependencies:
|
||||||
|
graceful-fs: 4.2.3
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=
|
||||||
|
/jsonify/0.0.0:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=
|
||||||
|
/locate-path/3.0.0:
|
||||||
|
dependencies:
|
||||||
|
p-locate: 3.0.0
|
||||||
|
path-exists: 3.0.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==
|
||||||
|
/locate-path/5.0.0:
|
||||||
|
dependencies:
|
||||||
|
p-locate: 4.1.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==
|
||||||
|
/mime-db/1.44.0:
|
||||||
dev: false
|
dev: false
|
||||||
|
engines:
|
||||||
/yaml@2.3.4:
|
node: '>= 0.6'
|
||||||
resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==}
|
resolution:
|
||||||
engines: {node: '>= 14'}
|
integrity: sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==
|
||||||
|
/mime-types/2.1.27:
|
||||||
|
dependencies:
|
||||||
|
mime-db: 1.44.0
|
||||||
dev: false
|
dev: false
|
||||||
|
engines:
|
||||||
/zod@3.22.4:
|
node: '>= 0.6'
|
||||||
resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==}
|
resolution:
|
||||||
|
integrity: sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==
|
||||||
|
/minimatch/3.0.4:
|
||||||
|
dependencies:
|
||||||
|
brace-expansion: 1.1.11
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
|
||||||
|
/node-fetch/2.6.0:
|
||||||
dev: false
|
dev: false
|
||||||
|
engines:
|
||||||
|
node: 4.x || >=6.0.0
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==
|
||||||
|
/once/1.4.0:
|
||||||
|
dependencies:
|
||||||
|
wrappy: 1.0.2
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E=
|
||||||
|
/p-limit/2.3.0:
|
||||||
|
dependencies:
|
||||||
|
p-try: 2.2.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==
|
||||||
|
/p-locate/3.0.0:
|
||||||
|
dependencies:
|
||||||
|
p-limit: 2.3.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==
|
||||||
|
/p-locate/4.1.0:
|
||||||
|
dependencies:
|
||||||
|
p-limit: 2.3.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==
|
||||||
|
/p-try/2.2.0:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
|
||||||
|
/parse-passwd/1.0.0:
|
||||||
|
dev: false
|
||||||
|
engines:
|
||||||
|
node: '>=0.10.0'
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=
|
||||||
|
/path-exists/3.0.0:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=4'
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=
|
||||||
|
/path-exists/4.0.0:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==
|
||||||
|
/path-is-absolute/1.0.1:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=0.10.0'
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
|
||||||
|
/punycode/2.1.1:
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
|
||||||
|
/require-directory/2.1.1:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=0.10.0'
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-jGStX9MNqxyXbiNE/+f3kqam30I=
|
||||||
|
/require-main-filename/2.0.0:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==
|
||||||
|
/set-blocking/2.0.0:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
|
||||||
|
/sprintf-js/1.0.3:
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=
|
||||||
|
/string-width/3.1.0:
|
||||||
|
dependencies:
|
||||||
|
emoji-regex: 7.0.3
|
||||||
|
is-fullwidth-code-point: 2.0.0
|
||||||
|
strip-ansi: 5.2.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==
|
||||||
|
/string-width/4.2.0:
|
||||||
|
dependencies:
|
||||||
|
emoji-regex: 8.0.0
|
||||||
|
is-fullwidth-code-point: 3.0.0
|
||||||
|
strip-ansi: 6.0.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==
|
||||||
|
/strip-ansi/5.2.0:
|
||||||
|
dependencies:
|
||||||
|
ansi-regex: 4.1.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==
|
||||||
|
/strip-ansi/6.0.0:
|
||||||
|
dependencies:
|
||||||
|
ansi-regex: 5.0.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==
|
||||||
|
/tslib/1.11.2:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-tTSkux6IGPnUGUd1XAZHcpu85MOkIl5zX49pO+jfsie3eP0B6pyhOlLXm3cAC6T7s+euSDDUUV+Acop5WmtkVg==
|
||||||
|
/typescript-json-schema/0.42.0:
|
||||||
|
dependencies:
|
||||||
|
'@types/json-schema': 7.0.4
|
||||||
|
glob: 7.1.6
|
||||||
|
json-stable-stringify: 1.0.1
|
||||||
|
typescript: 3.8.3
|
||||||
|
yargs: 14.2.3
|
||||||
|
dev: true
|
||||||
|
hasBin: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-9WO+lVmlph7Ecb7lPd9tU84XFUQh44kpAf3cWe/Ym4G5EKw/SS6XGpi1DZDthvxqkIdNSDlWi7FhKfxuIV/3yw==
|
||||||
|
/typescript/3.8.3:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=4.2.0'
|
||||||
|
hasBin: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==
|
||||||
|
/universalify/0.1.2:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>= 4.0.0'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==
|
||||||
|
/uri-js/4.2.2:
|
||||||
|
dependencies:
|
||||||
|
punycode: 2.1.1
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==
|
||||||
|
/utility-types/3.10.0:
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>= 4'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==
|
||||||
|
/which-module/2.0.0:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=
|
||||||
|
/wrap-ansi/5.1.0:
|
||||||
|
dependencies:
|
||||||
|
ansi-styles: 3.2.1
|
||||||
|
string-width: 3.1.0
|
||||||
|
strip-ansi: 5.2.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==
|
||||||
|
/wrap-ansi/6.2.0:
|
||||||
|
dependencies:
|
||||||
|
ansi-styles: 4.2.1
|
||||||
|
string-width: 4.2.0
|
||||||
|
strip-ansi: 6.0.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==
|
||||||
|
/wrappy/1.0.2:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
|
||||||
|
/y18n/4.0.0:
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==
|
||||||
|
/yargs-parser/15.0.1:
|
||||||
|
dependencies:
|
||||||
|
camelcase: 5.3.1
|
||||||
|
decamelize: 1.2.0
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-0OAMV2mAZQrs3FkNpDQcBk1x5HXb8X4twADss4S0Iuk+2dGnLOE/fRHrsYm542GduMveyA77OF4wrNJuanRCWw==
|
||||||
|
/yargs-parser/18.1.3:
|
||||||
|
dependencies:
|
||||||
|
camelcase: 5.3.1
|
||||||
|
decamelize: 1.2.0
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=6'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==
|
||||||
|
/yargs/14.2.3:
|
||||||
|
dependencies:
|
||||||
|
cliui: 5.0.0
|
||||||
|
decamelize: 1.2.0
|
||||||
|
find-up: 3.0.0
|
||||||
|
get-caller-file: 2.0.5
|
||||||
|
require-directory: 2.1.1
|
||||||
|
require-main-filename: 2.0.0
|
||||||
|
set-blocking: 2.0.0
|
||||||
|
string-width: 3.1.0
|
||||||
|
which-module: 2.0.0
|
||||||
|
y18n: 4.0.0
|
||||||
|
yargs-parser: 15.0.1
|
||||||
|
dev: true
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg==
|
||||||
|
/yargs/15.3.1:
|
||||||
|
dependencies:
|
||||||
|
cliui: 6.0.0
|
||||||
|
decamelize: 1.2.0
|
||||||
|
find-up: 4.1.0
|
||||||
|
get-caller-file: 2.0.5
|
||||||
|
require-directory: 2.1.1
|
||||||
|
require-main-filename: 2.0.0
|
||||||
|
set-blocking: 2.0.0
|
||||||
|
string-width: 4.2.0
|
||||||
|
which-module: 2.0.0
|
||||||
|
y18n: 4.0.0
|
||||||
|
yargs-parser: 18.1.3
|
||||||
|
dev: true
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==
|
||||||
|
specifiers:
|
||||||
|
'@actions/core': ^1.2.4
|
||||||
|
'@ts-schema-autogen/cli': ^0.1.2
|
||||||
|
'@types/expand-tilde': ^2.0.0
|
||||||
|
'@types/js-yaml': ^3.12.3
|
||||||
|
'@types/node': ^13.13.5
|
||||||
|
'@types/node-fetch': ^2.5.7
|
||||||
|
'@zeit/ncc': ^0.22.1
|
||||||
|
ajv: ^6.12.0
|
||||||
|
expand-tilde: ^2.0.2
|
||||||
|
js-yaml: ^3.13.1
|
||||||
|
node-fetch: ^2.6.0
|
||||||
|
typescript: ^3.8.3
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"pinVersions": false,
|
"pinVersions": false,
|
||||||
"extends": [
|
"extends": [
|
||||||
"config:base"
|
"config:base"
|
||||||
],
|
|
||||||
"ignoreDeps": [
|
|
||||||
"ajv"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
3
run.sh
3
run.sh
@ -3,6 +3,7 @@
|
|||||||
export HOME="$(pwd)"
|
export HOME="$(pwd)"
|
||||||
export INPUT_VERSION=4.11.1
|
export INPUT_VERSION=4.11.1
|
||||||
export INPUT_DEST='~/pnpm.temp'
|
export INPUT_DEST='~/pnpm.temp'
|
||||||
|
export INPUT_BIN_DEST='~/pnpm.temp/.bin'
|
||||||
|
export INPUT_REGISTRY=https://registry.npmjs.com
|
||||||
export INPUT_RUN_INSTALL=null
|
export INPUT_RUN_INSTALL=null
|
||||||
export INPUT_standalone=false
|
|
||||||
exec node dist/index.js
|
exec node dist/index.js
|
||||||
|
17
src/index.ts
17
src/index.ts
@ -1,15 +1,20 @@
|
|||||||
import { setFailed, saveState, getState } from '@actions/core'
|
import { setFailed, getState } from '@actions/core'
|
||||||
import getInputs from './inputs'
|
import getInputs from './inputs'
|
||||||
import installPnpm from './install-pnpm'
|
|
||||||
import setOutputs from './outputs'
|
import setOutputs from './outputs'
|
||||||
|
import installPnpm from './install-pnpm'
|
||||||
import pnpmInstall from './pnpm-install'
|
import pnpmInstall from './pnpm-install'
|
||||||
import pruneStore from './pnpm-store-prune'
|
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
const isPost = getState('isPost')
|
||||||
|
console.log({
|
||||||
|
is_post: getState('is_post'),
|
||||||
|
isPost: getState('isPost'),
|
||||||
|
STATE_isPost: process.env['STATE_isPost'],
|
||||||
|
})
|
||||||
|
if (isPost) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const inputs = getInputs()
|
const inputs = getInputs()
|
||||||
const isPost = getState('is_post')
|
|
||||||
if (isPost === 'true') return pruneStore(inputs)
|
|
||||||
saveState('is_post', 'true')
|
|
||||||
await installPnpm(inputs)
|
await installPnpm(inputs)
|
||||||
console.log('Installation Completed!')
|
console.log('Installation Completed!')
|
||||||
setOutputs(inputs)
|
setOutputs(inputs)
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import { getBooleanInput, getInput, InputOptions } from '@actions/core'
|
import { getInput, InputOptions } from '@actions/core'
|
||||||
import expandTilde from 'expand-tilde'
|
import expandTilde from 'expand-tilde'
|
||||||
import { RunInstall, parseRunInstall } from './run-install'
|
import { RunInstall, parseRunInstall } from './run-install'
|
||||||
|
|
||||||
export interface Inputs {
|
export interface Inputs {
|
||||||
readonly version?: string
|
readonly version: string
|
||||||
readonly dest: string
|
readonly dest: string
|
||||||
|
readonly binDest: string
|
||||||
|
readonly registry: string
|
||||||
readonly runInstall: RunInstall[]
|
readonly runInstall: RunInstall[]
|
||||||
readonly packageJsonFile: string
|
|
||||||
readonly standalone: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const options: InputOptions = {
|
const options: InputOptions = {
|
||||||
@ -17,11 +17,11 @@ const options: InputOptions = {
|
|||||||
const parseInputPath = (name: string) => expandTilde(getInput(name, options))
|
const parseInputPath = (name: string) => expandTilde(getInput(name, options))
|
||||||
|
|
||||||
export const getInputs = (): Inputs => ({
|
export const getInputs = (): Inputs => ({
|
||||||
version: getInput('version'),
|
version: getInput('version', options),
|
||||||
dest: parseInputPath('dest'),
|
dest: parseInputPath('dest'),
|
||||||
|
binDest: parseInputPath('bin_dest'),
|
||||||
|
registry: getInput('registry', options),
|
||||||
runInstall: parseRunInstall('run_install'),
|
runInstall: parseRunInstall('run_install'),
|
||||||
packageJsonFile: parseInputPath('package_json_file'),
|
|
||||||
standalone: getBooleanInput('standalone'),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
export default getInputs
|
export default getInputs
|
||||||
|
21
src/inputs/run-install-input.schema.autogen.json
Normal file
21
src/inputs/run-install-input.schema.autogen.json
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/ksxnodeapps/ts-schema-autogen/master/packages/schemas/config.schema.json",
|
||||||
|
"instruction": {
|
||||||
|
"compilerOptions": {
|
||||||
|
"strict": true,
|
||||||
|
"target": "ES2018",
|
||||||
|
"lib": [
|
||||||
|
"ES2018",
|
||||||
|
"ES2019",
|
||||||
|
"ES2020",
|
||||||
|
"ESNext"
|
||||||
|
],
|
||||||
|
"moduleResolution": "Node",
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"resolveJsonModule": true
|
||||||
|
},
|
||||||
|
"input": "run-install.ts",
|
||||||
|
"symbol": "RunInstallInput",
|
||||||
|
"output": "run-install-input.schema.json"
|
||||||
|
}
|
||||||
|
}
|
39
src/inputs/run-install-input.schema.json
Normal file
39
src/inputs/run-install-input.schema.json
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/RunInstall"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/RunInstall"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": [
|
||||||
|
"null",
|
||||||
|
"boolean"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"definitions": {
|
||||||
|
"RunInstall": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"recursive": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"cwd": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"args": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
||||||
|
}
|
@ -1,41 +1,40 @@
|
|||||||
import { getInput, error } from '@actions/core'
|
import process from 'process'
|
||||||
import * as yaml from 'yaml'
|
import { safeLoad } from 'js-yaml'
|
||||||
import { z, ZodError } from 'zod'
|
import Ajv from 'ajv'
|
||||||
|
import { getInput, error, InputOptions } from '@actions/core'
|
||||||
|
import runInstallSchema from './run-install-input.schema.json'
|
||||||
|
|
||||||
const RunInstallSchema = z.object({
|
export interface RunInstall {
|
||||||
recursive: z.boolean().optional(),
|
readonly recursive?: boolean
|
||||||
cwd: z.string().optional(),
|
readonly cwd?: string
|
||||||
args: z.array(z.string()).optional(),
|
readonly args?: readonly string[]
|
||||||
})
|
}
|
||||||
|
|
||||||
const RunInstallInputSchema = z.union([
|
export type RunInstallInput =
|
||||||
z.null(),
|
| null
|
||||||
z.boolean(),
|
| boolean
|
||||||
RunInstallSchema,
|
| RunInstall
|
||||||
z.array(RunInstallSchema),
|
| RunInstall[]
|
||||||
])
|
|
||||||
|
const options: InputOptions = {
|
||||||
export type RunInstallInput = z.infer<typeof RunInstallInputSchema>
|
required: true,
|
||||||
export type RunInstall = z.infer<typeof RunInstallSchema>
|
}
|
||||||
|
|
||||||
export function parseRunInstall(inputName: string): RunInstall[] {
|
export function parseRunInstall(name: string): RunInstall[] {
|
||||||
const input = getInput(inputName, { required: true })
|
const result: RunInstallInput = safeLoad(getInput(name, options))
|
||||||
const parsedInput: unknown = yaml.parse(input)
|
const ajv = new Ajv({
|
||||||
|
allErrors: true,
|
||||||
try {
|
async: false,
|
||||||
const result: RunInstallInput = RunInstallInputSchema.parse(parsedInput)
|
})
|
||||||
if (!result) return []
|
const validate = ajv.compile(runInstallSchema)
|
||||||
if (result === true) return [{ recursive: true }]
|
if (!validate(result)) {
|
||||||
if (Array.isArray(result)) return result
|
for (const errorItem of validate.errors!) {
|
||||||
return [result]
|
error(`with.run_install${errorItem.dataPath}: ${errorItem.message}`)
|
||||||
} catch (exception: unknown) {
|
}
|
||||||
error(`Error for input "${inputName}" = ${input}`)
|
return process.exit(1)
|
||||||
|
}
|
||||||
if (exception instanceof ZodError) {
|
if (!result) return []
|
||||||
error(`Errors: ${exception.errors}`)
|
if (result === true) return [{ recursive: true }]
|
||||||
} else {
|
if (Array.isArray(result)) return result
|
||||||
error(`Exception: ${exception}`)
|
return [result]
|
||||||
}
|
|
||||||
process.exit(1)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,13 @@
|
|||||||
import { setFailed, startGroup, endGroup } from '@actions/core'
|
import { setFailed } from '@actions/core'
|
||||||
import { Inputs } from '../inputs'
|
import { Inputs } from '../inputs'
|
||||||
import runSelfInstaller from './run'
|
import runSelfInstaller from './run'
|
||||||
|
|
||||||
export { runSelfInstaller }
|
export { runSelfInstaller }
|
||||||
|
|
||||||
export async function install(inputs: Inputs) {
|
export async function install(inputs: Inputs) {
|
||||||
startGroup('Running self-installer...')
|
|
||||||
const status = await runSelfInstaller(inputs)
|
const status = await runSelfInstaller(inputs)
|
||||||
endGroup()
|
|
||||||
if (status) {
|
if (status) {
|
||||||
return setFailed(`Something went wrong, self-installer exits with code ${status}`)
|
return setFailed(`Something does wrong, self-installer exits with code ${status}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,98 +1,26 @@
|
|||||||
import { addPath, exportVariable } from '@actions/core'
|
|
||||||
import { spawn } from 'child_process'
|
import { spawn } from 'child_process'
|
||||||
import { rm, writeFile, mkdir } from 'fs/promises'
|
|
||||||
import { readFileSync } from 'fs'
|
|
||||||
import path from 'path'
|
|
||||||
import { execPath } from 'process'
|
import { execPath } from 'process'
|
||||||
import util from 'util'
|
import { downloadSelfInstaller } from '../self-installer'
|
||||||
import { Inputs } from '../inputs'
|
import { Inputs } from '../inputs'
|
||||||
|
|
||||||
export async function runSelfInstaller(inputs: Inputs): Promise<number> {
|
export async function runSelfInstaller(inputs: Inputs): Promise<number> {
|
||||||
const { version, dest, packageJsonFile, standalone } = inputs
|
const cp = spawn(execPath, {
|
||||||
|
env: {
|
||||||
// prepare self install
|
PNPM_VERSION: inputs.version,
|
||||||
await rm(dest, { recursive: true, force: true })
|
PNPM_DEST: inputs.dest,
|
||||||
// create dest directory after removal
|
PNPM_BIN_DEST: inputs.binDest,
|
||||||
await mkdir(dest, { recursive: true })
|
PNPM_REGISTRY: inputs.registry,
|
||||||
const pkgJson = path.join(dest, 'package.json')
|
},
|
||||||
// we have ensured the dest directory exists, we can write the file directly
|
|
||||||
await writeFile(pkgJson, JSON.stringify({ private: true }))
|
|
||||||
|
|
||||||
// prepare target pnpm
|
|
||||||
const target = await readTarget({ version, packageJsonFile, standalone })
|
|
||||||
const cp = spawn(execPath, [path.join(__dirname, 'pnpm.cjs'), 'install', target, '--no-lockfile'], {
|
|
||||||
cwd: dest,
|
|
||||||
stdio: ['pipe', 'inherit', 'inherit'],
|
stdio: ['pipe', 'inherit', 'inherit'],
|
||||||
})
|
})
|
||||||
|
|
||||||
const exitCode = await new Promise<number>((resolve, reject) => {
|
const response = await downloadSelfInstaller()
|
||||||
|
response.body.pipe(cp.stdin)
|
||||||
|
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
cp.on('error', reject)
|
cp.on('error', reject)
|
||||||
cp.on('close', resolve)
|
cp.on('close', resolve)
|
||||||
})
|
})
|
||||||
if (exitCode === 0) {
|
|
||||||
const pnpmHome = path.join(dest, 'node_modules/.bin')
|
|
||||||
addPath(pnpmHome)
|
|
||||||
exportVariable('PNPM_HOME', pnpmHome)
|
|
||||||
}
|
|
||||||
return exitCode
|
|
||||||
}
|
|
||||||
|
|
||||||
async function readTarget(opts: {
|
|
||||||
readonly version?: string | undefined
|
|
||||||
readonly packageJsonFile: string
|
|
||||||
readonly standalone: boolean
|
|
||||||
}) {
|
|
||||||
const { version, packageJsonFile, standalone } = opts
|
|
||||||
const { GITHUB_WORKSPACE } = process.env
|
|
||||||
|
|
||||||
let packageManager
|
|
||||||
|
|
||||||
if (GITHUB_WORKSPACE) {
|
|
||||||
try {
|
|
||||||
({ packageManager } = JSON.parse(readFileSync(path.join(GITHUB_WORKSPACE, packageJsonFile), 'utf8')))
|
|
||||||
} catch (error: unknown) {
|
|
||||||
// Swallow error if package.json doesn't exist in root
|
|
||||||
if (!util.types.isNativeError(error) || !('code' in error) || error.code !== 'ENOENT') throw error
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (version) {
|
|
||||||
if (
|
|
||||||
typeof packageManager === 'string' &&
|
|
||||||
packageManager.replace('pnpm@', '') !== version
|
|
||||||
) {
|
|
||||||
throw new Error(`Multiple versions of pnpm specified:
|
|
||||||
- version ${version} in the GitHub Action config with the key "version"
|
|
||||||
- version ${packageManager} in the package.json with the key "packageManager"
|
|
||||||
Remove one of these versions to avoid version mismatch errors like ERR_PNPM_BAD_PM_VERSION`)
|
|
||||||
}
|
|
||||||
|
|
||||||
return `${ standalone ? '@pnpm/exe' : 'pnpm' }@${version}`
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!GITHUB_WORKSPACE) {
|
|
||||||
throw new Error(`No workspace is found.
|
|
||||||
If you've intended to let pnpm/action-setup read preferred pnpm version from the "packageManager" field in the package.json file,
|
|
||||||
please run the actions/checkout before pnpm/action-setup.
|
|
||||||
Otherwise, please specify the pnpm version in the action configuration.`)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof packageManager !== 'string') {
|
|
||||||
throw new Error(`No pnpm version is specified.
|
|
||||||
Please specify it by one of the following ways:
|
|
||||||
- in the GitHub Action config with the key "version"
|
|
||||||
- in the package.json with the key "packageManager"`)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!packageManager.startsWith('pnpm@')) {
|
|
||||||
throw new Error('Invalid packageManager field in package.json')
|
|
||||||
}
|
|
||||||
|
|
||||||
if (standalone) {
|
|
||||||
return packageManager.replace('pnpm@', '@pnpm/exe@')
|
|
||||||
}
|
|
||||||
|
|
||||||
return packageManager
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default runSelfInstaller
|
export default runSelfInstaller
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
import { setOutput, addPath } from '@actions/core'
|
import { setOutput, addPath } from '@actions/core'
|
||||||
import { Inputs } from '../inputs'
|
import { Inputs } from '../inputs'
|
||||||
import { getBinDest } from '../utils'
|
|
||||||
|
|
||||||
export function setOutputs(inputs: Inputs) {
|
export function setOutputs(inputs: Inputs) {
|
||||||
const binDest = getBinDest(inputs)
|
addPath(inputs.binDest)
|
||||||
addPath(binDest)
|
|
||||||
setOutput('dest', inputs.dest)
|
setOutput('dest', inputs.dest)
|
||||||
setOutput('bin_dest', binDest)
|
setOutput('bin_dest', inputs.binDest)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default setOutputs
|
export default setOutputs
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
import { setFailed, startGroup, endGroup } from '@actions/core'
|
import process from 'process'
|
||||||
|
import path from 'path'
|
||||||
import { spawnSync } from 'child_process'
|
import { spawnSync } from 'child_process'
|
||||||
|
import { setFailed } from '@actions/core'
|
||||||
import { Inputs } from '../inputs'
|
import { Inputs } from '../inputs'
|
||||||
import { patchPnpmEnv } from '../utils'
|
|
||||||
|
|
||||||
export function runPnpmInstall(inputs: Inputs) {
|
export function runPnpmInstall(inputs: Inputs) {
|
||||||
const env = patchPnpmEnv(inputs)
|
const env = {
|
||||||
|
...process.env,
|
||||||
|
PATH: inputs.binDest + path.delimiter + process.env.PATH
|
||||||
|
}
|
||||||
|
|
||||||
for (const options of inputs.runInstall) {
|
for (const options of inputs.runInstall) {
|
||||||
const args = ['install']
|
const args = ['install']
|
||||||
@ -12,7 +16,7 @@ export function runPnpmInstall(inputs: Inputs) {
|
|||||||
if (options.args) args.push(...options.args)
|
if (options.args) args.push(...options.args)
|
||||||
|
|
||||||
const cmdStr = ['pnpm', ...args].join(' ')
|
const cmdStr = ['pnpm', ...args].join(' ')
|
||||||
startGroup(`Running ${cmdStr}...`)
|
console.log('Running', cmdStr)
|
||||||
|
|
||||||
const { error, status } = spawnSync('pnpm', args, {
|
const { error, status } = spawnSync('pnpm', args, {
|
||||||
stdio: 'inherit',
|
stdio: 'inherit',
|
||||||
@ -21,8 +25,6 @@ export function runPnpmInstall(inputs: Inputs) {
|
|||||||
env,
|
env,
|
||||||
})
|
})
|
||||||
|
|
||||||
endGroup()
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
setFailed(error)
|
setFailed(error)
|
||||||
continue
|
continue
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
import { warning, startGroup, endGroup } from '@actions/core'
|
|
||||||
import { spawnSync } from 'child_process'
|
|
||||||
import { Inputs } from '../inputs'
|
|
||||||
import { patchPnpmEnv } from '../utils'
|
|
||||||
|
|
||||||
export function pruneStore(inputs: Inputs) {
|
|
||||||
if (inputs.runInstall.length === 0) {
|
|
||||||
console.log('Pruning is unnecessary.')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
startGroup('Running pnpm store prune...')
|
|
||||||
const { error, status } = spawnSync('pnpm', ['store', 'prune'], {
|
|
||||||
stdio: 'inherit',
|
|
||||||
shell: true,
|
|
||||||
env: patchPnpmEnv(inputs),
|
|
||||||
})
|
|
||||||
endGroup()
|
|
||||||
|
|
||||||
if (error) {
|
|
||||||
warning(error)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if (status) {
|
|
||||||
warning(`command pnpm store prune exits with code ${status}`)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default pruneStore
|
|
4
src/self-installer/download.ts
Normal file
4
src/self-installer/download.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import fetch from 'node-fetch'
|
||||||
|
import url from './url'
|
||||||
|
export const downloadSelfInstaller = () => fetch(url)
|
||||||
|
export default downloadSelfInstaller
|
2
src/self-installer/index.ts
Normal file
2
src/self-installer/index.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
export * from './url'
|
||||||
|
export * from './download'
|
3
src/self-installer/url.ts
Normal file
3
src/self-installer/url.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export const ref = '301414cec74a2b6b63c95b42f2ad1790ccb980ed'
|
||||||
|
export const url = `https://raw.githubusercontent.com/pnpm/self-installer/${ref}/install.js`
|
||||||
|
export default url
|
@ -1,10 +0,0 @@
|
|||||||
import path from 'path'
|
|
||||||
import process from 'process'
|
|
||||||
import { Inputs } from '../inputs'
|
|
||||||
|
|
||||||
export const getBinDest = (inputs: Inputs): string => path.join(inputs.dest, 'node_modules', '.bin')
|
|
||||||
|
|
||||||
export const patchPnpmEnv = (inputs: Inputs): NodeJS.ProcessEnv => ({
|
|
||||||
...process.env,
|
|
||||||
PATH: getBinDest(inputs) + path.delimiter + process.env.PATH,
|
|
||||||
})
|
|
@ -1,11 +1,15 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2022",
|
"target": "ES2018",
|
||||||
"module": "Node16",
|
"module": "CommonJS",
|
||||||
|
"moduleResolution": "Node",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"lib": [
|
"lib": [
|
||||||
"ES2023"
|
"ES2018",
|
||||||
|
"ES2019",
|
||||||
|
"ES2020",
|
||||||
|
"ESNext"
|
||||||
],
|
],
|
||||||
"outDir": "./dist/tsc",
|
"outDir": "./dist/tsc",
|
||||||
"preserveConstEnums": true,
|
"preserveConstEnums": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user