Skip to content

Commit

Permalink
chore: update pnpm and nore 20
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Nov 13, 2023
1 parent 18c4e50 commit e695fdb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
enable-pre-post-scripts=true
shamefully-hoist=true
git-checks=false
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -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 <Options>{
entryPoints: ['src/index.ts'],
Expand All @@ -15,5 +15,5 @@ export default <Options>{
clean: true,
dts: true,
minify: true,
external,
// external,
}

0 comments on commit e695fdb

Please sign in to comment.