Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate mintops.ts to artifacts/bin/native/generated
- Drive the generation from wasm.proj (driving it from cmake is wrong, because the cmake build runs after rollup) - Use the tsconfig rootDirs option to specify where to find the files (runtime dir and also artifacts/bin/native/generated) - Also due to rollup issues, specify rootDirs and include in rollup.config.js - otherwise the rollup typescript plugin doesn't seem to kick in, and barebones rollup gets confused when parsing .ts files - The outDir option in tsconfig.json had to be deleted to make rollup work. But it was also unused since rollup controls where the ts plugin is supposed to emit its output - VS Code understands the tsconfig.json changes and can follow references to the artifacts/.../generated folder Note that Release and Debug builds both dump the generates mintops.ts in the same folder. This seems ok for now since there's no special debug-only opcodes. (Also VS Code has no idea about configurations, so it has to be done this way or else it won't be able to find the .ts file)
- Loading branch information