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: #2
Co-authored-by: Glen Whitney <glen@studioinfinity.org>
Co-committed-by: Glen Whitney <glen@studioinfinity.org>
This commit is contained in:
Glen Whitney 2024-10-12 15:32:00 +00:00 committed by Glen Whitney
parent 8cc6092d51
commit 2a7723df68
2 changed files with 2 additions and 1 deletions

1
etc/package.json Normal file
View File

@ -0,0 +1 @@
{"type": "module"}

View File

@ -3,7 +3,7 @@
version: '0.0.1', version: '0.0.1',
description: 'Another prototype for a math core', description: 'Another prototype for a math core',
scripts: { scripts: {
build: 'tsc && echo {"type": "module"} > build/package.json', build: 'tsc && cp etc/package.json build/',
go: 'pnpm build && pnpm start', go: 'pnpm build && pnpm start',
prepare: 'ts-patch install -s', prepare: 'ts-patch install -s',
start: 'node --experimental-loader tsc-module-loader build', start: 'node --experimental-loader tsc-module-loader build',