Add schema bundle target

This commit is contained in:
Tony Garnock-Jones 2021-04-01 22:05:40 +02:00
parent 29245af627
commit c46f78f536
1 changed files with 2 additions and 1 deletions

View File

@ -12,11 +12,12 @@
"scripts": {
"regenerate": "rm -rf ./src/gen && preserves-schema-ts --module Actor=./src/actor.ts --module Protocol=./src/protocol.ts --output ./src/gen './schemas/**/*.prs'",
"regenerate:watch": "yarn regenerate --watch",
"regenerate:bundle": "preserves-schemac './schemas/**/*.prs' > novy-syndicate.schema.bundle.bin",
"compile": "tsc",
"compile:watch": "tsc -w",
"rollup": "rollup -c",
"rollup:watch": "rollup -c -w",
"clean": "rm -rf lib index.js",
"build": "yarn regenerate && yarn compile && yarn rollup"
"build": "yarn regenerate && yarn regenerate:bundle && yarn compile && yarn rollup"
}
}