Skip to content

Commit 041e3dd

Browse files
silverwindclaude
andcommitted
Switch from npm to pnpm
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 36baf18 commit 041e3dd

File tree

4 files changed

+6534
-9847
lines changed

4 files changed

+6534
-9847
lines changed

Makefile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
SOURCE_FILES := index.ts
22
DIST_FILES := dist/index.js
33

4-
node_modules: package-lock.json
5-
npm install --no-save
4+
node_modules: pnpm-lock.yaml
5+
pnpm install
66
@touch node_modules
77

88
.PHONY: deps
99
deps: node_modules
1010

1111
.PHONY: lint
1212
lint: node_modules
13-
npx eslint --ext js,jsx,ts,tsx --color .
14-
npx tsc
13+
pnpm exec eslint --ext js,jsx,ts,tsx --color .
14+
pnpm exec tsc
1515

1616
.PHONY: lint-fix
1717
lint-fix: node_modules
18-
npx eslint --ext js,jsx,ts,tsx --color . --fix
19-
npx tsc
18+
pnpm exec eslint --ext js,jsx,ts,tsx --color . --fix
19+
pnpm exec tsc
2020

2121
.PHONY: test
2222
test: node_modules
@@ -29,32 +29,32 @@ test-update: node_modules
2929
.PHONY: build
3030
build: node_modules $(DIST_FILES)
3131

32-
$(DIST_FILES): $(SOURCE_FILES) package-lock.json vite.config.ts
33-
npx vite build
32+
$(DIST_FILES): $(SOURCE_FILES) pnpm-lock.yaml vite.config.ts
33+
pnpm exec vite build
3434

3535
.PHONY: publish
3636
publish: node_modules
3737
git push -u --tags origin master
38-
npm publish
38+
pnpm publish
3939

4040
.PHONY: update
4141
update: node_modules
42-
npx updates -cu
43-
rm -rf node_modules package-lock.json
44-
npm install
42+
pnpm exec updates -cu
43+
rm -rf node_modules pnpm-lock.yaml
44+
pnpm install
4545
@touch node_modules
4646

4747
.PHONY: path
4848
patch: node_modules lint test build
49-
npx versions patch package.json package-lock.json
49+
pnpm exec versions patch package.json pnpm-lock.yaml
5050
@$(MAKE) --no-print-directory publish
5151

5252
.PHONY: minor
5353
minor: node_modules lint test build
54-
npx versions minor package.json package-lock.json
54+
pnpm exec versions minor package.json pnpm-lock.yaml
5555
@$(MAKE) --no-print-directory publish
5656

5757
.PHONY: major
5858
major: node_modules lint test build
59-
npx versions major package.json package-lock.json
59+
pnpm exec versions major package.json pnpm-lock.yaml
6060
@$(MAKE) --no-print-directory publish

0 commit comments

Comments
 (0)