diff --git a/.eslintrc.json b/.eslintrc.json index 20b7617..2e7011b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,41 +1,44 @@ { - "parser": "@typescript-eslint/parser", - "parserOptions": { - "project": ["tsconfig.json", "examples/tsconfig.json"] - }, - "plugins": [ - "@typescript-eslint/eslint-plugin" - ], - "extends": [ - "eslint:recommended", - "airbnb-base", - "plugin:@typescript-eslint/recommended" - ], - "root": true, - "env": { - "node": true, - "commonjs": true - }, - "rules": { - "import/no-extraneous-dependencies": "off", - "no-restricted-syntax": "off", - "no-await-in-loop": "off", - "no-plusplus": "off", - "no-promise-executor-return": "off", - "@typescript-eslint/no-non-null-assertion": "off", - "@typescript-eslint/interface-name-prefix": "off", - "@typescript-eslint/explicit-function-return-type": "off", - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/explicit-module-boundary-types": "off", - "@typescript-eslint/no-unused-vars": "off", - "@typescript-eslint/ban-types": "off", - "import/no-unresolved": "off", - "import/extensions": "off", - "no-underscore-dangle": "off", - "indent": [ - "error", - 2 - ], - "max-len": 0 - } + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": [ + "tsconfig.json", + "examples/tsconfig.json" + ] + }, + "plugins": [ + "@typescript-eslint/eslint-plugin" + ], + "extends": [ + "eslint:recommended", + "airbnb-base", + "plugin:@typescript-eslint/recommended" + ], + "root": true, + "env": { + "node": true, + "commonjs": true + }, + "rules": { + "import/no-extraneous-dependencies": "off", + "no-restricted-syntax": "off", + "no-await-in-loop": "off", + "no-plusplus": "off", + "no-promise-executor-return": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/interface-name-prefix": "off", + "@typescript-eslint/explicit-function-return-type": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/explicit-module-boundary-types": "off", + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/ban-types": "off", + "import/no-unresolved": "off", + "import/extensions": "off", + "no-underscore-dangle": "off", + "indent": [ + "error", + 2 + ], + "max-len": 0 + } } diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5d6c003..e8546fa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,4 +43,4 @@ jobs: FORCE_COLOR: 2 - name: Run examples - run: cd examples && pnpm run all + run: cd examples && pnpm all diff --git a/.nano-staged.json b/.nano-staged.json index 3f1b615..3b669f2 100644 --- a/.nano-staged.json +++ b/.nano-staged.json @@ -1,3 +1,5 @@ { - "*.ts": ["eslint --fix"] + "*.ts": [ + "eslint --fix" + ] } diff --git a/.size-limit.json b/.size-limit.json index 7718ee8..3a86cf3 100644 --- a/.size-limit.json +++ b/.size-limit.json @@ -7,4 +7,4 @@ "path": "dist/index.cjs", "limit": "10 kB" } -] \ No newline at end of file +] diff --git a/examples/package.json b/examples/package.json index 801d62f..4cb5ddc 100644 --- a/examples/package.json +++ b/examples/package.json @@ -8,14 +8,12 @@ "pnpm": "9.12.1" }, "scripts": { - "build": "tsc", "all": "pnpm simple", "simple": "tsx src/simple.ts", "dev:simple": "tsx --watch src/simple.ts" }, "license": "ISC", "devDependencies": { - "tsx": "^4.19.1", - "typescript": "^5.6.3" + "tsx": "^4.19.1" } } diff --git a/examples/tsconfig.json b/examples/tsconfig.json index 4742042..c685951 100644 --- a/examples/tsconfig.json +++ b/examples/tsconfig.json @@ -1,16 +1,10 @@ { "extends": "../tsconfig.json", "include": [ - "src/*.ts" - ], - "exclude": [ - "node_modules", - "dist" + "./src/*.ts" ], "compilerOptions": { "target": "ESNext", - "module": "ESNext", - "baseUrl": ".", - "outDir": "dist" + "module": "ESNext" }, } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d36dd73..a3f28c0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,7 +52,7 @@ importers: version: 7.0.8 tsup: specifier: ^8.3.0 - version: 8.3.0(jiti@1.21.6)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.5.4)(yaml@2.5.1) + version: 8.3.0(jiti@1.21.6)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.5.4)(yaml@2.6.0) typescript: specifier: ~5.5.4 version: 5.5.4 @@ -65,9 +65,6 @@ importers: tsx: specifier: ^4.19.1 version: 4.19.1 - typescript: - specifier: ^5.6.3 - version: 5.6.3 packages: @@ -2391,11 +2388,6 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.6.3: - resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} - engines: {node: '>=14.17'} - hasBin: true - ufo@1.5.4: resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} @@ -2542,8 +2534,8 @@ packages: yallist@4.0.0: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} - yaml@2.5.1: - resolution: {integrity: sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==} + yaml@2.6.0: + resolution: {integrity: sha512-a6ae//JvKDEra2kdi1qzCyrJW/WZCgFi8ydDV+eXExl95t+5R+ijnqHJbz9tmMh8FUjx3iv2fCQ4dclAQlO2UQ==} engines: {node: '>= 14'} hasBin: true @@ -3232,7 +3224,7 @@ snapshots: scule: 1.3.0 semver: 7.6.3 std-env: 3.7.0 - yaml: 2.5.1 + yaml: 2.6.0 transitivePeerDependencies: - magicast @@ -4491,14 +4483,14 @@ snapshots: possible-typed-array-names@1.0.0: {} - postcss-load-config@6.0.1(jiti@1.21.6)(postcss@8.4.47)(tsx@4.19.1)(yaml@2.5.1): + postcss-load-config@6.0.1(jiti@1.21.6)(postcss@8.4.47)(tsx@4.19.1)(yaml@2.6.0): dependencies: lilconfig: 3.1.2 optionalDependencies: jiti: 1.21.6 postcss: 8.4.47 tsx: 4.19.1 - yaml: 2.5.1 + yaml: 2.6.0 postcss@8.4.47: dependencies: @@ -4859,7 +4851,7 @@ snapshots: minimist: 1.2.8 strip-bom: 3.0.0 - tsup@8.3.0(jiti@1.21.6)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.5.4)(yaml@2.5.1): + tsup@8.3.0(jiti@1.21.6)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.5.4)(yaml@2.6.0): dependencies: bundle-require: 5.0.0(esbuild@0.23.1) cac: 6.7.14 @@ -4870,7 +4862,7 @@ snapshots: execa: 5.1.1 joycon: 3.1.1 picocolors: 1.1.0 - postcss-load-config: 6.0.1(jiti@1.21.6)(postcss@8.4.47)(tsx@4.19.1)(yaml@2.5.1) + postcss-load-config: 6.0.1(jiti@1.21.6)(postcss@8.4.47)(tsx@4.19.1)(yaml@2.6.0) resolve-from: 5.0.0 rollup: 4.24.0 source-map: 0.8.0-beta.0 @@ -4935,8 +4927,6 @@ snapshots: typescript@5.5.4: {} - typescript@5.6.3: {} - ufo@1.5.4: {} unbox-primitive@1.0.2: @@ -5083,7 +5073,7 @@ snapshots: yallist@4.0.0: {} - yaml@2.5.1: {} + yaml@2.6.0: {} yauzl@2.10.0: dependencies: