Skip to content

Commit ff01661

Browse files
committed
refactor: adapted pnpm
1 parent 12f118d commit ff01661

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.config/.lintstagedrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export default {
1010
'*.{css,scss}': 'stylelint --fix --allow-empty-input --no-validate',
1111
'*.{js,ts,tsx,jsx,mjs,cjs}': 'xo --fix',
1212
// ensure that security vulnerabilities are fixed before committing - we need to skip `dev` for the moment as there are some unsolveable conflicts
13-
'package-lock.json': 'npm audit fix --omit=dev',
13+
'pnpm-lock.yml': 'pnpm audit fix --omit=dev',
1414
// ensure that lock file is up to date
1515
'**/package.json': [
16-
() => 'npm install --package-lock-only --ignore-scripts',
17-
'npx npm-package-json-lint'
18-
],
16+
() => 'pnpm install --lockfile-only --ignore-scripts',
17+
'pnpm run lint:package-json'
18+
]
1919
};

scripts/lint-packages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ for (const { name, parentPath } of packages) {
3535

3636
if (mode === 'publint') {
3737
try {
38-
execSync(`npx publint ${packagePath}`, {
38+
execSync(`pnpm exec publint ${packagePath}`, {
3939
stdio: 'inherit',
4040
cwd: process.cwd()
4141
});

0 commit comments

Comments
 (0)