Skip to content

Commit 6e135f4

Browse files
authored
chore: add package-lock.json (#120)
* chore: add package-lock.json This enables: * `npm audit` to find and address reported security vulnerabilities in dependencies * `npm ci` to install faster and skip dev dependencies (suitable in CI) ... and more. Per [npm documentation]: This file is intended to be committed into source repositories, and serves various purposes: Describe a single representation of a dependency tree such that teammates, deployments, and continuous integration are guaranteed to install exactly the same dependencies. Provide a facility for users to "time-travel" to previous states of node_modules without having to commit the directory itself. Facilitate greater visibility of tree changes through readable source control diffs. Optimize the installation process by allowing npm to skip repeated metadata resolutions for previously-installed packages. As of npm v7, lockfiles include enough information to gain a complete picture of the package tree, reducing the need to read package.json files, and allowing for significant performance improvements. [npm documentation]: https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json * ci: use `npm ci` instead of `npm install`
1 parent 1444f55 commit 6e135f4

File tree

3 files changed

+26928
-2
lines changed

3 files changed

+26928
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
${{ runner.OS }}-node-
4343
${{ runner.OS }}-
4444
- name: Install dependencies
45-
run: npm install
45+
run: npm ci
4646
- run: npm test
4747
env:
4848
CI: true

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
node_modules
22
output
3-
package-lock.json
43
.nyc_output
54
coverage
65
dist

0 commit comments

Comments
 (0)