chore: 统一规范团队包管理器为 pnpm

使用 only-allow 限制该项目包管理器为 pnpm,避免安装失败等问题
This commit is contained in:
xiangshu233 2022-12-07 13:55:15 +08:00
parent 67f5a9a6bb
commit 78368339d7
2 changed files with 62 additions and 0 deletions

View File

@ -8,6 +8,7 @@
"url": "https://github.com/xiangshu233"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"bootstrap": "pnpm install",
"serve": "npm run dev",
"dev": "vite",
@ -69,6 +70,7 @@
"husky": "^8.0.1",
"less": "^4.1.3",
"lint-staged": "^13.0.3",
"only-allow": "^1.1.1",
"picocolors": "^1.0.0",
"postcss": "^8.4.16",
"postcss-html": "^1.0.0",

60
pnpm-lock.yaml generated
View File

@ -36,6 +36,7 @@ specifiers:
lint-staged: ^13.0.3
lodash-es: ^4.17.21
mockjs: ^1.1.0
only-allow: ^1.1.1
picocolors: ^1.0.0
pinia: ^2.0.19
pinia-plugin-persist: ^1.0.0
@ -115,6 +116,7 @@ devDependencies:
husky: 8.0.1
less: 4.1.3
lint-staged: 13.0.3
only-allow: 1.1.1
picocolors: 1.0.0
postcss: 8.4.16
postcss-html: 1.5.0
@ -1054,6 +1056,12 @@ packages:
uri-js: 4.4.1
dev: true
/ansi-align/3.0.1:
resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==}
dependencies:
string-width: 4.2.3
dev: true
/ansi-escapes/4.3.2:
resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==}
engines: {node: '>=8'}
@ -1232,6 +1240,20 @@ packages:
resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}
dev: true
/boxen/4.2.0:
resolution: {integrity: sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==}
engines: {node: '>=8'}
dependencies:
ansi-align: 3.0.1
camelcase: 5.3.1
chalk: 3.0.0
cli-boxes: 2.2.1
string-width: 4.2.3
term-size: 2.2.1
type-fest: 0.8.1
widest-line: 3.1.0
dev: true
/brace-expansion/1.1.11:
resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
dependencies:
@ -1362,6 +1384,14 @@ packages:
supports-color: 5.5.0
dev: true
/chalk/3.0.0:
resolution: {integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==}
engines: {node: '>=8'}
dependencies:
ansi-styles: 4.3.0
supports-color: 7.2.0
dev: true
/chalk/4.1.2:
resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
engines: {node: '>=10'}
@ -1407,6 +1437,11 @@ packages:
engines: {node: '>=6'}
dev: true
/cli-boxes/2.2.1:
resolution: {integrity: sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==}
engines: {node: '>=6'}
dev: true
/cli-cursor/3.1.0:
resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==}
engines: {node: '>=8'}
@ -3800,6 +3835,14 @@ packages:
mimic-fn: 4.0.0
dev: true
/only-allow/1.1.1:
resolution: {integrity: sha512-WE01hpInLQUF3MKK7vhu4p1VZLKb4rL4d+CI3rwwwsToXELx6YawNFhZy3rVU3rpQpI9kF9zFMk4OjB3xwXdJA==}
hasBin: true
dependencies:
boxen: 4.2.0
which-pm-runs: 1.1.0
dev: true
/open/8.4.0:
resolution: {integrity: sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==}
engines: {node: '>=12'}
@ -4873,6 +4916,11 @@ packages:
strip-ansi: 6.0.1
dev: true
/term-size/2.2.1:
resolution: {integrity: sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==}
engines: {node: '>=8'}
dev: true
/terser/5.15.0:
resolution: {integrity: sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA==}
engines: {node: '>=10'}
@ -5427,6 +5475,11 @@ packages:
resolution: {integrity: sha512-h9atBP/bsZohWpHnr+2sic8Iecb60GxftXsWNLLLSqewgIsGzByd2gcIID4nXcG+3tNe4GQG3dLcff3kXupdRA==}
dev: true
/which-pm-runs/1.1.0:
resolution: {integrity: sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==}
engines: {node: '>=4'}
dev: true
/which/1.3.1:
resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==}
hasBin: true
@ -5442,6 +5495,13 @@ packages:
isexe: 2.0.0
dev: true
/widest-line/3.1.0:
resolution: {integrity: sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==}
engines: {node: '>=8'}
dependencies:
string-width: 4.2.3
dev: true
/windicss/3.5.6:
resolution: {integrity: sha512-P1mzPEjgFMZLX0ZqfFht4fhV/FX8DTG7ERG1fBLiWvd34pTLVReS5CVsewKn9PApSgXnVfPWwvq+qUsRwpnwFA==}
engines: {node: '>= 12'}