[TS/JS] Add rollup and config to generate iife flatbuffers bundle (#7449)

* Add rollup and config to generate iife flatbuffers bundle

* Atempt to use yarn and add deps

Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
Björn Harrtell
2022-08-30 01:37:43 +02:00
committed by GitHub
parent 41d9add7ef
commit ce382d6dd3
4 changed files with 25 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
},
"scripts": {
"test": "npm run compile && cd tests && python3 ./TypeScriptTest.py",
"compile": "tsc && tsc -p tsconfig.mjs.json",
"compile": "tsc && tsc -p tsconfig.mjs.json && rollup -c",
"prepublishOnly": "npm install --only=dev && npm run compile"
},
"repository": {
@@ -40,6 +40,7 @@
"@typescript-eslint/eslint-plugin": "^4.12.0",
"@typescript-eslint/parser": "^4.12.0",
"eslint": "^7.17.0",
"rollup": "^2.78.0",
"typescript": "^4.5.5"
}
}