A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
desktop: skip tsc build during tests
Abdullah Attaabcc19d5daa0
diff --git a/apps/desktop/__tests__/utils.ts b/apps/desktop/__tests__/utils.tsindex 49f3188ab..ae86f5edb 100644--- a/apps/desktop/__tests__/utils.ts+++ b/apps/desktop/__tests__/utils.ts@@ -109,7 +109,7 @@ async function buildApp({}) {const buildRoot = path.join("test-artifacts", `${productName}-build`);const output = path.join("test-artifacts", `${productName}-output`);- execSync(`npm run release -- --root ${buildRoot}`, {+ execSync(`npm run release -- --root ${buildRoot} --skip-tsc-build`, {stdio: IS_DEBUG ? "inherit" : "ignore"});diff --git a/apps/desktop/scripts/build.mjs b/apps/desktop/scripts/build.mjsindex 670123a83..f975717f7 100644--- a/apps/desktop/scripts/build.mjs+++ b/apps/desktop/scripts/build.mjs@@ -30,6 +30,7 @@ const args = yargs(process.argv);const __filename = fileURLToPath(import.meta.url);const __dirname = path.dirname(__filename);const root = args.root || path.join(__dirname, "..");+const skipTscBuild = args.skipTscBuild || false;const webAppPath = path.resolve(path.join(__dirname, "..", "..", "web"));@@ -56,7 +57,9 @@ if (args.variant === "mas") {await exec(`yarn run bundle --outdir=${path.join(root, "build")}`);}-await exec(`yarn run build`);+if (!skipTscBuild) {+ await exec(`yarn run build`);+}if (args.run) {await exec(