From 2a7723df68dd5d4c7cfd6caca1f1b4ceee93607b Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Sat, 12 Oct 2024 15:32:00 +0000 Subject: [PATCH] chore: Get build working on linux again, hopefully w/o disrupting windows (#2) Just puts the package.json contents into a file and copies it in place. Reviewed-on: https://code.studioinfinity.org/glen/math5/pulls/2 Co-authored-by: Glen Whitney Co-committed-by: Glen Whitney --- etc/package.json | 1 + package.json5 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 etc/package.json diff --git a/etc/package.json b/etc/package.json new file mode 100644 index 0000000..6990891 --- /dev/null +++ b/etc/package.json @@ -0,0 +1 @@ +{"type": "module"} diff --git a/package.json5 b/package.json5 index ebb3ed2..afa5263 100644 --- a/package.json5 +++ b/package.json5 @@ -3,7 +3,7 @@ version: '0.0.1', description: 'Another prototype for a math core', scripts: { - build: 'tsc && echo {"type": "module"} > build/package.json', + build: 'tsc && cp etc/package.json build/', go: 'pnpm build && pnpm start', prepare: 'ts-patch install -s', start: 'node --experimental-loader tsc-module-loader build',