47 lines
1.6 KiB
JSON
47 lines
1.6 KiB
JSON
{
|
|
"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"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"browser": "./dist/index.wasm.js",
|
|
"node": "./dist/index.wasm.js",
|
|
"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"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist/**",
|
|
"sources/**"
|
|
],
|
|
"scripts": {
|
|
"build": "yarn build:native && yarn build:js",
|
|
"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": "WASM=0 SYNC=0 jest",
|
|
"test:asmjs-sync": "WASM=0 SYNC=1 jest",
|
|
"test:wasm": "WASM=1 SYNC=0 jest",
|
|
"test:wasm-sync": "WASM=1 SYNC=1 jest",
|
|
"benchmark": "node tests/run-bench $(find tests/Benchmarks -name '*.js')"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.20.7",
|
|
"@babel/core": "^7.20.7",
|
|
"@babel/preset-env": "^7.20.2",
|
|
"jest": "^29.3.1"
|
|
}
|
|
}
|