36 lines
629 B
TOML
36 lines
629 B
TOML
# Build the package.
|
|
[tasks.build]
|
|
dependencies = ["clean", "lint"]
|
|
clear = true
|
|
command = "pnpm"
|
|
args = ["tsc"]
|
|
|
|
# Clean the build directory.
|
|
[tasks.clean]
|
|
clear = true
|
|
command = "pnpm"
|
|
args = ["trash", "build/"]
|
|
|
|
# Run the full set of linting and testing.
|
|
[tasks.lint]
|
|
clear = true
|
|
dependencies = ["lint-js", "typecheck", "test"]
|
|
|
|
# Lint the TypeScript using XO.
|
|
[tasks.lint-js]
|
|
clear = true
|
|
command = "pnpm"
|
|
args = ["xo"]
|
|
|
|
# Run the tests.
|
|
[tasks.test]
|
|
clear = true
|
|
command = "pnpm"
|
|
args = ["tsx", "tests/migrate.test.ts"]
|
|
|
|
# Do a typecheck with tsc.
|
|
[tasks.typecheck]
|
|
clear = true
|
|
command = "pnpm"
|
|
args = ["tsc", "--noEmit"]
|