"useTsNode": true
},
"scripts": {
- "prepare": "node prepare.js",
- "build-requirements": "node build-requirements.js",
+ "prepare": "node scripts/prepare.js",
+ "build-requirements": "node scripts/build-requirements.js",
"start": "pnpm build && cross-env NODE_ENV=production node dist/start.js",
"start:dev": "pnpm build:dev && cross-env NODE_ENV=development node --enable-source-maps dist/start.js",
"start:dev:debug": "pnpm build:dev && cross-env NODE_ENV=development node --enable-source-maps --inspect dist/start.js",
"start:flameprof": "cross-env NODE_ENV=production clinic flame -- node --enable-source-maps dist/start.js",
"start:bubbleprof": "cross-env NODE_ENV=production clinic bubbleprof -- node --enable-source-maps dist/start.js",
"start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- node --enable-source-maps dist/start.js",
- "esbuild": "pnpm build-requirements && node bundle.js",
+ "esbuild": "pnpm build-requirements && node scripts/bundle.js",
"build": "pnpm esbuild",
"build:dev": "cross-env BUILD=development pnpm esbuild",
"build:cf": "pnpm clean:node_modules && pnpm exec cross-env SKIP_PREINSTALL=1 npm install && pnpm build",
"build:entities": "tsc -p tsconfig-mikro-orm.json",
"clean:dist": "pnpm exec rimraf dist",
"clean:node_modules": "pnpm exec rimraf node_modules",
- "lint": "cross-env TIMING=1 eslint --cache src tests utils ./*.js ./*.ts",
- "lint:fix": "cross-env TIMING=1 eslint --cache --fix src tests utils ./*.js ./*.ts",
- "format": "prettier --cache --write .; eslint --cache --fix src tests utils ./*.js ./*.ts",
+ "lint": "cross-env TIMING=1 eslint --cache src tests scripts ./*.js ./*.ts",
+ "lint:fix": "cross-env TIMING=1 eslint --cache --fix src tests scripts ./*.js ./*.ts",
+ "format": "prettier --cache --write .; eslint --cache --fix src tests scripts ./*.js ./*.ts",
"test": "glob -c \"c8 node --import tsx --test\" \"tests/**/*.test.ts\"",
"test:debug": "glob -c \"node --import tsx --test --inspect\" \"tests/**/*.test.ts\"",
"coverage": "c8 report --reporter=lcov",
import { CircularBuffer } from 'mnemonist'
import { satisfies } from 'semver'
+import { runtime, runtimes } from '../../scripts/runtime.js'
import type { TimestampedData } from '../../src/types/index.js'
import { Constants } from '../../src/utils/Constants.js'
import {
sleep,
validateUUID,
} from '../../src/utils/Utils.js'
-import { runtime, runtimes } from '../../utils/runtime.js'
await describe('Utils test suite', async () => {
await it('Verify generateUUID()/validateUUID()', () => {