From c7aeb6789e43f4b64504ff753866c45fd8c84778 Mon Sep 17 00:00:00 2001 From: Technote Date: Wed, 1 Jun 2022 16:47:40 +0900 Subject: [PATCH 1/5] chore: update packages --- package.json | 8 +-- yarn.lock | 134 +++++++++++++++++++++++++-------------------------- 2 files changed, 71 insertions(+), 71 deletions(-) diff --git a/package.json b/package.json index aff73f6e..f648d3f5 100644 --- a/package.json +++ b/package.json @@ -50,13 +50,13 @@ "@rollup/plugin-typescript": "^8.3.2", "@sindresorhus/tsconfig": "^3.0.1", "@types/js-yaml": "^4.0.5", - "@types/node": "^17.0.36", - "@typescript-eslint/eslint-plugin": "^5.26.0", - "@typescript-eslint/parser": "^5.26.0", + "@types/node": "^17.0.38", + "@typescript-eslint/eslint-plugin": "^5.27.0", + "@typescript-eslint/parser": "^5.27.0", "c8": "^7.11.3", "eslint": "^8.16.0", "eslint-plugin-import": "^2.26.0", - "rollup": "^2.75.3", + "rollup": "^2.75.4", "typescript": "^4.7.2" }, "peerDependencies": { diff --git a/yarn.lock b/yarn.lock index 553201c8..c2c8a795 100644 --- a/yarn.lock +++ b/yarn.lock @@ -249,19 +249,19 @@ resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== -"@types/node@^17.0.36": - version "17.0.36" - resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.36.tgz#c0d5f2fe76b47b63e0e0efc3d2049a9970d68794" - integrity sha512-V3orv+ggDsWVHP99K3JlwtH20R7J4IhI1Kksgc+64q5VxgfRkQG8Ws3MFm/FZOKDYGy9feGFlZ70/HpCNe9QaA== - -"@typescript-eslint/eslint-plugin@^5.26.0": - version "5.26.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.26.0.tgz#c1f98ccba9d345e38992975d3ca56ed6260643c2" - integrity sha512-oGCmo0PqnRZZndr+KwvvAUvD3kNE4AfyoGCwOZpoCncSh4MVD06JTE8XQa2u9u+NX5CsyZMBTEc2C72zx38eYA== - dependencies: - "@typescript-eslint/scope-manager" "5.26.0" - "@typescript-eslint/type-utils" "5.26.0" - "@typescript-eslint/utils" "5.26.0" +"@types/node@^17.0.38": + version "17.0.38" + resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.38.tgz#f8bb07c371ccb1903f3752872c89f44006132947" + integrity sha512-5jY9RhV7c0Z4Jy09G+NIDTsCZ5G0L5n+Z+p+Y7t5VJHM30bgwzSjVtlcBxqAj+6L/swIlvtOSzr8rBk/aNyV2g== + +"@typescript-eslint/eslint-plugin@^5.27.0": + version "5.27.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.27.0.tgz#23d82a4f21aaafd8f69dbab7e716323bb6695cc8" + integrity sha512-DDrIA7GXtmHXr1VCcx9HivA39eprYBIFxbQEHI6NyraRDxCGpxAFiYQAT/1Y0vh1C+o2vfBiy4IuPoXxtTZCAQ== + dependencies: + "@typescript-eslint/scope-manager" "5.27.0" + "@typescript-eslint/type-utils" "5.27.0" + "@typescript-eslint/utils" "5.27.0" debug "^4.3.4" functional-red-black-tree "^1.0.1" ignore "^5.2.0" @@ -269,69 +269,69 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@^5.26.0": - version "5.26.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.26.0.tgz#a61b14205fe2ab7533deb4d35e604add9a4ceee2" - integrity sha512-n/IzU87ttzIdnAH5vQ4BBDnLPly7rC5VnjN3m0xBG82HK6rhRxnCb3w/GyWbNDghPd+NktJqB/wl6+YkzZ5T5Q== +"@typescript-eslint/parser@^5.27.0": + version "5.27.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.27.0.tgz#62bb091ed5cf9c7e126e80021bb563dcf36b6b12" + integrity sha512-8oGjQF46c52l7fMiPPvX4It3u3V3JipssqDfHQ2hcR0AeR8Zge+OYyKUCm5b70X72N1qXt0qgHenwN6Gc2SXZA== dependencies: - "@typescript-eslint/scope-manager" "5.26.0" - "@typescript-eslint/types" "5.26.0" - "@typescript-eslint/typescript-estree" "5.26.0" + "@typescript-eslint/scope-manager" "5.27.0" + "@typescript-eslint/types" "5.27.0" + "@typescript-eslint/typescript-estree" "5.27.0" debug "^4.3.4" -"@typescript-eslint/scope-manager@5.26.0": - version "5.26.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.26.0.tgz#44209c7f649d1a120f0717e0e82da856e9871339" - integrity sha512-gVzTJUESuTwiju/7NiTb4c5oqod8xt5GhMbExKsCTp6adU3mya6AGJ4Pl9xC7x2DX9UYFsjImC0mA62BCY22Iw== +"@typescript-eslint/scope-manager@5.27.0": + version "5.27.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.27.0.tgz#a272178f613050ed62f51f69aae1e19e870a8bbb" + integrity sha512-VnykheBQ/sHd1Vt0LJ1JLrMH1GzHO+SzX6VTXuStISIsvRiurue/eRkTqSrG0CexHQgKG8shyJfR4o5VYioB9g== dependencies: - "@typescript-eslint/types" "5.26.0" - "@typescript-eslint/visitor-keys" "5.26.0" + "@typescript-eslint/types" "5.27.0" + "@typescript-eslint/visitor-keys" "5.27.0" -"@typescript-eslint/type-utils@5.26.0": - version "5.26.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.26.0.tgz#937dee97702361744a3815c58991acf078230013" - integrity sha512-7ccbUVWGLmcRDSA1+ADkDBl5fP87EJt0fnijsMFTVHXKGduYMgienC/i3QwoVhDADUAPoytgjbZbCOMj4TY55A== +"@typescript-eslint/type-utils@5.27.0": + version "5.27.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.27.0.tgz#36fd95f6747412251d79c795b586ba766cf0974b" + integrity sha512-vpTvRRchaf628Hb/Xzfek+85o//zEUotr1SmexKvTfs7czXfYjXVT/a5yDbpzLBX1rhbqxjDdr1Gyo0x1Fc64g== dependencies: - "@typescript-eslint/utils" "5.26.0" + "@typescript-eslint/utils" "5.27.0" debug "^4.3.4" tsutils "^3.21.0" -"@typescript-eslint/types@5.26.0": - version "5.26.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.26.0.tgz#cb204bb154d3c103d9cc4d225f311b08219469f3" - integrity sha512-8794JZFE1RN4XaExLWLI2oSXsVImNkl79PzTOOWt9h0UHROwJedNOD2IJyfL0NbddFllcktGIO2aOu10avQQyA== +"@typescript-eslint/types@5.27.0": + version "5.27.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.27.0.tgz#c3f44b9dda6177a9554f94a74745ca495ba9c001" + integrity sha512-lY6C7oGm9a/GWhmUDOs3xAVRz4ty/XKlQ2fOLr8GAIryGn0+UBOoJDWyHer3UgrHkenorwvBnphhP+zPmzmw0A== -"@typescript-eslint/typescript-estree@5.26.0": - version "5.26.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.26.0.tgz#16cbceedb0011c2ed4f607255f3ee1e6e43b88c3" - integrity sha512-EyGpw6eQDsfD6jIqmXP3rU5oHScZ51tL/cZgFbFBvWuCwrIptl+oueUZzSmLtxFuSOQ9vDcJIs+279gnJkfd1w== +"@typescript-eslint/typescript-estree@5.27.0": + version "5.27.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.27.0.tgz#7965f5b553c634c5354a47dcce0b40b94611e995" + integrity sha512-QywPMFvgZ+MHSLRofLI7BDL+UczFFHyj0vF5ibeChDAJgdTV8k4xgEwF0geFhVlPc1p8r70eYewzpo6ps+9LJQ== dependencies: - "@typescript-eslint/types" "5.26.0" - "@typescript-eslint/visitor-keys" "5.26.0" + "@typescript-eslint/types" "5.27.0" + "@typescript-eslint/visitor-keys" "5.27.0" debug "^4.3.4" globby "^11.1.0" is-glob "^4.0.3" semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/utils@5.26.0": - version "5.26.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.26.0.tgz#896b8480eb124096e99c8b240460bb4298afcfb4" - integrity sha512-PJFwcTq2Pt4AMOKfe3zQOdez6InIDOjUJJD3v3LyEtxHGVVRK3Vo7Dd923t/4M9hSH2q2CLvcTdxlLPjcIk3eg== +"@typescript-eslint/utils@5.27.0": + version "5.27.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.27.0.tgz#d0021cbf686467a6a9499bd0589e19665f9f7e71" + integrity sha512-nZvCrkIJppym7cIbP3pOwIkAefXOmfGPnCM0LQfzNaKxJHI6VjI8NC662uoiPlaf5f6ymkTy9C3NQXev2mdXmA== dependencies: "@types/json-schema" "^7.0.9" - "@typescript-eslint/scope-manager" "5.26.0" - "@typescript-eslint/types" "5.26.0" - "@typescript-eslint/typescript-estree" "5.26.0" + "@typescript-eslint/scope-manager" "5.27.0" + "@typescript-eslint/types" "5.27.0" + "@typescript-eslint/typescript-estree" "5.27.0" eslint-scope "^5.1.1" eslint-utils "^3.0.0" -"@typescript-eslint/visitor-keys@5.26.0": - version "5.26.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.26.0.tgz#7195f756e367f789c0e83035297c45b417b57f57" - integrity sha512-wei+ffqHanYDOQgg/fS6Hcar6wAWv0CUPQ3TZzOWd2BLfgP539rb49bwua8WRAs7R6kOSLn82rfEu2ro6Llt8Q== +"@typescript-eslint/visitor-keys@5.27.0": + version "5.27.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.27.0.tgz#97aa9a5d2f3df8215e6d3b77f9d214a24db269bd" + integrity sha512-46cYrteA2MrIAjv9ai44OQDUoCZyHeGIc4lsjCUX2WT6r4C+kidz1bNiR4017wHOPUythYeH+Sc7/cFP97KEAA== dependencies: - "@typescript-eslint/types" "5.26.0" + "@typescript-eslint/types" "5.27.0" eslint-visitor-keys "^3.3.0" acorn-jsx@^5.3.2: @@ -1444,7 +1444,7 @@ minimist@^1.2.0, minimist@^1.2.6: ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== ms@2.1.2: version "2.1.2" @@ -1464,7 +1464,7 @@ nanoid@^3.3.4: natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== node-fetch@^2.6.7: version "2.6.7" @@ -1505,7 +1505,7 @@ object.values@^1.1.5: once@^1.3.0, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== dependencies: wrappy "1" @@ -1538,7 +1538,7 @@ p-limit@^3.0.2: p-locate@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= + integrity sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg== dependencies: p-limit "^1.1.0" @@ -1552,7 +1552,7 @@ p-locate@^5.0.0: p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= + integrity sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww== parent-module@^1.0.0: version "1.0.1" @@ -1564,7 +1564,7 @@ parent-module@^1.0.0: path-exists@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== path-exists@^4.0.0: version "4.0.0" @@ -1574,7 +1574,7 @@ path-exists@^4.0.0: path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== path-key@^3.1.0: version "3.1.1" @@ -1675,10 +1675,10 @@ rimraf@^3.0.2: dependencies: glob "^7.1.3" -rollup@^2.59.0, rollup@^2.75.3: - version "2.75.3" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.75.3.tgz#11bd3e8ace526911feea8af17f2a286fbfdb4cf8" - integrity sha512-YA29fLU6MAYSaDxIQYrGGOcbXlDmG96h0krGGYObroezcQ0KgEPM3+7MtKD/qeuUbFuAJXvKZee5dA1dpwq1PQ== +rollup@^2.59.0, rollup@^2.75.4: + version "2.75.4" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.75.4.tgz#c3518c326c98e508b628a93015a03a276c331f22" + integrity sha512-JgZiJMJkKImMZJ8ZY1zU80Z2bA/TvrL/7D9qcBCrfl2bP+HUaIw0QHUroB4E3gBpFl6CRFM1YxGbuYGtdAswbQ== optionalDependencies: fsevents "~2.3.2" @@ -1932,9 +1932,9 @@ vite@^2.9.9: fsevents "~2.3.2" vitest@^0.13.0: - version "0.13.0" - resolved "https://registry.yarnpkg.com/vitest/-/vitest-0.13.0.tgz#8c2e8a555bb6d7ac016408ffdc41d270bf69f37c" - integrity sha512-vuYt3+G25MMnANgyMHHG3VK86C9K/VFi/8uH5myQ2v660W4WArv99ElakPlVFxxSXXM1jqQPiPj2ht35Bod9LQ== + version "0.13.1" + resolved "https://registry.yarnpkg.com/vitest/-/vitest-0.13.1.tgz#4b857c6ca0a9a1a2340dc8a1d9991b1f75934220" + integrity sha512-CfSBf7YFw/i8HumSUQRtZKs0aV91DC9WU8nAgIJAlawKHaFuPHQohDwOTPIFgrxySiuFYUa0Yohf9gDFfBwjxA== dependencies: "@types/chai" "^4.3.1" "@types/chai-subset" "^1.3.3" From d18987373831f049356272e21b8bbb3a83ae0b6d Mon Sep 17 00:00:00 2001 From: Technote Date: Wed, 1 Jun 2022 16:49:58 +0900 Subject: [PATCH 2/5] fix: esm import --- src/command.test.ts | 2 +- src/context.test.ts | 2 +- src/context.ts | 2 +- src/global.setup.ts | 2 +- src/index.ts | 12 ++++++------ src/nock.test.ts | 2 +- src/setup.ts | 2 +- src/types.ts | 4 ++-- src/utils.test.ts | 4 ++-- src/utils.ts | 4 ++-- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/command.test.ts b/src/command.test.ts index faadca8a..01b20b25 100644 --- a/src/command.test.ts +++ b/src/command.test.ts @@ -1,7 +1,7 @@ /* eslint-disable no-magic-numbers */ import { addPath, exportVariable } from '@actions/core'; import { describe, it } from 'vitest'; -import { spyOnExportVariable, exportVariableCalledWith, spyOnAddPath, addPathCalledWith } from '../src'; +import { spyOnExportVariable, exportVariableCalledWith, spyOnAddPath, addPathCalledWith } from './command.js'; describe('spyOnExportVariable, exportVariableCalledWith', () => { it('should spy on exportVariable', () => { diff --git a/src/context.test.ts b/src/context.test.ts index 40769ea4..75faded8 100644 --- a/src/context.test.ts +++ b/src/context.test.ts @@ -1,6 +1,6 @@ /* eslint-disable no-magic-numbers */ import { describe, expect, it } from 'vitest'; -import { getContext, generateContext, createResponse } from '../src'; +import { getContext, generateContext, createResponse } from './context.js'; describe('getContext', () => { it('should get context', () => { diff --git a/src/context.ts b/src/context.ts index 79deb5d0..66ee4bbd 100644 --- a/src/context.ts +++ b/src/context.ts @@ -1,4 +1,4 @@ -import type { Context } from '@actions/github/lib/context'; +import type { Context } from '@actions/github/lib/context.js'; import type { OctokitResponse } from '@octokit/types'; // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/src/global.setup.ts b/src/global.setup.ts index 56842f86..44386895 100644 --- a/src/global.setup.ts +++ b/src/global.setup.ts @@ -2,7 +2,7 @@ import type childProcess from 'child_process'; import { EOL } from 'os'; import { vi } from 'vitest'; -import global from './global'; +import global from './global.js'; export const setupGlobal = (): void => { global.mockStdout = { diff --git a/src/index.ts b/src/index.ts index be274268..b6a5641f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ -export * from './context'; -export * from './nock'; -export * from './utils'; -export * from './command'; +export * from './context.js'; +export * from './nock.js'; +export * from './utils.js'; +export * from './command.js'; -export * from './global'; -export * from './global.setup'; +export * from './global.js'; +export * from './global.setup.js'; diff --git a/src/nock.test.ts b/src/nock.test.ts index 6d67a8ee..adeb451c 100644 --- a/src/nock.test.ts +++ b/src/nock.test.ts @@ -1,7 +1,7 @@ /* eslint-disable no-magic-numbers */ import path from 'path'; import { describe, expect, it, vi } from 'vitest'; -import { getConfigFixture, getApiFixture, disableNetConnect, encodeContent } from '../src'; +import { getConfigFixture, getApiFixture, disableNetConnect, encodeContent } from './nock.js'; describe('getConfigFixture', () => { it('should get config fixture', () => { diff --git a/src/setup.ts b/src/setup.ts index eb8752f9..2c14dba6 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -1,3 +1,3 @@ -import { setupGlobal } from '.'; +import { setupGlobal } from './index.js'; setupGlobal(); diff --git a/src/types.ts b/src/types.ts index b3bf7a58..45c16146 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,5 @@ -import type { GitHub } from '@actions/github/lib/utils'; -import type { RestEndpointMethods } from '@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types'; +import type { GitHub } from '@actions/github/lib/utils.js'; +import type { RestEndpointMethods } from '@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types.js'; export type Octokit = InstanceType & { rest: RestEndpointMethods; diff --git a/src/utils.test.ts b/src/utils.test.ts index 8acc2f56..9af78a9c 100644 --- a/src/utils.test.ts +++ b/src/utils.test.ts @@ -4,6 +4,7 @@ import fs from 'fs'; import { EOL } from 'os'; import path from 'path'; import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; +import global from './global.js'; import { testEnv, testChildProcess, @@ -22,8 +23,7 @@ import { setActionEnv, getOctokit, getLogStdout, -} from '../src'; -import global from '../src/global'; +} from './utils.js'; beforeAll(() => { process.env.TEST_ENV = 'test'; diff --git a/src/utils.ts b/src/utils.ts index 84bc479d..eb84e955 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,4 +1,4 @@ -import type { Octokit } from './types'; +import type { Octokit } from './types.js'; import type { PathLike } from 'fs'; import type { SpyInstance } from 'vitest'; import fs from 'fs'; @@ -7,7 +7,7 @@ import path from 'path'; import { getOctokit as getOctokitInstance } from '@actions/github'; import { load } from 'js-yaml'; import { afterEach, beforeEach, expect, vi } from 'vitest'; -import global from './global'; +import global from './global.js'; // eslint-disable-next-line @typescript-eslint/no-explicit-any export const setActionEnv = (rootDir: string): { [key: string]: any } => { From a46f9f0df7f8ec878cb25380db09ca80d534f0a3 Mon Sep 17 00:00:00 2001 From: Technote Date: Wed, 1 Jun 2022 16:50:06 +0900 Subject: [PATCH 3/5] chore: tweaks --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f648d3f5..d30af26b 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "dist" ], "scripts": { - "build": "tsc && rm -f dist/*.js && rollup -c", + "build": "tsc --emitDeclarationOnly && rollup -c", "cover": "vitest run --coverage", "lint": "eslint 'src/**/*.ts' --cache", "lint:fix": "eslint --fix 'src/**/*.ts'", From 2c02752731ccc5e3e9299ae142c8737fed120cf8 Mon Sep 17 00:00:00 2001 From: technote-space Date: Wed, 1 Jun 2022 07:51:24 +0000 Subject: [PATCH 4/5] chore: update npm dependencies --- package.json | 2 +- yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d30af26b..6c8b0980 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "@actions/github": "^5.0.3", "@octokit/plugin-rest-endpoint-methods": "^5.13.0", "js-yaml": "^4.1.0", - "vitest": "^0.13.0" + "vitest": "^0.13.1" }, "devDependencies": { "@rollup/plugin-typescript": "^8.3.2", diff --git a/yarn.lock b/yarn.lock index c2c8a795..f41a37cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1931,7 +1931,7 @@ vite@^2.9.9: optionalDependencies: fsevents "~2.3.2" -vitest@^0.13.0: +vitest@^0.13.1: version "0.13.1" resolved "https://registry.yarnpkg.com/vitest/-/vitest-0.13.1.tgz#4b857c6ca0a9a1a2340dc8a1d9991b1f75934220" integrity sha512-CfSBf7YFw/i8HumSUQRtZKs0aV91DC9WU8nAgIJAlawKHaFuPHQohDwOTPIFgrxySiuFYUa0Yohf9gDFfBwjxA== From b28f5c1b8d0b793318b742d3fd18ecd6d4b49c78 Mon Sep 17 00:00:00 2001 From: Technote Date: Wed, 1 Jun 2022 16:51:49 +0900 Subject: [PATCH 5/5] feat: update package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6c8b0980..7233fc3a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@technote-space/github-action-test-helper", - "version": "0.9.6", + "version": "0.9.7", "description": "Test helper for GitHub Actions.", "keywords": [ "github",