chore: Get build working on linux again, hopefully w/o disrupting windows

This commit is contained in:
Glen Whitney 2024-10-12 08:30:04 -07:00
parent 8cc6092d51
commit f6852b168f
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',