diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d861a6..c5f4f0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: - run: corepack enable - uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' cache: pnpm - name: 📦 Install dependencies diff --git a/.npmrc b/.npmrc index a29b715..5eb1e0e 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1,2 @@ -enable-pre-post-scripts=true shamefully-hoist=true git-checks=false \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..85aee5a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20 \ No newline at end of file diff --git a/package.json b/package.json index 21ff512..2907694 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "ts-bundle-template", "type": "module", "version": "0.0.0", - "packageManager": "pnpm@8.8.0", + "packageManager": "pnpm@8.10.0", "description": "add description", "author": "add author", "license": "MIT", @@ -29,15 +29,16 @@ "dist" ], "engines": { - "node": ">=18" + "node": ">=20" }, "scripts": { "build": "tsup", "dev": "tsup --watch", "prepublishOnly": "pnpm run build", "release": "pnpm build && bumpp --commit --push --tag && pnpm publish", - "lint": "eslint .", + "lint": "eslint . && pnpm typecheck", "lint:fix": "eslint . --fix", + "typecheck": "tsc --noEmit", "test": "vitest", "test:watch": "vitest --watch", "coverage": "vitest run --coverage" diff --git a/tsup.config.ts b/tsup.config.ts index 3ed8199..d810536 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -1,10 +1,10 @@ import type { Options } from 'tsup' -import pkg from './package.json' +// import pkg from './package.json' -const external = [ - ...Object.keys(pkg.dependencies || {}), -] +// const external = [ +// ...Object.keys(pkg.dependencies || {}), +// ] export default { entryPoints: ['src/index.ts'], @@ -15,5 +15,5 @@ export default { clean: true, dts: true, minify: true, - external, + // external, }