- "rollup": "rollup --config",
- "build": "npm run rollup",
- "build:dev": "npm run rollup -- --environment BUILD:development",
- "build:dev:watch": "npm run rollup -- --environment BUILD:development --watch",
- "lint": "cross-env TIMING=1 eslint --cache --ext .js,.ts src",
- "lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.ts src",
- "format": "prettier --write .",
- "import-sort": "npx import-sort-cli --write 'src/**/*.ts{,x}'",
- "test": "cross-env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' nyc mocha test/**/*Test.ts",
- "coverage": "nyc report --reporter=lcov",
- "coverage:html": "nyc report --reporter=html",
+ "rollup": "pnpm build-requirements && rollup --config",
+ "build": "pnpm rollup",
+ "build:cf": "pnpm clean:node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm rollup",
+ "build:dev": "pnpm rollup --environment BUILD:development",
+ "build:dev:analyze": "pnpm rollup --environment ANALYZE,BUILD:development",
+ "build:dev:watch": "pnpm rollup --environment BUILD:development --watch",
+ "clean:dist": "npx rimraf dist",
+ "clean:node_modules": "npx rimraf node_modules",
+ "lint": "cross-env TIMING=1 eslint --cache --ext .js,.cjs,.mjs,.ts src",
+ "lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.cjs,.mjs,.ts src",
+ "format": "prettier --cache --write .",
+ "test": "c8 mocha test/**/*Test.ts",
+ "test:debug": "mocha --no-parallel --inspect test/**/*Test.ts",
+ "coverage": "c8 report --reporter=lcov",
+ "coverage:html": "c8 report --reporter=html",