Skip to content

Commit

Permalink
fix package.json +1
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-tunda committed Nov 10, 2023
1 parent 61964a8 commit afa6d69
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: npm install -g pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 13 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {defineBuildConfig} from 'unbuild'

export default defineBuildConfig({
entries: ['src/index'],
clean: true,
rollup: {
inlineDependencies: true,
esbuild:{
target:"node18",
minify:true
}
}
})
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"build": "unbuild",
"dev": "unbuild --stub",
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install"
"prepare": "husky install",
"prepublishOnly": "npm run build"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import prompts from "prompts";
import minimist from "minimist";
// import minimist from "minimist";
import { reset, cyan, green, lightBlue, red } from "kolorist";
import path from "path";
import fs from "fs-extra";
Expand Down

0 comments on commit afa6d69

Please sign in to comment.