diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index de4d1f0..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -dist -node_modules diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2645ecd..bfe479f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,7 +23,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: 16.x - cache: 'pnpm' + cache: pnpm - name: Setup run: npm i -g @antfu/ni diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92604dc..1688e8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,8 +18,8 @@ jobs: uses: actions/setup-node@v2 with: node-version: 16.x - cache: "pnpm" - + cache: pnpm + - run: npx conventional-github-releaser -p angular env: CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9b8f301..49cad5e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} - cache: "pnpm" + cache: pnpm - name: Setup run: npm i -g @antfu/ni diff --git a/README.md b/README.md index 6973438..d19f02b 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@

+```ts +const a = 1 +``` + ## License [MIT](./LICENSE) License © 2021 [Anthony Fu](https://github.com/antfu) diff --git a/package.json b/package.json index e33868a..2df2d49 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "name", "version": "0.0.0", + "packageManager": "pnpm@6.32.3", "description": "", "keywords": [], "homepage": "https://github.com/antfu/[name]#readme", @@ -8,16 +9,16 @@ "url": "https://github.com/antfu/[name]/issues" }, "license": "MIT", + "author": "Anthony Fu ", "repository": { "type": "git", "url": "git+https://github.com/antfu/[name].git" }, "funding": "https://github.com/sponsors/antfu", - "author": "Anthony Fu ", "sideEffects": false, - "files": [ - "dist" - ], + "main": "./dist/index.cjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "exports": { ".": { "require": "./dist/index.cjs", @@ -25,20 +26,20 @@ "types": "./dist/index.d.ts" } }, - "main": "./dist/index.cjs", - "module": "./dist/index.mjs", - "types": "./dist/index.d.ts", + "files": [ + "dist" + ], "scripts": { "build": "rimraf dist && unbuild", "dev": "unbuild --stub", - "lint": "eslint --ext .js,.ts,.md .", + "lint": "eslint .", "prepublishOnly": "nr build", "release": "bumpp --commit --push --tag && pnpm publish", "start": "esno src/index.ts", "test": "vitest" }, "devDependencies": { - "@antfu/eslint-config": "^0.18.3", + "@antfu/eslint-config": "^0.18.5", "@antfu/ni": "^0.13.2", "@types/node": "^17.0.21", "bumpp": "^7.1.1", @@ -50,6 +51,5 @@ "unbuild": "^0.7.0", "vite": "^2.8.6", "vitest": "^0.6.0" - }, - "packageManager": "pnpm@6.32.3" + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 20b3199..48fbbeb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,7 +4,7 @@ importers: .: specifiers: - '@antfu/eslint-config': ^0.18.3 + '@antfu/eslint-config': ^0.18.5 '@antfu/ni': ^0.13.2 '@types/node': ^17.0.21 bumpp: ^7.1.1 @@ -17,7 +17,7 @@ importers: vite: ^2.8.6 vitest: ^0.6.0 devDependencies: - '@antfu/eslint-config': 0.18.3_eslint@8.10.0+typescript@4.6.2 + '@antfu/eslint-config': 0.18.5_eslint@8.10.0+typescript@4.6.2 '@antfu/ni': 0.13.2 '@types/node': 17.0.21 bumpp: 7.1.1 @@ -32,8 +32,8 @@ importers: packages: - /@antfu/eslint-config-basic/0.18.3_eslint@8.10.0: - resolution: {integrity: sha512-0kkr/pYxnJmYbKfLUmEW5Nd7FsGFHt68M+Rv8T6t0YV1kn2pJNTFcsuBYtINOAoKktgoZ7+mRjwMaNJ/MIcWbg==} + /@antfu/eslint-config-basic/0.18.5_eslint@8.10.0: + resolution: {integrity: sha512-cysGWWtgTQjl/sl6g0tQOP0Bnmo3fMMmG1irRwEZyjE6qGMghwCaqB8P+JG3diceMDL/g1s7KRBUql5db/odWQ==} peerDependencies: eslint: '>=7.4.0' dependencies: @@ -54,12 +54,12 @@ packages: - supports-color dev: true - /@antfu/eslint-config-react/0.18.3_eslint@8.10.0+typescript@4.6.2: - resolution: {integrity: sha512-Mz5gPJowsMuMRuhiTRTvD2REbMDq+pU6QauoMsEMeVbJ3vTiLw/AV0aXprbRL1PUhPHGNDdzYyU+E/tw1UZS6A==} + /@antfu/eslint-config-react/0.18.5_eslint@8.10.0+typescript@4.6.2: + resolution: {integrity: sha512-5iDleCTV3hRLhDjJ9XaVLoPvoTS9A7AyYJdSDLgzMdpneGWZkKhskgkTt/k5BJ+5Dxo2Nujw5zlomy2hytvRvg==} peerDependencies: eslint: '>=7.4.0' dependencies: - '@antfu/eslint-config-ts': 0.18.3_eslint@8.10.0+typescript@4.6.2 + '@antfu/eslint-config-ts': 0.18.5_eslint@8.10.0+typescript@4.6.2 eslint: 8.10.0 eslint-plugin-react: 7.29.3_eslint@8.10.0 transitivePeerDependencies: @@ -67,13 +67,13 @@ packages: - typescript dev: true - /@antfu/eslint-config-ts/0.18.3_eslint@8.10.0+typescript@4.6.2: - resolution: {integrity: sha512-ZCr0IjYkF5uSgvlHVpQ+Y2FdMIa5WCvmrkjDm8m9XGXCPvI/KbLy+2fXj65gZXDCAQ0bet6Dl+4EeNRn29E32Q==} + /@antfu/eslint-config-ts/0.18.5_eslint@8.10.0+typescript@4.6.2: + resolution: {integrity: sha512-SvucOSSgsWieuics6Fh/jBkT72XEIOMEtVgsGh0SMbWsg1v4TCrUEii85T4yOOXiPW6bNLTPRboRAnVhxwRdPQ==} peerDependencies: eslint: '>=7.4.0' typescript: '>=3.9' dependencies: - '@antfu/eslint-config-basic': 0.18.3_eslint@8.10.0 + '@antfu/eslint-config-basic': 0.18.5_eslint@8.10.0 '@typescript-eslint/eslint-plugin': 5.14.0_f4054b8c3cd621db16ae1b9d571bccc0 '@typescript-eslint/parser': 5.14.0_eslint@8.10.0+typescript@4.6.2 eslint: 8.10.0 @@ -82,12 +82,12 @@ packages: - supports-color dev: true - /@antfu/eslint-config-vue/0.18.3_eslint@8.10.0+typescript@4.6.2: - resolution: {integrity: sha512-RgenlvleSCMQ9z+326OjuyB5X1wV9JbdE8BUUIeFUBcJ73PMEsk6dwickEmy+ELZtgH3Ql25XlPn4szbTdJScQ==} + /@antfu/eslint-config-vue/0.18.5_eslint@8.10.0+typescript@4.6.2: + resolution: {integrity: sha512-RPH8xEz4PQL+7nfjlCKVOWiJMrJjx+tE7pIGv0cq0VjhPe8VPcRHGmZGBk+UULQ0FmOOkxAkDUn7wEp+L3EeDA==} peerDependencies: eslint: '>=7.4.0' dependencies: - '@antfu/eslint-config-ts': 0.18.3_eslint@8.10.0+typescript@4.6.2 + '@antfu/eslint-config-ts': 0.18.5_eslint@8.10.0+typescript@4.6.2 eslint: 8.10.0 eslint-plugin-vue: 8.5.0_eslint@8.10.0 transitivePeerDependencies: @@ -95,13 +95,13 @@ packages: - typescript dev: true - /@antfu/eslint-config/0.18.3_eslint@8.10.0+typescript@4.6.2: - resolution: {integrity: sha512-NM5xydLE+pY3Tj5jjUdgmnK2ZmPwEklgq56A0odGASksp0ix3J7cOGp+PLiVWDvDpFga5LxsV23K3XkJbuBFHA==} + /@antfu/eslint-config/0.18.5_eslint@8.10.0+typescript@4.6.2: + resolution: {integrity: sha512-LAi6xcH2j3dy4M/IsBZTe//+Q8yASSg8QRmjguDyJorvW6+EGpjVlj+oCGM+Ls0aXltQ+VI5EMfDfI0djFhP8w==} peerDependencies: eslint: '>=7.4.0' dependencies: - '@antfu/eslint-config-react': 0.18.3_eslint@8.10.0+typescript@4.6.2 - '@antfu/eslint-config-vue': 0.18.3_eslint@8.10.0+typescript@4.6.2 + '@antfu/eslint-config-react': 0.18.5_eslint@8.10.0+typescript@4.6.2 + '@antfu/eslint-config-vue': 0.18.5_eslint@8.10.0+typescript@4.6.2 '@typescript-eslint/eslint-plugin': 5.14.0_f4054b8c3cd621db16ae1b9d571bccc0 '@typescript-eslint/parser': 5.14.0_eslint@8.10.0+typescript@4.6.2 eslint: 8.10.0 @@ -1716,7 +1716,7 @@ packages: has: 1.0.3 is-core-module: 2.8.1 is-glob: 4.0.3 - minimatch: 3.0.4 + minimatch: 3.1.2 object.values: 1.1.5 resolve: 1.22.0 tsconfig-paths: 3.12.0 @@ -1758,7 +1758,7 @@ packages: eslint-utils: 3.0.0_eslint@8.10.0 ignore: 5.2.0 is-core-module: 2.8.1 - minimatch: 3.0.4 + minimatch: 3.1.2 resolve: 1.22.0 semver: 6.3.0 dev: true