Skip to content

Commit 4bb99bc

Browse files
authored
chore: use pnpm-lock.yaml and minimumReleaseAge (#775)
1 parent 22e070a commit 4bb99bc

File tree

13 files changed

+3911
-24
lines changed

13 files changed

+3911
-24
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// "forwardPorts": [],
2121

2222
// Use 'postCreateCommand' to run commands after the container is created.
23-
"postCreateCommand": "pnpm install",
23+
"postCreateCommand": "pnpm install --frozen-lockfile",
2424

2525
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
2626
"remoteUser": "node"

.github/workflows/GHPages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
- uses: actions/setup-node@v4
3030
- name: Install And Build
3131
run: |+
32-
pnpm install
32+
pnpm install --frozen-lockfile
3333
pnpm run build
3434
cd explorer-v2
35-
pnpm install
35+
pnpm install --frozen-lockfile
3636
pnpm run pre-build
3737
pnpm run build
3838
- name: Setup Pages

.github/workflows/NodeCI.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: pnpm/action-setup@v4
1515
- uses: actions/setup-node@v4
1616
- name: Install Packages
17-
run: pnpm install
17+
run: pnpm install --frozen-lockfile
1818
- name: Lint
1919
run: pnpm run lint
2020
- name: Build
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
node-version: ${{ matrix.node-version }}
3434
- name: Install Packages
35-
run: pnpm install
35+
run: pnpm install --frozen-lockfile
3636
- name: Test
3737
run: pnpm run test
3838
test-for-svelte-v5:
@@ -43,7 +43,7 @@ jobs:
4343
- name: Use Node.js
4444
uses: actions/setup-node@v4
4545
- name: Install Packages
46-
run: pnpm install
46+
run: pnpm install --frozen-lockfile
4747
- name: Test
4848
run: pnpm run test
4949

@@ -59,7 +59,7 @@ jobs:
5959
pnpm install -D svelte@4
6060
rm -rf node_modules
6161
- name: Install Packages
62-
run: pnpm install
62+
run: pnpm install --frozen-lockfile
6363
- name: Test
6464
run: pnpm run test
6565

@@ -80,7 +80,7 @@ jobs:
8080
pnpm install -D svelte@3
8181
rm -rf node_modules
8282
- name: Install Packages
83-
run: pnpm install
83+
run: pnpm install --frozen-lockfile
8484
- name: Test
8585
run: pnpm run test
8686
update-fixtures:
@@ -90,7 +90,7 @@ jobs:
9090
- uses: pnpm/action-setup@v4
9191
- uses: actions/setup-node@v4
9292
- name: Install Packages
93-
run: pnpm install
93+
run: pnpm install --frozen-lockfile
9494
- name: Update fixtures
9595
run: pnpm run update-fixtures
9696
- name: Check changes
@@ -104,7 +104,7 @@ jobs:
104104
- uses: pnpm/action-setup@v4
105105
- uses: actions/setup-node@v4
106106
- name: Install Packages
107-
run: pnpm install
107+
run: pnpm install --frozen-lockfile
108108
- name: Test
109109
run: pnpm run cover
110110
- name: Coveralls GitHub Action

.github/workflows/Release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
node-version: 24
3333
- name: Install Dependencies
34-
run: pnpm install
34+
run: pnpm install --frozen-lockfile
3535

3636
- name: Create Release Pull Request or Publish to npm
3737
id: changesets

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: pnpm/action-setup@v4
1515
- uses: actions/setup-node@v4
1616
- name: Install Packages
17-
run: pnpm install
17+
run: pnpm install --frozen-lockfile
1818
- name: Format
1919
run: pnpm run eslint-fix
2020
- name: Commit

.github/workflows/pkg.pr.new.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: pnpm/action-setup@v4
1717
- uses: actions/setup-node@v4
1818
- name: Install Packages
19-
run: pnpm install
19+
run: pnpm install --frozen-lockfile
2020
- name: Build
2121
run: pnpm run build
2222
- run: pnpx pkg-pr-new publish --compact --json output.json --comment=off

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ dist
104104
.tern-port
105105

106106
# repo
107-
/pnpm-lock.yaml
108107
/lib
109108
/.nyc_output
110109
/coverage

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
package-lock=false
21
enable-pre-post-scripts=true

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
tests/fixtures
2+
pnpm-lock.yaml

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ export default [
4646
"@typescript-eslint/no-shadow": "off",
4747
"no-warning-comments": "warn",
4848
"jsdoc/require-jsdoc": "off",
49+
// FIXME: Turning off this rule because it causes `TypeError: aVer.compare is not a function` error.
50+
// Most likely the root cause needs to be fixed on the rule side.
51+
"node-dependencies/compat-engines": "off",
4952
complexity: "off",
5053

5154
"prettier/prettier": [

0 commit comments

Comments
 (0)