From b0ae88bfadfc7020fd641c68b09eac5589e7dc30 Mon Sep 17 00:00:00 2001 From: Sebastien Colladon Date: Fri, 26 Aug 2022 10:43:01 +0200 Subject: [PATCH 1/5] fix: husky install issue in production environment --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 3cfdf8c0..c8152420 100644 --- a/package.json +++ b/package.json @@ -55,11 +55,10 @@ "test:debug": "node --inspect node_modules/.bin/jest", "test:debug:break": "node --inspect-brk node_modules/.bin/jest", "test:watch": "jest --watch", - "postinstall": "husky install", "postpack": "rm -f oclif.manifest.json && prettier --write README.md", "postrelease": "yarn release:tags && yarn release:github", "prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme", - "prepare": "husky install", + "prepare": "node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install", "release": "standard-version --no-verify --commit-all", "release:github": "conventional-github-releaser -p angular", "release:tags": "git push --follow-tags origin main -f --no-verify", From 94cf8aecbd5b455b99cdd293e188dc76d49de7cb Mon Sep 17 00:00:00 2001 From: Sebastien Colladon Date: Fri, 26 Aug 2022 10:44:20 +0200 Subject: [PATCH 2/5] build: add production like integration test --- .github/workflows/pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b2e2f0e8..bf3959e1 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -80,7 +80,7 @@ jobs: ${{ runner.os }}-yarn- - name: Install dependencies - run: yarn install --immutable --immutable-cache --check-cache + run: yarn install --immutable --immutable-cache --check-cache --prod - name: Build plugin run: yarn pack From 658e30c41d1fe23948ab821d4254d1216e25feb1 Mon Sep 17 00:00:00 2001 From: Sebastien Colladon Date: Fri, 26 Aug 2022 10:46:17 +0200 Subject: [PATCH 3/5] build: upgrade dependencies --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c8152420..0da80bd4 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "prettier-eslint": "^15.0.1", "standard-version": "^9.5.0", "ts-node": "^10.9.1", - "typescript": "^4.7.4", + "typescript": "^4.8.2", "yarn-upgrade-all": "^0.7.1" }, "oclif": { diff --git a/yarn.lock b/yarn.lock index de007acf..29d45ee7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7803,10 +7803,10 @@ typescript@^4.5.4, typescript@^4.6.4: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== -typescript@^4.7.4: - version "4.7.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" - integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== +typescript@^4.8.2: + version "4.8.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.2.tgz#e3b33d5ccfb5914e4eeab6699cf208adee3fd790" + integrity sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw== uglify-js@^3.1.4: version "3.15.5" From c64b58940fa9ce03c693a0f6fe707390a6e374fc Mon Sep 17 00:00:00 2001 From: Sebastien Colladon Date: Fri, 26 Aug 2022 11:01:10 +0200 Subject: [PATCH 4/5] fix: rollback to previous prepare version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0da80bd4..ca480522 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "postpack": "rm -f oclif.manifest.json && prettier --write README.md", "postrelease": "yarn release:tags && yarn release:github", "prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme", - "prepare": "node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install", + "prepare": "husky install", "release": "standard-version --no-verify --commit-all", "release:github": "conventional-github-releaser -p angular", "release:tags": "git push --follow-tags origin main -f --no-verify", From 68514ccf6a67c2bce34526cafbcdf797f2e43c30 Mon Sep 17 00:00:00 2001 From: Sebastien Colladon Date: Fri, 26 Aug 2022 11:01:17 +0200 Subject: [PATCH 5/5] Revert "build: add production like integration test" This reverts commit 94cf8aecbd5b455b99cdd293e188dc76d49de7cb. --- .github/workflows/pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index bf3959e1..b2e2f0e8 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -80,7 +80,7 @@ jobs: ${{ runner.os }}-yarn- - name: Install dependencies - run: yarn install --immutable --immutable-cache --check-cache --prod + run: yarn install --immutable --immutable-cache --check-cache - name: Build plugin run: yarn pack