Skip to content

Commit

Permalink
build: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Oct 9, 2024
1 parent d1d8a44 commit fd11b33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
15 changes: 8 additions & 7 deletions Herebyfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ export const tscBuild = task({
},
});

export const clean = task({
name: 'clean',
run: async () => {
await shell('rm -rf libs/*/lib');
await shell('lerna run clean');
},
});

export const build = task({
name: 'build',
dependencies: [clean, tscBuild, gen],
Expand Down Expand Up @@ -124,13 +132,6 @@ export const devWorkerPreview = task({
},
});

export const clean = task({
name: 'clean',
run: async () => {
await shell('rm -rf libs/*/lib');
await shell('lerna run clean');
},
});

export default task({
name: 'npm script',
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
},
"workspaces": ["libs/*"],
"scripts": {
"format": "yarn biome format --write",
"build": "hereby",
"build:libs": "hereby",
"build:cfworker": "hereby",
Expand All @@ -25,17 +24,18 @@
"dev:worker": "hereby",
"dev:proxy": "hereby",
"gen": "hereby",
"clean": "hereby",
"predeploy:local": "yarn build",
"deploy:local": "wrangler deploy",
"publish:libs": "lerna publish",
"lint": "biome check",
"lint:fix": "yarn biome check --write",
"format": "yarn biome format --write",
"test": "jest --config jest.config.js --verbose",
"test:cov": "yarn test --coverage",
"extract-fixtures": "tsx scripts/extract-webhook-example.ts",
"generate:json-schemas": "node scripts/generate-json-schemas-all.mjs",
"postinstall": "yarn build:libs",
"clean": "hereby"
"postinstall": "yarn build:libs"
},
"dependencies": {
"@hono/node-server": "^1.11.1",
Expand Down

0 comments on commit fd11b33

Please sign in to comment.