Add TypeScript declarations

This commit is contained in:
Nick Gerleman
2022-12-23 02:43:45 -08:00
parent 3352385fb0
commit aaadf57b19
15 changed files with 576 additions and 649 deletions

View File

@@ -27,9 +27,9 @@
],
"scripts": {
"build": "yarn build:native && yarn build:js",
"build:native": "yarn build:project && cmake --build build",
"build:project": "which ninja && emcmake cmake -S . -B build -G Ninja || emcmake cmake -S . -B build",
"build:js": "babel sources --source-maps --out-dir dist && flow-copy-source sources dist",
"build:native": "yarn build:native-project && cmake --build build",
"build:native-project": "which ninja && emcmake cmake -S . -B build -G Ninja || emcmake cmake -S . -B build",
"build:js": "babel sources --source-maps --out-dir dist && cp -r sources/*.d.ts dist",
"test": "yarn test:asmjs && yarn test:asmjs-sync && yarn test:wasm && yarn test:wasm-sync",
"test:asmjs": "jest",
"test:asmjs-sync": "SYNC=1 jest",
@@ -40,9 +40,7 @@
"devDependencies": {
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.7",
"@babel/plugin-transform-flow-strip-types": "^7.19.0",
"@babel/preset-env": "^7.20.2",
"flow-copy-source": "^2.0.7",
"jest": "^29.3.1"
}
}