Skip to content

Commit

Permalink
chore: configure scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Oct 11, 2022
1 parent 1a7cc30 commit d273b39
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 24 deletions.
1 change: 1 addition & 0 deletions package.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ export default defineConfig({
],
},
runtime: 'node',
tsconfig: 'tsconfig.dist.json',
})
13 changes: 5 additions & 8 deletions scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import path from 'path'
import {build} from '../src/node'

function _run() {
return build({
cwd: path.resolve(__dirname, '..'),
tsconfig: 'tsconfig.dist.json',
})
}

_run()
build({cwd: path.resolve(__dirname, '..')}).catch((err) => {
// eslint-disable-next-line no-console
console.error(err.stack)
process.exit(1)
})
16 changes: 8 additions & 8 deletions scripts/check.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import path from 'path'
import {check} from '../src/node'

function _run() {
return check({
cwd: path.resolve(__dirname, '..'),
strict: true,
})
}

_run()
check({
cwd: path.resolve(__dirname, '..'),
strict: true,
}).catch((err) => {
// eslint-disable-next-line no-console
console.error(err.stack)
process.exit(1)
})
16 changes: 8 additions & 8 deletions scripts/watch.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import path from 'path'
import {watch} from '../src/node'

function _run() {
return watch({
cwd: path.resolve(__dirname, '..'),
tsconfig: 'tsconfig.dist.json',
})
}

_run()
watch({
cwd: path.resolve(__dirname, '..'),
tsconfig: 'tsconfig.dist.json',
}).catch((err) => {
// eslint-disable-next-line no-console
console.error(err.stack)
process.exit(1)
})

0 comments on commit d273b39

Please sign in to comment.