Skip to content

Commit

Permalink
fix: formatting master (#10583)
Browse files Browse the repository at this point in the history
Please read [contributing guidelines](CONTRIBUTING.md) and remove this
line.
  • Loading branch information
IlyasRidhuan authored Dec 10, 2024
1 parent e515e6e commit 79e49c9
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 36 deletions.
15 changes: 4 additions & 11 deletions yarn-project/kv-store/.mocharc.json
Original file line number Diff line number Diff line change
@@ -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
}
}
8 changes: 4 additions & 4 deletions yarn-project/kv-store/package.local.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scripts": {
"test": "yarn test:node && yarn test:browser"
}
}
"scripts": {
"test": "yarn test:node && yarn test:browser"
}
}
4 changes: 2 additions & 2 deletions yarn-project/kv-store/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -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();

Expand Down
12 changes: 3 additions & 9 deletions yarn-project/package.common.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -23,9 +19,7 @@
"ts-node": "^10.9.1"
},
"jest": {
"extensionsToTreatAsEsm": [
".ts"
],
"extensionsToTreatAsEsm": [".ts"],
"transform": {
"^.+\\.tsx?$": [
"@swc/jest",
Expand Down Expand Up @@ -60,4 +54,4 @@
"../../foundation/src/jest/setup.mjs"
]
}
}
}
12 changes: 6 additions & 6 deletions yarn-project/pxe/package.local.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
"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"
}
}
9 changes: 5 additions & 4 deletions yarn-project/pxe/scripts/generate_package_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}' };
}
`);

`,
);

0 comments on commit 79e49c9

Please sign in to comment.