mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 11:47:54 +01:00
desktop: fix Unexpected token 'with' on build
This commit is contained in:
@@ -19,16 +19,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import fs, { readFile, writeFile } from "fs/promises";
|
import fs, { readFile, writeFile } from "fs/promises";
|
||||||
import { existsSync } from "fs";
|
import { existsSync, readFileSync } from "fs";
|
||||||
import yargs from "yargs-parser";
|
import yargs from "yargs-parser";
|
||||||
import os from "os";
|
import os from "os";
|
||||||
import * as childProcess from "child_process";
|
import * as childProcess from "child_process";
|
||||||
import { fileURLToPath } from "url";
|
import { fileURLToPath } from "url";
|
||||||
import packageJson from "../package.json" with {type: "json"};
|
|
||||||
|
|
||||||
const args = yargs(process.argv);
|
const args = yargs(process.argv);
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
|
const packageJson = JSON.parse(
|
||||||
|
readFileSync(path.join(__dirname, "..", "package.json"), "utf-8")
|
||||||
|
);
|
||||||
|
|
||||||
const webAppPath = path.resolve(path.join(__dirname, "..", "..", "web"));
|
const webAppPath = path.resolve(path.join(__dirname, "..", "..", "web"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user