{ name: 'vrml1to97', version: '0.0.1', description: 'JavaScript converter from VRML 1 to VRML97', scripts: { test: 'echo "Error: no test specified" && exit 1', // Use civet to create .ts files from the source: build_ts: 'mkdir -p build && civet -c -o build/.ts src/*civet', // These next three steps get all dependencies into one place for convenience: build_deps1: 'mkdir -p deps', // Strip the UMD header so that es6 can import: build_deps2: 'node tools/modulize.mjs < node_modules/moo/moo.js > deps/moo.js', // Give Typescript the info it needs: build_deps3: 'cp node_modules/@types/moo/index.d.ts deps/moo.d.ts', // Use the Typescript compiler to create the final .js files: build_js: 'tsc && mkdir -p dist/deps && cp deps/*.js dist/deps', // And finally add the executable and minimal package.json build_etc: 'cp etc/*.js* dist', build: 'pnpm --sequential /build_/', try: 'pnpm build && node dist/vrml1to97/example.js', clean: 'rm -r build dist deps' }, keywords: [ 'javascript', 'vrml', 'VRML97', 'wrl', ], author: 'Glen Whitney', license: 'MIT', repository: { type: 'git', url: 'https://code.studioinfinity.org/glen/vrml1to97.git', }, bin: { vrml1to97: 'dist/vrml1to97.js', }, devDependencies: { '@danielx/civet': '^0.6.26', '@types/moo': '^0.5.6', 'http-server': '^14.1.1', typescript: '^5.2.2', }, dependencies: { moo: '^0.5.2', }, }