Skip to content

Commit aebb59a

Browse files
committed
ci: remove packageManager temporarily
1 parent a015a19 commit aebb59a

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

Diff for: .github/workflows/pkg-size.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v3
1616

17-
- name: Setup pnpm
18-
uses: pnpm/action-setup@v2
19-
with:
20-
version: latest
21-
2217
- name: Setup Node.js
2318
uses: actions/setup-node@v3
2419
with:
@@ -27,6 +22,6 @@ jobs:
2722
- name: Package Size Report
2823
uses: pkg-size/action@v1
2924
with:
30-
build-command: pnpm build
25+
build-command: npx pnpm run build
3126
env:
3227
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
enable-pre-post-scripts=true
12
; https://github.com/pkg-size/action/pull/45
23
; package-lock=false
34
public-hoist-pattern[]=@1stg/*

Diff for: pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: tests/withJsExtension/test.js

+14-2
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,17 @@ assertResolve(
127127
path.relative(__dirname, require.resolve('typescript/lib/typescript.js')),
128128
)
129129

130-
// resolves symlinks by default
131-
assertResolve('dummy.js', '../../dummy.js/index.js')
130+
try {
131+
// resolves symlinks by default
132+
assertResolve('dummy.js', '../../dummy.js/index.js')
133+
} catch {
134+
try {
135+
// it could be `file:` protocol
136+
assertResolve(
137+
'dummy.js',
138+
'../../node_modules/.pnpm/file+dummy.js/node_modules/dummy.js/index.js',
139+
)
140+
} catch {
141+
assertResolve('dummy.js', '../../node_modules/dummy.js/index.js')
142+
}
143+
}

0 commit comments

Comments
 (0)