Common tasks, derived from package.json scripts.
test
npm run test
Runs: tsc -p tsconfig.spec.json && vitest --run
test:watch
npm run test:watch
Runs: vitest --watch
test:deno
npm run test:deno
Runs: deno test --allow-read --allow-env --allow-write --allow-net -c runtime-tests/deno/deno.json runtime-tests/deno && deno test --no-lock -c runtime-tests/deno-jsx/deno.precompile.json runtime-tests/deno-jsx && deno test --no-lock -c runtime-tests/deno-jsx/deno.react-jsx.json runtime-tests/deno-jsx
test:bun
npm run test:bun
Runs: bun test --jsx-import-source ../../src/jsx runtime-tests/bun/*
test:fastly
npm run test:fastly
Runs: vitest --run --project fastly
test:node
npm run test:node
Runs: vitest --run --project node
test:workerd
npm run test:workerd
Runs: vitest --run --project workerd
test:lambda
npm run test:lambda
Runs: vitest --run --project lambda
test:lambda-edge
npm run test:lambda-edge
Runs: vitest --run --project lambda-edge
test:all
npm run test:all
Runs: bun run test && bun test:deno && bun test:bun
lint
npm run lint
Runs: eslint src runtime-tests build perf-measures benchmarks
lint:fix
npm run lint:fix
Runs: eslint src runtime-tests build perf-measures benchmarks --fix
format
npm run format
Runs: prettier --check --cache "src/**/*.{js,ts,tsx}" "runtime-tests/**/*.{js,ts,tsx}" "build/**/*.{js,ts,tsx}" "perf-measures/**/*.{js,ts,tsx}" "benchmarks/**/*.{js,ts,tsx}"
format:fix
npm run format:fix
Runs: prettier --write --cache --cache-strategy metadata "src/**/*.{js,ts,tsx}" "runtime-tests/**/*.{js,ts,tsx}" "build/**/*.{js,ts,tsx}" "perf-measures/**/*.{js,ts,tsx}" "benchmarks/**/*.{js,ts,tsx}"
editorconfig-checker
npm run editorconfig-checker
Runs: editorconfig-checker
copy:package.cjs.json
npm run copy:package.cjs.json
Runs: cp ./package.cjs.json ./dist/cjs/package.json && cp ./package.cjs.json ./dist/types/package.json
build
npm run build
Runs: bun run --shell bun remove-dist && bun ./build/build.ts && bun run copy:package.cjs.json
postbuild
npm run postbuild
Runs: publint
watch
npm run watch
Runs: bun run --shell bun remove-dist && bun ./build/build.ts --watch && bun run copy:package.cjs.json
coverage
npm run coverage
Runs: vitest --run --coverage
prerelease
npm run prerelease
Runs: bun test:deno && bun run build
release
npm run release
Runs: np --no-publish
remove-dist
npm run remove-dist
Runs: rm -rf dist