# using node
npm install --save-dev esbuild @cubing/dev-config
# using bun
bun add esbuild @cubing/dev-config// Or use `es2022Lib`
import { es2022App } from "@cubing/dev-config/esbuild/es2022";
import { build } from "esbuild";
await build({
...es2022App({ dev: true }),
entryPoints: ["./src/index.ts"],
outdir: "./dist/lib/",
});# using node
npm install --save-dev @biomejs/biome @cubing/dev-config
npx @biomejs/biome check
# using bun
bun add @biomejs/biome @cubing/dev-config
bun x @biomejs/biome check// tsconfig.json
{
"extends": "./node_modules/@cubing/dev-config/ts/es2022-types/tsconfig.json",
"include": ["./src/"]
}# using node
npm install --save-dev typescript @cubing/dev-config
npx tsc --noEmit --project .
# using bun
bun add --dev typescript @cubing/dev-config
bun x tsc --noEmit --project .// tsconfig.json
{
"extends": "./node_modules/@cubing/dev-config/ts/es2022-types/tsconfig.json",
"compilerOptions": {
"outDir": "./dist/lib/types"
},
"include": ["./src/"]
}# using node
npm install --save-dev typescript @cubing/dev-config
npx tsc --project .
# using bun
bun add --dev typescript @cubing/dev-config
bun x tsc --project .Use the no-dom variant instead:
// tsconfig.json
{
"extends": "./node_modules/@cubing/dev-config/ts/es2022-types/no-dom/tsconfig.json"
}The following are also available:
./node_modules/@cubing/dev-config/ts/es2024-types/tsconfig.json./node_modules/@cubing/dev-config/ts/es2024-types/no-dom/tsconfig.json
This is useful for features like Promise.withResolvers(…).
Run as follows:
bun x --package @cubing/dev-config package.json checkThis checks both syntax and the presence of exports (and similar).