Files
yoga/javascript/package.json

49 lines
1.7 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-23 07:30:15 -08:00
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
2022-12-22 03:06:42 -08:00
"exports": {
".": {
2022-12-23 07:30:15 -08:00
"browser": "./dist/variants/wasm-async.js",
"node": "./dist/variants/wasm-async.js",
"default": "./dist/variants/asmjs-async.js"
2022-12-23 00:43:57 -08:00
},
"./sync": {
2022-12-23 07:30:15 -08:00
"browser": "./dist/variants/asmjs-sync.js",
"node": "./dist/variants/wasm-sync.js",
"default": "./dist/variants/asmjs-sync.js"
2022-12-22 03:06:42 -08:00
}
},
2022-12-23 00:43:57 -08:00
"files": [
"dist/**",
2022-12-23 07:30:15 -08:00
"src_js/**"
2022-12-23 00:43:57 -08:00
],
"scripts": {
2022-12-23 07:30:15 -08:00
"benchmark": "node tests/run-bench $(find tests/Benchmarks -name '*.js')",
2022-12-23 00:43:57 -08:00
"build": "yarn build:native && yarn build:js",
2022-12-23 07:30:15 -08:00
"build:configure": "which ninja && emcmake cmake -S . -B build -G Ninja || emcmake cmake -S . -B build",
"build:copy-dts": "cd src_js && find . -name '*.d.ts' | cpio -pdm ../dist",
"build:js": "babel src_js --source-maps --out-dir dist && yarn build:copy-dts",
"build:native": "yarn build:configure && cmake --build build",
"postinstall": "yarn build",
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": "WASM=0 SYNC=0 jest",
"test:asmjs-sync": "WASM=0 SYNC=1 jest",
"test:wasm": "WASM=1 SYNC=0 jest",
2022-12-23 07:30:15 -08:00
"test:wasm-sync": "WASM=1 SYNC=1 jest"
},
"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"
}
}