From a68d3248d7ce3fff202fdf37770b8204ef80fbc2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 7 Aug 2024 01:01:20 +0300 Subject: [PATCH] refactor: small changes (#108) Co-authored-by: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com> --- package.json | 4 ++-- pnpm-lock.yaml | 44 ++++++++++++++++++++--------------- rollup.config.ts | 4 ++-- specs/define-config.spec-d.ts | 6 ++--- tsconfig.node.json | 2 +- 5 files changed, 33 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 795c471..78aaa4f 100644 --- a/package.json +++ b/package.json @@ -67,9 +67,9 @@ "semantic-release": "^23.0.0 || ^24.0.0" }, "devDependencies": { - "@archoleat/commitlint-define-config": "^1.0.7", + "@archoleat/commitlint-define-config": "^1.0.8", "@archoleat/eslint-flat-compatibility": "^1.1.6", - "@archoleat/semantic-release-define-config": "^1.1.11", + "@archoleat/semantic-release-define-config": "^1.1.12", "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", "@commitlint/types": "^19.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b01b031..81ff784 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,14 +9,14 @@ importers: .: devDependencies: '@archoleat/commitlint-define-config': - specifier: ^1.0.7 - version: 1.0.7 + specifier: ^1.0.8 + version: 1.0.8(@commitlint/cli@19.3.0(@types/node@22.1.0)(typescript@5.5.4))(@commitlint/config-conventional@19.2.2)(@commitlint/types@19.0.3) '@archoleat/eslint-flat-compatibility': specifier: ^1.1.6 version: 1.1.6 '@archoleat/semantic-release-define-config': - specifier: ^1.1.11 - version: 1.1.11(semantic-release@24.0.0(typescript@5.5.4)) + specifier: ^1.1.12 + version: 1.1.12(semantic-release@24.0.0(typescript@5.5.4)) '@commitlint/cli': specifier: ^19.3.0 version: 19.3.0(@types/node@22.1.0)(typescript@5.5.4) @@ -135,16 +135,20 @@ packages: resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} - '@archoleat/commitlint-define-config@1.0.7': - resolution: {integrity: sha512-2ekyjrJFJDk2t+13O65mmlekiZypGDnh7VXSq6fk4X9jExx4LQ7BgQSEEMS4DpM0ce3vjtAgQejEHyS9bzDyWA==} - engines: {node: '>=20.0.0', npm: '>=10.0.0', pnpm: '>=8.0.0'} + '@archoleat/commitlint-define-config@1.0.8': + resolution: {integrity: sha512-z00JsmPSnOznxED6HtlEdR50IPYv+3LLuwWx9dkCCm6IL1XW5C7WwkcUv+LNHynznvorVBAirgJJclqD6Fu4gQ==} + engines: {node: '>=20.0.0', pnpm: '>=9.0.0'} + peerDependencies: + '@commitlint/cli': ^19.0.0 + '@commitlint/config-conventional': ^19.0.0 + '@commitlint/types': ^19.0.0 '@archoleat/eslint-flat-compatibility@1.1.6': resolution: {integrity: sha512-gu8PQv6hWh2DEm2FONtAPDvv1odZXCADshCyvouYzFNscEgMLW0zwbfv6d6pAlsk7uY9+V05R/tz0qv0Sy4mzg==} engines: {node: '>=20.0.0', npm: '>=10.0.0', pnpm: '>=8.0.0'} - '@archoleat/semantic-release-define-config@1.1.11': - resolution: {integrity: sha512-OREIKuHiSvDJm5J4C//Zpzxurp73lZ7iYEj/3kXBUBVWKNE3M8rsTt97jeh3mSrnoH9ZRkI4M1TlVOlNmH1JNA==} + '@archoleat/semantic-release-define-config@1.1.12': + resolution: {integrity: sha512-oZnq/ouabo6lvAxcSZr4DQmk4oETz2p27hFgmcjTNrzo5qoWtm80Fpk3Y1r42b9r+a8s5Y6kbaa5a195nTNG5g==} engines: {node: '>=20.0.0', pnpm: '>=9.0.0'} peerDependencies: semantic-release: ^23.0.0 || ^24.0.0 @@ -1393,8 +1397,8 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - electron-to-chromium@1.5.4: - resolution: {integrity: sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==} + electron-to-chromium@1.5.5: + resolution: {integrity: sha512-QR7/A7ZkMS8tZuoftC/jfqNkZLQO779SSW3YuZHP4eXpj3EffGLFcB/Xu9AAZQzLccTiCV+EmUo3ha4mQ9wnlA==} emoji-regex@10.3.0: resolution: {integrity: sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==} @@ -2977,8 +2981,8 @@ packages: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} - postcss@8.4.40: - resolution: {integrity: sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q==} + postcss@8.4.41: + resolution: {integrity: sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==} engines: {node: ^10 || ^12 || >=14} prelude-ls@1.2.1: @@ -4010,8 +4014,10 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@archoleat/commitlint-define-config@1.0.7': + '@archoleat/commitlint-define-config@1.0.8(@commitlint/cli@19.3.0(@types/node@22.1.0)(typescript@5.5.4))(@commitlint/config-conventional@19.2.2)(@commitlint/types@19.0.3)': dependencies: + '@commitlint/cli': 19.3.0(@types/node@22.1.0)(typescript@5.5.4) + '@commitlint/config-conventional': 19.2.2 '@commitlint/types': 19.0.3 '@archoleat/eslint-flat-compatibility@1.1.6': @@ -4023,7 +4029,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@archoleat/semantic-release-define-config@1.1.11(semantic-release@24.0.0(typescript@5.5.4))': + '@archoleat/semantic-release-define-config@1.1.12(semantic-release@24.0.0(typescript@5.5.4))': dependencies: semantic-release: 24.0.0(typescript@5.5.4) @@ -4995,7 +5001,7 @@ snapshots: browserslist@4.23.3: dependencies: caniuse-lite: 1.0.30001649 - electron-to-chromium: 1.5.4 + electron-to-chromium: 1.5.5 node-releases: 2.0.18 update-browserslist-db: 1.1.0(browserslist@4.23.3) @@ -5376,7 +5382,7 @@ snapshots: editorconfig-checker@5.1.8: {} - electron-to-chromium@1.5.4: {} + electron-to-chromium@1.5.5: {} emoji-regex@10.3.0: {} @@ -7168,7 +7174,7 @@ snapshots: possible-typed-array-names@1.0.0: {} - postcss@8.4.40: + postcss@8.4.41: dependencies: nanoid: 3.3.7 picocolors: 1.0.1 @@ -8564,7 +8570,7 @@ snapshots: vite@5.3.5(@types/node@22.1.0): dependencies: esbuild: 0.21.5 - postcss: 8.4.40 + postcss: 8.4.41 rollup: 4.20.0 optionalDependencies: '@types/node': 22.1.0 diff --git a/rollup.config.ts b/rollup.config.ts index 60025c5..73e2008 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -12,12 +12,12 @@ const sourceFolder = 'src'; const typesFolder = `${sourceFolder}/types`; const fileName = 'index'; +const fileFormat = 'es'; + const indexFile = `${fileName}.ts`; const declarationFile = `${fileName}.d.ts`; const outputFile = `${fileName}.js`; -const fileFormat = 'es'; - export default defineConfig([ { plugins: [typescript(), minify()], diff --git a/specs/define-config.spec-d.ts b/specs/define-config.spec-d.ts index b662253..2dcbc68 100644 --- a/specs/define-config.spec-d.ts +++ b/specs/define-config.spec-d.ts @@ -4,12 +4,12 @@ import { UserConfig } from '#types'; import { defineConfig } from '#src'; -describe('Define Semantic Release Config', () => { - spec('define empty config', async () => { +describe('Semantic Release Config', () => { + spec('empty config', async () => { expectTypeOf(defineConfig({})).toEqualTypeOf(); }); - spec('define config', async () => { + spec('config', async () => { expectTypeOf( defineConfig({ branches: [], diff --git a/tsconfig.node.json b/tsconfig.node.json index 2660561..fda300b 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -7,7 +7,7 @@ "module": "NodeNext", "moduleResolution": "NodeNext", "outDir": "", - "rootDir": "", + "rootDir": "src", "skipLibCheck": true, "target": "ESNext", "types": ["vitest"]