Skip to content

Commit

Permalink
solution: add new options, validation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
BOOMER74 committed Nov 25, 2022
1 parent 06644d9 commit 453358e
Show file tree
Hide file tree
Showing 11 changed files with 696 additions and 373 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
always-auth: true
node-version: '16.x'
node-version: '18.x'

- name: Configure NPM
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Instal dependencies
- name: Install dependencies
run: npm install

- name: Configure Node.js Path
Expand Down
2 changes: 2 additions & 0 deletions .paranoidrc.js.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ module.exports = {
// json: true,
// production: true
// unsafe: true,
// allowFrom: { package: '2022-11-14' },
// excludeDev: false,
// mode: 'strict',
};
6 changes: 3 additions & 3 deletions .vscode/launch.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"preLaunchTask": "npm: build",
"outputCapture": "std",
"program": "${workspaceFolder}/app/index.js",
"args": ["-u", "--debug", "${workspaceFolder}/examples/npm"]
"args": ["-u", "--debug", "--mode", "strict", "${workspaceFolder}/examples/npm"]
},
{
"type": "node",
Expand All @@ -17,7 +17,7 @@
"preLaunchTask": "npm: build",
"outputCapture": "std",
"program": "${workspaceFolder}/app/index.js",
"args": ["-u", "--debug", "${workspaceFolder}/examples/yarn-berry"]
"args": ["-u", "--debug", "--mode", "strict", "${workspaceFolder}/examples/yarn-berry"]
},
{
"type": "node",
Expand All @@ -26,7 +26,7 @@
"preLaunchTask": "npm: build",
"outputCapture": "std",
"program": "${workspaceFolder}/app/index.js",
"args": ["-u", "--debug", "${workspaceFolder}/examples/yarn-classic"]
"args": ["-u", "--debug", "--mode", "strict", "${workspaceFolder}/examples/yarn-classic"]
}
]
}
3 changes: 3 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Arguments:
path path to project directory
Options:
-V, --version output the version number
-c, --config <path> use specified path to config file
-a, --allow <allow> comma separated list of allowed packages with version spec (<package>@<spec>)
-d, --deny <deny> comma separated list of denied packages with version spec (<package>@<spec>)
Expand All @@ -46,9 +47,11 @@ Options:
-p, --production if it possible, then check specified version from lock file
-u, --unsafe return only unsafe packages
--debug show debug messages
--allowFrom <allow> comma separated list of allowed packages with install date (<package>:<date>)
--excludeDev exclude development dependencies for validation (ignored for Yarn projects only)
--ignoreConfig ignore config file, even if used specified path
--ignoreOptions <options> comma separated list of options to ignore from config file
--mode <mode> validation mode (choices: "common", "extend", "strict")
-h, --help display help for command
----

Expand Down
Loading

0 comments on commit 453358e

Please sign in to comment.