From a6f3b5beb1afc7843c6a1ffb27c551a563e5d076 Mon Sep 17 00:00:00 2001 From: Vitaly Rtishchev Date: Thu, 9 Nov 2023 20:17:31 +0400 Subject: [PATCH 1/4] Add distinct cjs format to output files --- package.json | 4 ++-- rollup.config.mjs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d49115d..6a77148 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "url": "https://github.com/rtivital/ts-package-template/issues" }, "homepage": "https://github.com/rtivital/ts-package-template#readme", - "main": "./dist/cjs/index.js", + "main": "./dist/cjs/index.cjs", "types": "./dist/types/index.d.ts", "module": "./dist/esm/index.mjs", "exports": { @@ -32,7 +32,7 @@ }, "require": { "types": "./dist/types/index.d.ts", - "default": "./dist/cjs/index.js" + "default": "./dist/cjs/index.cjs" } } }, diff --git a/rollup.config.mjs b/rollup.config.mjs index a7dfa5a..c92c678 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -9,7 +9,7 @@ export default { input: path.join(process.cwd(), './src/index.ts'), output: [ { format: 'es', file: './dist/esm/index.mjs' }, - { format: 'cjs', file: './dist/cjs/index.js' }, + { format: 'cjs', file: './dist/cjs/index.cjs' }, ], plugins: [ commonjs(), From e8703cc835afaee23285022e2d91b3177706ff0f Mon Sep 17 00:00:00 2001 From: Vitaly Rtishchev Date: Thu, 9 Nov 2023 20:19:31 +0400 Subject: [PATCH 2/4] Update dependencies to the latest version --- package.json | 16 +-- yarn.lock | 288 +++++++++++++++++++++++++++------------------------ 2 files changed, 161 insertions(+), 143 deletions(-) diff --git a/package.json b/package.json index 6a77148..fdd0fe9 100644 --- a/package.json +++ b/package.json @@ -51,16 +51,16 @@ "devDependencies": { "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.2.3", - "@rollup/plugin-replace": "^5.0.4", + "@rollup/plugin-replace": "^5.0.5", "@types/fs-extra": "^11", - "@types/jest": "^29.5.6", - "@types/node": "^20.8.9", + "@types/jest": "^29.5.8", + "@types/node": "^20.9.0", "@types/signale": "^1", - "@types/yargs": "^17.0.29", - "@typescript-eslint/eslint-plugin": "^6.9.0", - "@typescript-eslint/parser": "^6.9.0", + "@types/yargs": "^17.0.31", + "@typescript-eslint/eslint-plugin": "^6.10.0", + "@typescript-eslint/parser": "^6.10.0", "esbuild": "^0.19.5", - "eslint": "^8.52.0", + "eslint": "^8.53.0", "esno": "^0.17.0", "execa": "^8.0.1", "fs-extra": "^11.1.1", @@ -69,7 +69,7 @@ "open": "^9.1.0", "prettier": "^3.0.3", "rimraf": "^5.0.5", - "rollup": "^4.1.4", + "rollup": "^4.3.0", "rollup-plugin-esbuild": "^6.1.0", "rollup-plugin-node-externals": "^6.1.2", "signale": "^1.4.0", diff --git a/yarn.lock b/yarn.lock index 0802c30..ba82201 100644 --- a/yarn.lock +++ b/yarn.lock @@ -741,9 +741,9 @@ __metadata: languageName: node linkType: hard -"@eslint/eslintrc@npm:^2.1.2": - version: 2.1.2 - resolution: "@eslint/eslintrc@npm:2.1.2" +"@eslint/eslintrc@npm:^2.1.3": + version: 2.1.3 + resolution: "@eslint/eslintrc@npm:2.1.3" dependencies: ajv: "npm:^6.12.4" debug: "npm:^4.3.2" @@ -754,14 +754,14 @@ __metadata: js-yaml: "npm:^4.1.0" minimatch: "npm:^3.1.2" strip-json-comments: "npm:^3.1.1" - checksum: 00efdc3797e6f05518060522b7788e5f5aff02f13facbd0c83b176c3dee86554023283a5f68542df379c5137685d2d29745c87f62bf2406a1d38d95471f44ce6 + checksum: f4103f4346126292eb15581c5a1d12bef03410fd3719dedbdb92e1f7031d46a5a2d60de8566790445d5d4b70b75ba050876799a11f5fff8265a91ee3fa77dab0 languageName: node linkType: hard -"@eslint/js@npm:8.52.0": - version: 8.52.0 - resolution: "@eslint/js@npm:8.52.0" - checksum: cdcf8f9b54994fe1a5dc086c714a75dca5fe5899f9b362986abd12b3b5bec9c9755f7608e663ce072edd3fa3910cc752afef8d149fda0288a477652b65865a1c +"@eslint/js@npm:8.53.0": + version: 8.53.0 + resolution: "@eslint/js@npm:8.53.0" + checksum: d29f6c207b2f6dc4ef174d16a3c07b0d3a17ca3d805680496ff267edd773e3bac41db4e7dcab622ca1970d892535bd19671e2a756d4eac75e96fd8c8dcdb619b languageName: node linkType: hard @@ -1193,9 +1193,9 @@ __metadata: languageName: node linkType: hard -"@rollup/plugin-replace@npm:^5.0.4": - version: 5.0.4 - resolution: "@rollup/plugin-replace@npm:5.0.4" +"@rollup/plugin-replace@npm:^5.0.5": + version: 5.0.5 + resolution: "@rollup/plugin-replace@npm:5.0.5" dependencies: "@rollup/pluginutils": "npm:^5.0.1" magic-string: "npm:^0.30.3" @@ -1204,7 +1204,7 @@ __metadata: peerDependenciesMeta: rollup: optional: true - checksum: d84cb5f8422263407a93500375c4e8e64fcaa455f4ef0d32a609cb0779f65aa0c64b0a1bf3196e9d3777f92b504033771930896b6eeb98699978a3aab3150228 + checksum: a896ebc67e0aeb59102dd3cc8647cfeaac6d37cf337f2e2ae412a83e14dace2bb65b52271a1186f8d1c1ea151a7f9d387a3d89d03012802af40543481571ea0a languageName: node linkType: hard @@ -1224,86 +1224,86 @@ __metadata: languageName: node linkType: hard -"@rollup/rollup-android-arm-eabi@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-android-arm-eabi@npm:4.1.4" +"@rollup/rollup-android-arm-eabi@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.3.0" conditions: os=android & cpu=arm languageName: node linkType: hard -"@rollup/rollup-android-arm64@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-android-arm64@npm:4.1.4" +"@rollup/rollup-android-arm64@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-android-arm64@npm:4.3.0" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-arm64@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-darwin-arm64@npm:4.1.4" +"@rollup/rollup-darwin-arm64@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-darwin-arm64@npm:4.3.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-x64@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-darwin-x64@npm:4.1.4" +"@rollup/rollup-darwin-x64@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-darwin-x64@npm:4.3.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-linux-arm-gnueabihf@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.1.4" +"@rollup/rollup-linux-arm-gnueabihf@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.3.0" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@rollup/rollup-linux-arm64-gnu@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.1.4" +"@rollup/rollup-linux-arm64-gnu@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.3.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm64-musl@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-linux-arm64-musl@npm:4.1.4" +"@rollup/rollup-linux-arm64-musl@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.3.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-x64-gnu@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-linux-x64-gnu@npm:4.1.4" +"@rollup/rollup-linux-x64-gnu@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.3.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-musl@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-linux-x64-musl@npm:4.1.4" +"@rollup/rollup-linux-x64-musl@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.3.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-win32-arm64-msvc@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.1.4" +"@rollup/rollup-win32-arm64-msvc@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.3.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-win32-ia32-msvc@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.1.4" +"@rollup/rollup-win32-ia32-msvc@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.3.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@rollup/rollup-win32-x64-msvc@npm:4.1.4": - version: 4.1.4 - resolution: "@rollup/rollup-win32-x64-msvc@npm:4.1.4" +"@rollup/rollup-win32-x64-msvc@npm:4.3.0": + version: 4.3.0 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.3.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -1314,16 +1314,16 @@ __metadata: dependencies: "@rollup/plugin-commonjs": "npm:^25.0.7" "@rollup/plugin-node-resolve": "npm:^15.2.3" - "@rollup/plugin-replace": "npm:^5.0.4" + "@rollup/plugin-replace": "npm:^5.0.5" "@types/fs-extra": "npm:^11" - "@types/jest": "npm:^29.5.6" - "@types/node": "npm:^20.8.9" + "@types/jest": "npm:^29.5.8" + "@types/node": "npm:^20.9.0" "@types/signale": "npm:^1" - "@types/yargs": "npm:^17.0.29" - "@typescript-eslint/eslint-plugin": "npm:^6.9.0" - "@typescript-eslint/parser": "npm:^6.9.0" + "@types/yargs": "npm:^17.0.31" + "@typescript-eslint/eslint-plugin": "npm:^6.10.0" + "@typescript-eslint/parser": "npm:^6.10.0" esbuild: "npm:^0.19.5" - eslint: "npm:^8.52.0" + eslint: "npm:^8.53.0" esno: "npm:^0.17.0" execa: "npm:^8.0.1" fs-extra: "npm:^11.1.1" @@ -1332,7 +1332,7 @@ __metadata: open: "npm:^9.1.0" prettier: "npm:^3.0.3" rimraf: "npm:^5.0.5" - rollup: "npm:^4.1.4" + rollup: "npm:^4.3.0" rollup-plugin-esbuild: "npm:^6.1.0" rollup-plugin-node-externals: "npm:^6.1.2" signale: "npm:^1.4.0" @@ -1468,13 +1468,13 @@ __metadata: languageName: node linkType: hard -"@types/jest@npm:^29.5.6": - version: 29.5.6 - resolution: "@types/jest@npm:29.5.6" +"@types/jest@npm:^29.5.8": + version: 29.5.8 + resolution: "@types/jest@npm:29.5.8" dependencies: expect: "npm:^29.0.0" pretty-format: "npm:^29.0.0" - checksum: 316463d2755677c42db5b6d5189794b8bbcf281c79f60cc936b5daa049cb2dc6339a6e343941b3c995ef29778c1c84b2a4f32f10a119ece418c47a3febfb2051 + checksum: a28e7827ea7e1a2aace6a386868fa6b8402c162d6c71570aed2c29d3745ddc22ceef6899a20643071817905d3c57b670a7992fc8760bff65939351fd4dc481cf languageName: node linkType: hard @@ -1494,7 +1494,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:^20.8.9": +"@types/node@npm:*": version: 20.8.9 resolution: "@types/node@npm:20.8.9" dependencies: @@ -1503,6 +1503,15 @@ __metadata: languageName: node linkType: hard +"@types/node@npm:^20.9.0": + version: 20.9.0 + resolution: "@types/node@npm:20.9.0" + dependencies: + undici-types: "npm:~5.26.4" + checksum: 755d07de735eafda4e20af75ad9d03bdbfddef327d790e9a896142eac7493db5d8501591376e1c8227aa12eeb88e522bc727c6024504842ed40e539e8a466db9 + languageName: node + linkType: hard + "@types/resolve@npm:1.20.2": version: 1.20.2 resolution: "@types/resolve@npm:1.20.2" @@ -1540,7 +1549,16 @@ __metadata: languageName: node linkType: hard -"@types/yargs@npm:^17.0.29, @types/yargs@npm:^17.0.8": +"@types/yargs@npm:^17.0.31": + version: 17.0.31 + resolution: "@types/yargs@npm:17.0.31" + dependencies: + "@types/yargs-parser": "npm:*" + checksum: 1e04df99bd0ad8ac8b3748b6ac0e99a9a4efe20b9cd8eab69ac9503fe87ab9bec312ad56982e969cdb0e2c0679431434ad571f6934049adb15fa35b22810c867 + languageName: node + linkType: hard + +"@types/yargs@npm:^17.0.8": version: 17.0.29 resolution: "@types/yargs@npm:17.0.29" dependencies: @@ -1549,15 +1567,15 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^6.9.0": - version: 6.9.0 - resolution: "@typescript-eslint/eslint-plugin@npm:6.9.0" +"@typescript-eslint/eslint-plugin@npm:^6.10.0": + version: 6.10.0 + resolution: "@typescript-eslint/eslint-plugin@npm:6.10.0" dependencies: "@eslint-community/regexpp": "npm:^4.5.1" - "@typescript-eslint/scope-manager": "npm:6.9.0" - "@typescript-eslint/type-utils": "npm:6.9.0" - "@typescript-eslint/utils": "npm:6.9.0" - "@typescript-eslint/visitor-keys": "npm:6.9.0" + "@typescript-eslint/scope-manager": "npm:6.10.0" + "@typescript-eslint/type-utils": "npm:6.10.0" + "@typescript-eslint/utils": "npm:6.10.0" + "@typescript-eslint/visitor-keys": "npm:6.10.0" debug: "npm:^4.3.4" graphemer: "npm:^1.4.0" ignore: "npm:^5.2.4" @@ -1570,44 +1588,44 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 0907c596b1309f4f9e49fb82906ac05a03ec10b5127a0c4628bd9027b0e4a5344a8278af44d5eb69a6819af1b30487e54b5209eacc17334269dbbd4c8fc10aa9 + checksum: f50b17cb753afbfc99549d38585eba8558949b977eb4661dd584e73ee946b3dbe944c9e3b12a233fa06b5e1c7d101730ac88a00c7a91b0a7f1e2c37a98e13c7a languageName: node linkType: hard -"@typescript-eslint/parser@npm:^6.9.0": - version: 6.9.0 - resolution: "@typescript-eslint/parser@npm:6.9.0" +"@typescript-eslint/parser@npm:^6.10.0": + version: 6.10.0 + resolution: "@typescript-eslint/parser@npm:6.10.0" dependencies: - "@typescript-eslint/scope-manager": "npm:6.9.0" - "@typescript-eslint/types": "npm:6.9.0" - "@typescript-eslint/typescript-estree": "npm:6.9.0" - "@typescript-eslint/visitor-keys": "npm:6.9.0" + "@typescript-eslint/scope-manager": "npm:6.10.0" + "@typescript-eslint/types": "npm:6.10.0" + "@typescript-eslint/typescript-estree": "npm:6.10.0" + "@typescript-eslint/visitor-keys": "npm:6.10.0" debug: "npm:^4.3.4" peerDependencies: eslint: ^7.0.0 || ^8.0.0 peerDependenciesMeta: typescript: optional: true - checksum: b1943297f4c5fa2bf9293c61b717037a21d73f36b67ad7a1180b6961fcfa6540dfc327365827b4316fd032f5c587e46be206b235c5f982f7a49f7191f4c653ad + checksum: fd86c31dfdde03636393a3a9cf16716856bb506923069f34d87af14fac363a33578f47476a15d272e4d7a764de00fd905ee11361cc06b81b302a9fa8ebe4c23c languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:6.9.0": - version: 6.9.0 - resolution: "@typescript-eslint/scope-manager@npm:6.9.0" +"@typescript-eslint/scope-manager@npm:6.10.0": + version: 6.10.0 + resolution: "@typescript-eslint/scope-manager@npm:6.10.0" dependencies: - "@typescript-eslint/types": "npm:6.9.0" - "@typescript-eslint/visitor-keys": "npm:6.9.0" - checksum: 26b52a02419edf073859b7a3d15b4b4a9b3acd7e33232bff2cb2589cdf81c784cd818f677b6eefc08f3354ed4aa010b370a085ec89e8150fffeba8da0d3951ad + "@typescript-eslint/types": "npm:6.10.0" + "@typescript-eslint/visitor-keys": "npm:6.10.0" + checksum: a5fbee770d763852a7f426b950d495529139f1629fdcb30136c93f787acd82236db4272f78dff1d05a3a10a6406472ae95ae94ab75cfb618a06d75b8cc536cbf languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:6.9.0": - version: 6.9.0 - resolution: "@typescript-eslint/type-utils@npm:6.9.0" +"@typescript-eslint/type-utils@npm:6.10.0": + version: 6.10.0 + resolution: "@typescript-eslint/type-utils@npm:6.10.0" dependencies: - "@typescript-eslint/typescript-estree": "npm:6.9.0" - "@typescript-eslint/utils": "npm:6.9.0" + "@typescript-eslint/typescript-estree": "npm:6.10.0" + "@typescript-eslint/utils": "npm:6.10.0" debug: "npm:^4.3.4" ts-api-utils: "npm:^1.0.1" peerDependencies: @@ -1615,23 +1633,23 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: ac56a0e5a90a9ea3c1e54a908f8da95b7ae37cde3395554a310517aeee8a0da0747162ca8db389f7fe0e7cd414f4c34ed4684553c396eb1ff0b4d5ce2071a798 + checksum: f7c425d4da4d53d78b3d6630216dc1f2809f8dcaed62dc3cf12252102a53103a2aa39a160b310ca1cedebf87b8c339013be0c2360710c7c836b775374730c10e languageName: node linkType: hard -"@typescript-eslint/types@npm:6.9.0": - version: 6.9.0 - resolution: "@typescript-eslint/types@npm:6.9.0" - checksum: 18ca92e19ed45407f55e75353047e9cd08183639939ba912a995c89bac89cfc28ddd10f02d8d8f71e44494337f80ee87096aff9498026f0d23f1899a72adf70a +"@typescript-eslint/types@npm:6.10.0": + version: 6.10.0 + resolution: "@typescript-eslint/types@npm:6.10.0" + checksum: 30f47de625405b3729db6d26a0376d98628bd966c70ca01fab1adcef91bba810d27ce643d844e42d1cc77bb2c6277e62efe278a090da63ba748dfe5710c4757b languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:6.9.0": - version: 6.9.0 - resolution: "@typescript-eslint/typescript-estree@npm:6.9.0" +"@typescript-eslint/typescript-estree@npm:6.10.0": + version: 6.10.0 + resolution: "@typescript-eslint/typescript-estree@npm:6.10.0" dependencies: - "@typescript-eslint/types": "npm:6.9.0" - "@typescript-eslint/visitor-keys": "npm:6.9.0" + "@typescript-eslint/types": "npm:6.10.0" + "@typescript-eslint/visitor-keys": "npm:6.10.0" debug: "npm:^4.3.4" globby: "npm:^11.1.0" is-glob: "npm:^4.0.3" @@ -1640,34 +1658,34 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: cf747f1540ac4760b01a56acf6a5d84457d46a3542309d9c853323cb6ca307559114e3226e6c2f17d757b42f52ee9c8dc57368cc34a8f292ff105b1fca9a3601 + checksum: ca28ca5a55e2d431c649ad093e4a4302f2b37c430bbeebbe622b05c727fd14dab136aead5a96848499d3ff4d187889733f8871b8dd5205d19bed4a260ad74544 languageName: node linkType: hard -"@typescript-eslint/utils@npm:6.9.0": - version: 6.9.0 - resolution: "@typescript-eslint/utils@npm:6.9.0" +"@typescript-eslint/utils@npm:6.10.0": + version: 6.10.0 + resolution: "@typescript-eslint/utils@npm:6.10.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.4.0" "@types/json-schema": "npm:^7.0.12" "@types/semver": "npm:^7.5.0" - "@typescript-eslint/scope-manager": "npm:6.9.0" - "@typescript-eslint/types": "npm:6.9.0" - "@typescript-eslint/typescript-estree": "npm:6.9.0" + "@typescript-eslint/scope-manager": "npm:6.10.0" + "@typescript-eslint/types": "npm:6.10.0" + "@typescript-eslint/typescript-estree": "npm:6.10.0" semver: "npm:^7.5.4" peerDependencies: eslint: ^7.0.0 || ^8.0.0 - checksum: bf9ef9ad66212a46ddf8335d16f80a583803c2ba2d3b1f2a8f37449b0409105377d03fa52381c57676aae48dd5cf83adba2465155b6b96b8c91a40a5987a6ded + checksum: 809a1d08b154f76ed7a99edddf872369f6ed93987cea19a18cb9f12b8390bddcff9138d9d94955545da54488d59e0001054bec13baf6d858a1761b059480b887 languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:6.9.0": - version: 6.9.0 - resolution: "@typescript-eslint/visitor-keys@npm:6.9.0" +"@typescript-eslint/visitor-keys@npm:6.10.0": + version: 6.10.0 + resolution: "@typescript-eslint/visitor-keys@npm:6.10.0" dependencies: - "@typescript-eslint/types": "npm:6.9.0" + "@typescript-eslint/types": "npm:6.10.0" eslint-visitor-keys: "npm:^3.4.1" - checksum: fa255a8fd74c4f3cf990281a70d76dafc0f7fc4122507051210b74627ae4b514903c7eaab69090f47ff8421ee48f218633849939653cb6c48001fcc9f4bc65d8 + checksum: f9223c148655ce00bb17db8aa92ee964e62c75d15095893e0b4d653c60a4033f456329b06de3eab4b404d8df359904f0dd6e3c8c842885c6d130e28ccd95ce03 languageName: node linkType: hard @@ -2635,14 +2653,14 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^8.52.0": - version: 8.52.0 - resolution: "eslint@npm:8.52.0" +"eslint@npm:^8.53.0": + version: 8.53.0 + resolution: "eslint@npm:8.53.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.2.0" "@eslint-community/regexpp": "npm:^4.6.1" - "@eslint/eslintrc": "npm:^2.1.2" - "@eslint/js": "npm:8.52.0" + "@eslint/eslintrc": "npm:^2.1.3" + "@eslint/js": "npm:8.53.0" "@humanwhocodes/config-array": "npm:^0.11.13" "@humanwhocodes/module-importer": "npm:^1.0.1" "@nodelib/fs.walk": "npm:^1.2.8" @@ -2679,7 +2697,7 @@ __metadata: text-table: "npm:^0.2.0" bin: eslint: bin/eslint.js - checksum: 9269b32ccf6e9947d994f871888d5b541da4a8539160ee19d80ecac0c70c51a7d3a7c111a58cf1adf81f093a7c1b5564edefa5c6dbe29b1df9c9f3e30700af30 + checksum: c5cd0049488c0463dab7d97466767ca5a1d0b3b59d0a223122683dc8039ecea30b27867fb9e38906b4c1ab9d09ece8a802a6c540d8905016f1cc4b4bb27329af languageName: node linkType: hard @@ -5073,22 +5091,22 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^4.1.4": - version: 4.1.4 - resolution: "rollup@npm:4.1.4" - dependencies: - "@rollup/rollup-android-arm-eabi": "npm:4.1.4" - "@rollup/rollup-android-arm64": "npm:4.1.4" - "@rollup/rollup-darwin-arm64": "npm:4.1.4" - "@rollup/rollup-darwin-x64": "npm:4.1.4" - "@rollup/rollup-linux-arm-gnueabihf": "npm:4.1.4" - "@rollup/rollup-linux-arm64-gnu": "npm:4.1.4" - "@rollup/rollup-linux-arm64-musl": "npm:4.1.4" - "@rollup/rollup-linux-x64-gnu": "npm:4.1.4" - "@rollup/rollup-linux-x64-musl": "npm:4.1.4" - "@rollup/rollup-win32-arm64-msvc": "npm:4.1.4" - "@rollup/rollup-win32-ia32-msvc": "npm:4.1.4" - "@rollup/rollup-win32-x64-msvc": "npm:4.1.4" +"rollup@npm:^4.3.0": + version: 4.3.0 + resolution: "rollup@npm:4.3.0" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.3.0" + "@rollup/rollup-android-arm64": "npm:4.3.0" + "@rollup/rollup-darwin-arm64": "npm:4.3.0" + "@rollup/rollup-darwin-x64": "npm:4.3.0" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.3.0" + "@rollup/rollup-linux-arm64-gnu": "npm:4.3.0" + "@rollup/rollup-linux-arm64-musl": "npm:4.3.0" + "@rollup/rollup-linux-x64-gnu": "npm:4.3.0" + "@rollup/rollup-linux-x64-musl": "npm:4.3.0" + "@rollup/rollup-win32-arm64-msvc": "npm:4.3.0" + "@rollup/rollup-win32-ia32-msvc": "npm:4.3.0" + "@rollup/rollup-win32-x64-msvc": "npm:4.3.0" fsevents: "npm:~2.3.2" dependenciesMeta: "@rollup/rollup-android-arm-eabi": @@ -5119,7 +5137,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: 75ce1b47b7794cacf4291b8a3ecf9f1e3266f6e3ee94d82acbbf6087403f338eadc763a6dba3daff2efb4581dfe26391275c9acd4772834417b74f499b4960a2 + checksum: d96b4e383930c560d56483abdf0b44ff90e065a9d1af6f089972103951824fc6f69d2799e2165c4275d616be3a92c869981d9cdcb8aa22fa63b2276a45f28286 languageName: node linkType: hard From e93268958af270b577ba6f2177db250c87091951 Mon Sep 17 00:00:00 2001 From: Vitaly Rtishchev Date: Thu, 9 Nov 2023 20:22:21 +0400 Subject: [PATCH 3/4] Setup GitHub workflow --- .github/workflows/pull_request.yml | 33 ++++++++++++++++++++++++++++++ README.md | 1 + package.json | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..28bd611 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,33 @@ +name: Pull request workflow + +on: + pull_request: + branches: + - '**' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + +jobs: + test_pull_request: + runs-on: ubuntu-latest + steps: + - name: Get Yarn cache path + id: yarn-cache + run: echo "::set-output name=dir::$(yarn cache dir)" + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '16.15.0' + - name: Load Yarn cache + uses: actions/cache@v2 + with: + path: ${{ steps.yarn-cache.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - name: Install dependencies + run: yarn install --frozen-lockfile + - name: Run tests + run: npm test diff --git a/README.md b/README.md index 3fb8cd5..33e6400 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Included tools: - jest - prettier - ESLint +- GitHub workflow for tests ## Usage diff --git a/package.json b/package.json index fdd0fe9..df744c9 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "typecheck": "tsc --noEmit", "lint": "eslint --cache --ext .ts,.tsx .", "jest": "jest", - "test": "npm run prettier:check && npm run typecheck && npm run lint && npm run jest", + "test": "npm run prettier:check && npm run typecheck && npm run lint && npm run jest && npm run build", "release": "npm test && esno scripts/release" }, "devDependencies": { From 3d4522768f9f41b345820aa115528ca118222a3a Mon Sep 17 00:00:00 2001 From: Vitaly Rtishchev Date: Thu, 9 Nov 2023 20:31:25 +0400 Subject: [PATCH 4/4] Update Node.js version in GitHub workflow --- .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 28bd611..80d29db 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: '16.15.0' + node-version: '20.9.0' - name: Load Yarn cache uses: actions/cache@v2 with: