Skip to content

Commit

Permalink
build(projects): upadte config
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Nov 3, 2022
1 parent 94b2e6f commit 184a6e4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@ module.exports = {
extends: ['soybeanjs'],
settings: {
'import/core-modules': ['zx']
}
},
overrides: [
{
files: ['./scripts/*.ts'],
rules: {
'no-unused-expressions': 'off'
}
}
]
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
},
"scripts": {
"build": "tsup",
"cleanup": "rm -rf ./node_modules ./**/node_modules ./dist ./**/dist ./pnpm-lock.yaml ./**/pnpm-lock.yaml",
"lint": "eslint . --fix",
"commit": "soybean git-commit",
"esno": "esno",
"lint": "eslint . --fix",
"cleanup": "esno ./scripts/cleanup.ts",
"update-pkg": "ncu --deep -u",
"update-version": "bumpp package.json",
"publish-pkg": "pnpm -r publish --access public",
Expand Down
4 changes: 4 additions & 0 deletions scripts/cleanup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env zx
import { $ } from 'zx';

$`pnpm rimraf node_modules dist pnpm-local.yaml`;
1 change: 1 addition & 0 deletions scripts/sync.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env zx

import { fetch } from 'zx';
import pkg from '../package.json';

Expand Down

0 comments on commit 184a6e4

Please sign in to comment.