build: pin pnpm 12.3.4 in package.json and route just recipes through corepack

This commit is contained in:
Lucas Oskorep
2026-09-07 15:05:52 -04:00
parent 29813f841b
commit 234a682103
3 changed files with 744 additions and 238 deletions
+6 -5
View File
@@ -2,13 +2,14 @@ set dotenv-load
NAME:="ddcbrightness" NAME:="ddcbrightness"
DOMAIN:="lucaso.io" DOMAIN:="lucaso.io"
FULL_NAME:=NAME + "@" + DOMAIN FULL_NAME:=NAME + "@" + DOMAIN
PNPM:="npx --yes corepack pnpm"
packages: packages:
pnpm install {{PNPM}} install
build: packages && build-schemas build: packages && build-schemas
rm -rf dist/* rm -rf dist/*
pnpm run build {{PNPM}} run build
cp metadata.json dist/ cp metadata.json dist/
cp stylesheet.css dist/ cp stylesheet.css dist/
mkdir -p dist/schemas mkdir -p dist/schemas
@@ -37,13 +38,13 @@ live-debug:
journalctl /usr/bin/gnome-shell -f -o cat | tee debug.log journalctl /usr/bin/gnome-shell -f -o cat | tee debug.log
lint: lint:
pnpm run lint {{PNPM}} run lint
lint-fix: lint-fix:
pnpm run lint --fix {{PNPM}} run lint --fix
clean: clean:
pnpm run clean {{PNPM}} run clean
analyze: build-package analyze: build-package
uv pip install -U shexli uv pip install -U shexli
+1
View File
@@ -2,6 +2,7 @@
"name": "ddcbrightness", "name": "ddcbrightness",
"version": "0.1.0", "version": "0.1.0",
"description": "A GNOME Extension to control display brightness via DDC/CI using ddcutil", "description": "A GNOME Extension to control display brightness via DDC/CI using ddcutil",
"packageManager": "pnpm@12.3.4",
"type": "module", "type": "module",
"private": true, "private": true,
"author": "Lucas Oskorep <lucas.oskorep@gmail.com>", "author": "Lucas Oskorep <lucas.oskorep@gmail.com>",
+737 -233
View File
File diff suppressed because it is too large Load Diff