Skip to content

Commit

Permalink
chore: willboosterify this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBooster-bot committed Oct 21, 2024
1 parent c9cc5de commit a1c3670
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .yarn/plugins/plugin-auto-install.cjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"use strict";var n={name:"plugin-auto-install",factory:n=>{const t=n("child_process"),e=n("crypto"),c=n("fs"),r=n("path"),o="plugin-auto-install v2.0.1";let i=!1,s="";function a(n){try{const t=e.createHash("sha256"),o=r.join(n.cwd,"yarn.lock");c.statSync(o,{throwIfNoEntry:!1})&&t.update(c.readFileSync(o,"utf8"));for(const e of n.workspaces.map((n=>n.cwd)).sort()){const n=r.join(e,"package.json"),o=JSON.parse(c.readFileSync(n,"utf8")),i=Object.keys(o).filter((n=>n.endsWith("ependencies"))),s=[];for(const n of i)s.push(...Object.entries(o[n]).map((([n,t])=>`${n}: ${t}`)));t.update(s.sort().join(","))}return t.digest("hex")}catch{}}function l(n){try{const t=d(n);return c.readFileSync(r.join(t,"hash"),"utf8")}catch{}}function u(n,t){if(!n||n===s)return!1;try{const e=d(t);c.mkdirSync(e,{recursive:!0}),c.writeFileSync(r.join(e,"hash"),n),c.writeFileSync(r.join(e,".gitignore"),".gitignore\nhash"),console.info(`${o} updated dependency hash: ${n}`),s=n}catch{}return!0}function d(n){return r.join(n.cwd,".yarn","plugins","plugin-auto-install")}return{hooks:{validateProject(n){i=!0;const t=a(n);t&&t===l(n)||u(t,n)},afterAllInstalled(n){i=!1;const t=a(n);t&&t===l(n)||u(t,n)},async setupScriptEnvironment(n,e){if(!i)try{const c=a(n);if(c&&c===l(n))return;if(!u(c,n))return;console.info(`${o} is running 'yarn install' due to dependency changes.`),t.spawnSync("yarn",["install"],{cwd:n.cwd,env:e}),console.info(`${o} finished 'yarn install'.`)}catch{}}}}}};module.exports=n;
"use strict";var n={name:"plugin-auto-install",factory:n=>{const t=n("child_process"),e=n("crypto"),c=n("fs"),r=n("path"),o="plugin-auto-install v2.0.2";let i=!1,s="";function a(n){try{const t=e.createHash("sha256"),o=r.join(n.cwd,"yarn.lock");c.statSync(o,{throwIfNoEntry:!1})&&t.update(c.readFileSync(o,"utf8"));for(const e of n.workspaces.map((n=>n.cwd)).sort()){const n=r.join(e,"package.json"),o=JSON.parse(c.readFileSync(n,"utf8")),i=Object.keys(o).filter((n=>n.endsWith("ependencies"))),s=[];for(const n of i)s.push(...Object.entries(o[n]).map((([n,t])=>`${n}: ${t}`)));t.update(s.sort().join(","))}return t.digest("hex")}catch{}}function l(n){try{const t=d(n);return c.readFileSync(r.join(t,"hash"),"utf8")}catch{}}function u(n,t){if(!n||n===s)return!1;try{const e=d(t);c.mkdirSync(e,{recursive:!0}),c.writeFileSync(r.join(e,"hash"),n),c.writeFileSync(r.join(e,".gitignore"),".gitignore\nhash"),console.info(`${o} updated dependency hash: ${n}`),s=n}catch{}return!0}function d(n){return r.join(n.cwd,".yarn","plugins","plugin-auto-install")}return{hooks:{validateProject(n){i=!0;const t=a(n);t&&t===l(n)||u(t,n)},afterAllInstalled(n){i=!1;const t=a(n);t&&t===l(n)||u(t,n)},async setupScriptEnvironment(n,e){if(!i)try{const c=a(n);if(c&&c===l(n))return;if(!u(c,n))return;console.info(`${o} is running 'yarn install' due to dependency changes.`),t.spawnSync("yarn",["install"],{cwd:n.cwd,env:e}),console.info(`${o} finished 'yarn install'.`)}catch{}}}}}};module.exports=n;
//# sourceMappingURL=index.js.map
4 changes: 2 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ nmMode: hardlinks-global
nodeLinker: node-modules

plugins:
- checksum: 8b171ee8559cde7c8696b5459b49e19cb8ec2cdf942a6a64107706c803f5f1b9b96ae7378a32240ce5119807ac7cf12cd8dd32313188d2f72a3452d28e9c3e44
- checksum: 38e9c07e39ad26ceca2aad81e352f9827d3f08608a396e7286ee684b0551208b9043ba43811e5757e32867999023c982b719e6ae981cffdf2e48ba0aa42b77ef
path: .yarn/plugins/plugin-auto-install.cjs
spec: 'https://github.com/WillBooster/yarn-plugin-auto-install/releases/download/v2.0.1/index.cjs'
spec: 'https://github.com/WillBooster/yarn-plugin-auto-install/releases/download/v2.0.2/index.cjs'

yarnPath: .yarn/releases/yarn-4.5.1.cjs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@qiwi/multi-semantic-release": "7.1.2",
"@types/eslint": "8.56.10",
"@typescript-eslint/parser": "8.10.0",
"@willbooster/prettier-config": "9.1.2",
"@willbooster/prettier-config": "9.1.3",
"conventional-changelog-conventionalcommits": "6.1.0",
"eslint": "8.57.0",
"husky": "9.1.6",
Expand Down
4 changes: 2 additions & 2 deletions packages/shared-lib-blitz-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"@types/micromatch": "4.0.9",
"@typescript-eslint/eslint-plugin": "8.10.0",
"@typescript-eslint/parser": "8.10.0",
"@willbooster/eslint-config-ts": "10.6.0",
"@willbooster/prettier-config": "9.1.2",
"@willbooster/eslint-config-ts": "10.6.1",
"@willbooster/prettier-config": "9.1.3",
"blitz": "2.1.1",
"build-ts": "13.1.8",
"eslint": "8.57.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/shared-lib-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"@types/node": "20.16.13",
"@typescript-eslint/eslint-plugin": "8.10.0",
"@typescript-eslint/parser": "8.10.0",
"@willbooster/eslint-config-ts": "10.6.0",
"@willbooster/prettier-config": "9.1.2",
"@willbooster/eslint-config-ts": "10.6.1",
"@willbooster/prettier-config": "9.1.3",
"build-ts": "13.1.8",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/shared-lib-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"@types/react-dom": "18.3.1",
"@typescript-eslint/eslint-plugin": "8.10.0",
"@typescript-eslint/parser": "8.10.0",
"@willbooster/eslint-config-ts-react": "10.2.0",
"@willbooster/prettier-config": "9.1.2",
"@willbooster/eslint-config-ts-react": "10.2.1",
"@willbooster/prettier-config": "9.1.3",
"babel-loader": "9.2.1",
"build-ts": "13.1.8",
"eslint": "8.57.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/shared-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"@types/micromatch": "4.0.9",
"@typescript-eslint/eslint-plugin": "8.10.0",
"@typescript-eslint/parser": "8.10.0",
"@willbooster/eslint-config-ts": "10.6.0",
"@willbooster/prettier-config": "9.1.2",
"@willbooster/eslint-config-ts": "10.6.1",
"@willbooster/prettier-config": "9.1.3",
"build-ts": "13.1.8",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/wb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"@types/yargs": "17.0.33",
"@typescript-eslint/eslint-plugin": "8.10.0",
"@typescript-eslint/parser": "8.10.0",
"@willbooster/eslint-config-ts": "10.6.0",
"@willbooster/prettier-config": "9.1.2",
"@willbooster/eslint-config-ts": "10.6.1",
"@willbooster/prettier-config": "9.1.3",
"at-decorators": "2.1.0",
"build-ts": "13.1.8",
"eslint": "8.57.0",
Expand Down
52 changes: 26 additions & 26 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5578,15 +5578,15 @@ __metadata:
languageName: node
linkType: hard

"@willbooster/eslint-config-ts-react@npm:10.2.0":
version: 10.2.0
resolution: "@willbooster/eslint-config-ts-react@npm:10.2.0"
"@willbooster/eslint-config-ts-react@npm:10.2.1":
version: 10.2.1
resolution: "@willbooster/eslint-config-ts-react@npm:10.2.1"
dependencies:
"@willbooster/eslint-config-ts": "npm:10.6.0"
"@willbooster/eslint-config-ts": "npm:10.6.1"
peerDependencies:
"@typescript-eslint/eslint-plugin": ">=5"
"@typescript-eslint/parser": ">=5"
"@willbooster/prettier-config": 9.1.2
"@willbooster/prettier-config": 9.1.3
eslint: ">=8"
eslint-config-prettier: ">=8"
eslint-import-resolver-typescript: ">=2"
Expand All @@ -5596,34 +5596,34 @@ __metadata:
eslint-plugin-sort-class-members: ">=1.14"
eslint-plugin-sort-destructure-keys: ">=1.4"
typescript: ">=4"
checksum: 10c0/9edb47ef4baaecc7463fae50609d3cd5dce2108415f91d5f85f8a696d88a71dd992826f77262788ff399d080bcc559aab86b0f97f7b10acb196c4a06618b8bca
checksum: 10c0/31957060047a72fd8774a897c16205b13632023fb702119bfc054f98878e3fc5d306c0b245953beb2f38c37ef7cc03ce04973e520713afc35b69b8382e6e0d2b
languageName: node
linkType: hard

"@willbooster/eslint-config-ts@npm:10.6.0":
version: 10.6.0
resolution: "@willbooster/eslint-config-ts@npm:10.6.0"
"@willbooster/eslint-config-ts@npm:10.6.1":
version: 10.6.1
resolution: "@willbooster/eslint-config-ts@npm:10.6.1"
peerDependencies:
"@typescript-eslint/eslint-plugin": ">=5"
"@typescript-eslint/parser": ">=5"
"@willbooster/prettier-config": 9.1.2
"@willbooster/prettier-config": 9.1.3
eslint: ">=8"
eslint-config-prettier: ">=8"
eslint-import-resolver-typescript: ">=2"
eslint-plugin-import: ">=2"
eslint-plugin-sort-class-members: ">=1.14"
eslint-plugin-sort-destructure-keys: ">=1.4"
typescript: ">=4"
checksum: 10c0/f403804cd9f04aeb7af08bc801bfa6ed653f650f10667bd8986cf0cf2e700e166edad26f3b60c5784508984039abd729b510d9dbc64be454597274b2c6881c3b
checksum: 10c0/a90c08d9d3ef1246f8d7e10744a409a1bf39e333eee52d1ef0b02bccdfa5c5832f2bf2f5330a05adfe98d64ce95d1dd36014c632866d0f8779e9c40043e5b4a6
languageName: node
linkType: hard

"@willbooster/prettier-config@npm:9.1.2":
version: 9.1.2
resolution: "@willbooster/prettier-config@npm:9.1.2"
"@willbooster/prettier-config@npm:9.1.3":
version: 9.1.3
resolution: "@willbooster/prettier-config@npm:9.1.3"
peerDependencies:
prettier: ">=2"
checksum: 10c0/814c5ca454f809f391b1884a9243764aaa3bd2d2ccbc853be925bf7d1cb395c0d2a5df9165eb2239cf72fa19b56b22597d375221674c229da6ffcc55cdcdc9dc
checksum: 10c0/b3be5c34e2052bfb2030d21bebe72594b55e448ca5a22d7a0f49d9d166cced36618f5862df3ac9c3d3b495a46119678711b62bb916aba52769019650ec4f5f66
languageName: node
linkType: hard

Expand All @@ -5635,8 +5635,8 @@ __metadata:
"@types/micromatch": "npm:4.0.9"
"@typescript-eslint/eslint-plugin": "npm:8.10.0"
"@typescript-eslint/parser": "npm:8.10.0"
"@willbooster/eslint-config-ts": "npm:10.6.0"
"@willbooster/prettier-config": "npm:9.1.2"
"@willbooster/eslint-config-ts": "npm:10.6.1"
"@willbooster/prettier-config": "npm:9.1.3"
blitz: "npm:2.1.1"
build-ts: "npm:13.1.8"
eslint: "npm:8.57.0"
Expand Down Expand Up @@ -5674,8 +5674,8 @@ __metadata:
"@types/node": "npm:20.16.13"
"@typescript-eslint/eslint-plugin": "npm:8.10.0"
"@typescript-eslint/parser": "npm:8.10.0"
"@willbooster/eslint-config-ts": "npm:10.6.0"
"@willbooster/prettier-config": "npm:9.1.2"
"@willbooster/eslint-config-ts": "npm:10.6.1"
"@willbooster/prettier-config": "npm:9.1.3"
build-ts: "npm:13.1.8"
dotenv: "npm:16.4.5"
eslint: "npm:8.57.0"
Expand Down Expand Up @@ -5716,8 +5716,8 @@ __metadata:
"@types/react-dom": "npm:18.3.1"
"@typescript-eslint/eslint-plugin": "npm:8.10.0"
"@typescript-eslint/parser": "npm:8.10.0"
"@willbooster/eslint-config-ts-react": "npm:10.2.0"
"@willbooster/prettier-config": "npm:9.1.2"
"@willbooster/eslint-config-ts-react": "npm:10.2.1"
"@willbooster/prettier-config": "npm:9.1.3"
babel-loader: "npm:9.2.1"
build-ts: "npm:13.1.8"
eslint: "npm:8.57.0"
Expand Down Expand Up @@ -5752,8 +5752,8 @@ __metadata:
"@types/micromatch": "npm:4.0.9"
"@typescript-eslint/eslint-plugin": "npm:8.10.0"
"@typescript-eslint/parser": "npm:8.10.0"
"@willbooster/eslint-config-ts": "npm:10.6.0"
"@willbooster/prettier-config": "npm:9.1.2"
"@willbooster/eslint-config-ts": "npm:10.6.1"
"@willbooster/prettier-config": "npm:9.1.3"
build-ts: "npm:13.1.8"
eslint: "npm:8.57.0"
eslint-config-prettier: "npm:9.1.0"
Expand Down Expand Up @@ -5784,8 +5784,8 @@ __metadata:
"@types/yargs": "npm:17.0.33"
"@typescript-eslint/eslint-plugin": "npm:8.10.0"
"@typescript-eslint/parser": "npm:8.10.0"
"@willbooster/eslint-config-ts": "npm:10.6.0"
"@willbooster/prettier-config": "npm:9.1.2"
"@willbooster/eslint-config-ts": "npm:10.6.1"
"@willbooster/prettier-config": "npm:9.1.3"
at-decorators: "npm:2.1.0"
build-ts: "npm:13.1.8"
chalk: "npm:5.3.0"
Expand Down Expand Up @@ -20057,7 +20057,7 @@ __metadata:
"@qiwi/multi-semantic-release": "npm:7.1.2"
"@types/eslint": "npm:8.56.10"
"@typescript-eslint/parser": "npm:8.10.0"
"@willbooster/prettier-config": "npm:9.1.2"
"@willbooster/prettier-config": "npm:9.1.3"
conventional-changelog-conventionalcommits: "npm:6.1.0"
eslint: "npm:8.57.0"
husky: "npm:9.1.6"
Expand Down

0 comments on commit a1c3670

Please sign in to comment.