Files
yoga/javascript/package.json

47 lines
1.6 KiB
JSON
Raw Normal View History

{
"name": "yoga-layout",
"version": "1.9.3",
"description": "Yoga is a cross-platform layout engine enabling maximum collaboration within your team by implementing an API many designers are familiar with, and opening it up to developers across different platforms.",
"license": "MIT",
"repository": {
"type": "git",
"url": "git@github.com:facebook/yoga.git"
},
2022-12-22 03:06:42 -08:00
"exports": {
".": {
"browser": "./dist/index.wasm.js",
"node": "./dist/index.wasm.js",
2022-12-23 00:43:57 -08:00
"react-native": "./dist/index.asmjs.js",
"default": "./dist/index.asmjs.js"
},
"./sync": {
"browser": "./dist/sync.asmks.js",
"node": "./dist/sync.wasm.js",
"react-native": "./dist/sync.asmjs.js",
"default": "./dist/sync.asmjs.js"
2022-12-22 03:06:42 -08:00
}
},
2022-12-23 00:43:57 -08:00
"files": [
"dist/**",
"sources/**"
],
"scripts": {
2022-12-23 00:43:57 -08:00
"build": "yarn build:native && yarn build:js",
2022-12-23 02:43:45 -08:00
"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",
2022-12-23 00:43:57 -08:00
"test": "yarn test:asmjs && yarn test:asmjs-sync && yarn test:wasm && yarn test:wasm-sync",
"test:asmjs": "jest",
"test:asmjs-sync": "SYNC=1 jest",
"test:wasm": "WASM=1 jest",
2022-12-23 00:43:57 -08:00
"test:wasm-sync": "WASM=1 SYNC=1 jest",
"benchmark": "node tests/run-bench $(find tests/Benchmarks -name '*.js')"
},
"devDependencies": {
2022-12-22 03:06:42 -08:00
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.7",
2022-12-22 03:06:42 -08:00
"@babel/preset-env": "^7.20.2",
"jest": "^29.3.1"
}
}