diff --git a/yarn-project/ethereum/package.json b/yarn-project/ethereum/package.json index 0e34d8dcbf15..3300f21bba8c 100644 --- a/yarn-project/ethereum/package.json +++ b/yarn-project/ethereum/package.json @@ -91,4 +91,4 @@ "engines": { "node": ">=18" } -} \ No newline at end of file +} diff --git a/yarn-project/kv-store/.mocharc.json b/yarn-project/kv-store/.mocharc.json index 9ec8f2838864..d96c357952d0 100644 --- a/yarn-project/kv-store/.mocharc.json +++ b/yarn-project/kv-store/.mocharc.json @@ -1,14 +1,7 @@ { "require": "ts-node/register", - "extensions": [ - "ts" - ], - "spec": [ - "./src/**/!(indexeddb)/*.test.ts" - ], - "node-option": [ - "experimental-specifier-resolution=node", - "loader=ts-node/esm" - ], + "extensions": ["ts"], + "spec": ["./src/**/!(indexeddb)/*.test.ts"], + "node-option": ["experimental-specifier-resolution=node", "loader=ts-node/esm"], "timeout": 30000 -} \ No newline at end of file +} diff --git a/yarn-project/kv-store/package.local.json b/yarn-project/kv-store/package.local.json index 1604caf6ae89..d93348f53280 100644 --- a/yarn-project/kv-store/package.local.json +++ b/yarn-project/kv-store/package.local.json @@ -1,5 +1,5 @@ { - "scripts": { - "test": "yarn test:node && yarn test:browser" - } -} \ No newline at end of file + "scripts": { + "test": "yarn test:node && yarn test:browser" + } +} diff --git a/yarn-project/kv-store/web-test-runner.config.mjs b/yarn-project/kv-store/web-test-runner.config.mjs index 19811eec4879..0458e1fe9a93 100644 --- a/yarn-project/kv-store/web-test-runner.config.mjs +++ b/yarn-project/kv-store/web-test-runner.config.mjs @@ -1,8 +1,8 @@ +import { esbuildPlugin } from '@web/dev-server-esbuild'; import { defaultReporter } from '@web/test-runner'; import { summaryReporter } from '@web/test-runner'; -import { fileURLToPath } from 'url'; -import { esbuildPlugin } from '@web/dev-server-esbuild'; import { playwrightLauncher } from '@web/test-runner-playwright'; +import { fileURLToPath } from 'url'; const reporter = process.env.CI ? summaryReporter() : defaultReporter(); diff --git a/yarn-project/package.common.json b/yarn-project/package.common.json index 8fd6e79b1fdc..2ae994eb719f 100644 --- a/yarn-project/package.common.json +++ b/yarn-project/package.common.json @@ -10,11 +10,7 @@ "engines": { "node": ">=18" }, - "files": [ - "dest", - "src", - "!*.test.*" - ], + "files": ["dest", "src", "!*.test.*"], "devDependencies": { "@jest/globals": "^29.5.0", "@types/jest": "^29.5.0", @@ -23,9 +19,7 @@ "ts-node": "^10.9.1" }, "jest": { - "extensionsToTreatAsEsm": [ - ".ts" - ], + "extensionsToTreatAsEsm": [".ts"], "transform": { "^.+\\.tsx?$": [ "@swc/jest", @@ -57,4 +51,4 @@ "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", "rootDir": "./src" } -} \ No newline at end of file +} diff --git a/yarn-project/pxe/package.local.json b/yarn-project/pxe/package.local.json index 57dfa9d69aa4..3d8ea6f8262a 100644 --- a/yarn-project/pxe/package.local.json +++ b/yarn-project/pxe/package.local.json @@ -1,7 +1,7 @@ { - "scripts": { - "build": "yarn clean && yarn generate && tsc -b", - "clean": "rm -rf ./dest .tsbuildinfo ./src/config/package_info.ts", - "generate": "node ./scripts/generate_package_info.js" - } -} \ No newline at end of file + "scripts": { + "build": "yarn clean && yarn generate && tsc -b", + "clean": "rm -rf ./dest .tsbuildinfo ./src/config/package_info.ts", + "generate": "node ./scripts/generate_package_info.js" + } +} diff --git a/yarn-project/pxe/scripts/generate_package_info.js b/yarn-project/pxe/scripts/generate_package_info.js index 2b0f2e8212f8..57c9801b02dc 100644 --- a/yarn-project/pxe/scripts/generate_package_info.js +++ b/yarn-project/pxe/scripts/generate_package_info.js @@ -6,9 +6,10 @@ const currentDir = dirname(fileURLToPath(import.meta.url)); const { version, name } = JSON.parse(readFileSync(join(currentDir, '../package.json'))); -writeFileSync(join(currentDir, '../src/config/package_info.ts'), -`export function getPackageInfo() { +writeFileSync( + join(currentDir, '../src/config/package_info.ts'), + `export function getPackageInfo() { return { version: '${version}', name: '${name}' }; } -`); - +`, +);