diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed69877..8203803 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,7 @@ jobs: - name: Install run: nci - - name: Lint + - name: Typecheck run: nr typecheck test: diff --git a/package.json b/package.json index 606a5ba..cc6d66d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "url": "git+https://github.com/antfu/[name].git" }, "funding": "https://github.com/sponsors/antfu", - "sideEffects": false, "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -29,6 +28,7 @@ "files": [ "dist" ], + "sideEffects": false, "scripts": { "build": "rimraf dist && unbuild", "dev": "unbuild --stub", @@ -42,6 +42,7 @@ "devDependencies": { "@antfu/eslint-config": "^0.18.8", "@antfu/ni": "^0.13.2", + "@babel/types": "^7.17.0", "@types/node": "^17.0.21", "bumpp": "^7.1.1", "eslint": "^8.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cb6610d..f4c6187 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,6 +6,7 @@ importers: specifiers: '@antfu/eslint-config': ^0.18.8 '@antfu/ni': ^0.13.2 + '@babel/types': ^7.17.0 '@types/node': ^17.0.21 bumpp: ^7.1.1 eslint: ^8.11.0 @@ -19,6 +20,7 @@ importers: devDependencies: '@antfu/eslint-config': 0.18.8_eslint@8.11.0+typescript@4.6.2 '@antfu/ni': 0.13.2 + '@babel/types': 7.17.0 '@types/node': 17.0.21 bumpp: 7.1.1 eslint: 8.11.0 @@ -148,6 +150,14 @@ packages: js-tokens: 4.0.0 dev: true + /@babel/types/7.17.0: + resolution: {integrity: sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.16.7 + to-fast-properties: 2.0.0 + dev: true + /@eslint/eslintrc/1.2.1: resolution: {integrity: sha512-bxvbYnBPN1Gibwyp6NrpnFzA3YtRL3BBAyEAFVIpNTm2Rn4Vy87GA5M4aSn3InRrlsbX5N0GW7XIx+U4SAEKdQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -3241,6 +3251,11 @@ packages: engines: {node: '>=14.0.0'} dev: true + /to-fast-properties/2.0.0: + resolution: {integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=} + engines: {node: '>=4'} + dev: true + /to-regex-range/5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} diff --git a/tsconfig.json b/tsconfig.json index 772d665..e417360 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,7 @@ "strict": true, "strictNullChecks": true, "resolveJsonModule": true, + "skipLibCheck": true, "skipDefaultLibCheck": true } }