From 45cb61e083f12814246d52ab723777874d6b5cbd Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Mon, 16 Dec 2024 08:01:31 +1100 Subject: [PATCH] Rename CommonJS build / test scripts to .cjs --- jest.config.js => jest.config.cjs | 0 package.json | 6 +++--- scripts/todesktop/{afterPack.js => afterPack.cjs} | 0 scripts/todesktop/{beforeInstall.js => beforeInstall.cjs} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename jest.config.js => jest.config.cjs (100%) rename scripts/todesktop/{afterPack.js => afterPack.cjs} (100%) rename scripts/todesktop/{beforeInstall.js => beforeInstall.cjs} (100%) diff --git a/jest.config.js b/jest.config.cjs similarity index 100% rename from jest.config.js rename to jest.config.cjs diff --git a/package.json b/package.json index 364281aa..039b2b4d 100644 --- a/package.json +++ b/package.json @@ -43,10 +43,10 @@ "sign": "node debug/sign.js", "start": "node ./scripts/launchdev.js", "test:e2e": "npx playwright test", - "test:unit": "jest --config jest.config.js", + "test:unit": "jest --config jest.config.cjs", "test:update-snapshots": "npx playwright test --update-snapshots", - "todesktop:afterPack": "./scripts/todesktop/afterPack.js", - "todesktop:beforeInstall": "./scripts/todesktop/beforeInstall.js", + "todesktop:afterPack": "./scripts/todesktop/afterPack.cjs", + "todesktop:beforeInstall": "./scripts/todesktop/beforeInstall.cjs", "typescript": "yarn run tsc", "vite:compile": "vite build --config vite.main.config.ts && vite build --config vite.preload.config.ts", "vite:types": "vite build --config vite.types.config.ts && node scripts/prepareTypes.js", diff --git a/scripts/todesktop/afterPack.js b/scripts/todesktop/afterPack.cjs similarity index 100% rename from scripts/todesktop/afterPack.js rename to scripts/todesktop/afterPack.cjs diff --git a/scripts/todesktop/beforeInstall.js b/scripts/todesktop/beforeInstall.cjs similarity index 100% rename from scripts/todesktop/beforeInstall.js rename to scripts/todesktop/beforeInstall.cjs