From 01de2ae7144eb334bb9a817e4d969513ecb785bd Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Mon, 10 Jul 2023 20:51:49 +0800 Subject: [PATCH] revert: restrict node version --- .yarn/plugins/@yarnpkg/plugin-after-install.cjs | 9 --------- .yarnrc.yml | 4 ---- package.json | 3 ++- 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 .yarn/plugins/@yarnpkg/plugin-after-install.cjs diff --git a/.yarn/plugins/@yarnpkg/plugin-after-install.cjs b/.yarn/plugins/@yarnpkg/plugin-after-install.cjs deleted file mode 100644 index 070ea99cb5..0000000000 --- a/.yarn/plugins/@yarnpkg/plugin-after-install.cjs +++ /dev/null @@ -1,9 +0,0 @@ -/* eslint-disable */ -//prettier-ignore -module.exports = { -name: "@yarnpkg/plugin-after-install", -factory: function (require) { -var plugin=(()=>{var g=Object.create,r=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var I=t=>r(t,"__esModule",{value:!0});var i=t=>{if(typeof require!="undefined")return require(t);throw new Error('Dynamic require of "'+t+'" is not supported')};var h=(t,o)=>{for(var e in o)r(t,e,{get:o[e],enumerable:!0})},w=(t,o,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of C(o))!y.call(t,n)&&n!=="default"&&r(t,n,{get:()=>o[n],enumerable:!(e=x(o,n))||e.enumerable});return t},a=t=>w(I(r(t!=null?g(k(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var j={};h(j,{default:()=>b});var c=a(i("@yarnpkg/core")),m={afterInstall:{description:"Hook that will always run after install",type:c.SettingsType.STRING,default:""}};var u=a(i("clipanion")),d=a(i("@yarnpkg/core"));var p=a(i("@yarnpkg/shell")),l=async(t,o)=>{var f;let e=t.get("afterInstall"),n=!!((f=t.projectCwd)==null?void 0:f.endsWith(`dlx-${process.pid}`));return e&&!n?(o&&console.log("Running `afterInstall` hook..."),(0,p.execute)(e,[],{cwd:t.projectCwd||void 0})):0};var s=class extends u.Command{async execute(){let o=await d.Configuration.find(this.context.cwd,this.context.plugins);return l(o,!1)}};s.paths=[["after-install"]];var P={configuration:m,commands:[s],hooks:{afterAllInstalled:async t=>{if(await l(t.configuration,!0))throw new Error("The `afterInstall` hook failed, see output above.")}}},b=P;return j;})(); -return plugin; -} -}; diff --git a/.yarnrc.yml b/.yarnrc.yml index 83ec083735..6a581ec964 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -15,9 +15,5 @@ plugins: spec: '@yarnpkg/plugin-version' - path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs spec: '@yarnpkg/plugin-workspace-tools' - - path: .yarn/plugins/@yarnpkg/plugin-after-install.cjs - spec: 'https://raw.githubusercontent.com/mhassan1/yarn-plugin-after-install/v0.3.1/bundles/@yarnpkg/plugin-after-install.js' yarnPath: .yarn/releases/yarn-3.6.0.cjs - -afterInstall: node ./scripts/check-version.mjs && yarn i18n-codegen gen && yarn husky install diff --git a/package.json b/package.json index 8bdfe36bf9..f439c7bd45 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,8 @@ "test:coverage": "ENABLE_PRELOADING=false vitest run --coverage", "notify": "node scripts/notify.mjs", "circular": "madge --circular --ts-config ./tsconfig.json ./apps/web/src/pages/**/*.tsx", - "typecheck": "tsc -b tsconfig.json --diagnostics" + "typecheck": "tsc -b tsconfig.json --diagnostics", + "postinstall": "node ./scripts/check-version.mjs && yarn i18n-codegen gen && yarn husky install" }, "lint-staged": { "*": "prettier --write --ignore-unknown --cache",