2017-01-02 02:22:45 -08:00
|
|
|
{
|
2018-01-18 07:55:50 -08:00
|
|
|
"name": "yoga-layout",
|
2022-12-23 23:49:35 -08:00
|
|
|
"version": "2.0.0-beta.1",
|
|
|
|
"description": "JavaScript bindings for the Yoga layout engine",
|
2018-02-16 18:25:02 -08:00
|
|
|
"license": "MIT",
|
2018-01-18 07:55:50 -08:00
|
|
|
"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 23:49:35 -08:00
|
|
|
"browser": "./dist/entrypoint/wasm-async.js",
|
|
|
|
"node": "./dist/entrypoint/wasm-async.js",
|
|
|
|
"default": "./dist/entrypoint/asmjs-async.js"
|
2022-12-23 00:43:57 -08:00
|
|
|
},
|
|
|
|
"./sync": {
|
2022-12-23 23:49:35 -08:00
|
|
|
"browser": "./dist/entrypoint/asmjs-sync.js",
|
|
|
|
"node": "./dist/entrypoint/wasm-sync.js",
|
|
|
|
"default": "./dist/entrypoint/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
|
|
|
],
|
2018-01-18 07:55:50 -08:00
|
|
|
"scripts": {
|
2022-12-24 00:25:02 -08:00
|
|
|
"benchmark": "yarn build && node tests/run-bench $(find tests/benchmarks -name '*.js')",
|
|
|
|
"build": "yarn build:js && yarn build:native",
|
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",
|
2022-12-24 01:46:20 -08:00
|
|
|
"lint": "eslint .",
|
|
|
|
"lint:fix": "yarn lint --fix",
|
2022-12-24 00:25:02 -08:00
|
|
|
"test": "yarn test:asmjs-async && yarn test:asmjs-sync && yarn test:wasm-async && yarn test:wasm-sync",
|
|
|
|
"test:asmjs-async": "yarn build --target asmjs-async && WASM=0 SYNC=0 jest",
|
|
|
|
"test:asmjs-sync": "yarn build --target asmjs-sync && WASM=0 SYNC=1 jest",
|
|
|
|
"test:wasm-async": "yarn build --target wasm-async && WASM=1 SYNC=0 jest",
|
|
|
|
"test:wasm-sync": "yarn build --target wasm-sync && WASM=1 SYNC=1 jest"
|
2018-01-18 07:55:50 -08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-12-22 03:06:42 -08:00
|
|
|
"@babel/cli": "^7.20.7",
|
2022-12-22 05:49:05 -08:00
|
|
|
"@babel/core": "^7.20.7",
|
2022-12-24 01:46:20 -08:00
|
|
|
"@babel/eslint-parser": "^7.19.1",
|
2022-12-22 03:06:42 -08:00
|
|
|
"@babel/preset-env": "^7.20.2",
|
2022-12-24 01:46:20 -08:00
|
|
|
"eslint": "^8.30.0",
|
|
|
|
"eslint-config-prettier": "^8.5.0",
|
|
|
|
"eslint-plugin-jest": "^27.1.7",
|
|
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
|
|
"jest": "^29.3.1",
|
|
|
|
"prettier": "^2.4.1"
|
2018-01-18 07:55:50 -08:00
|
|
|
}
|
2017-01-02 02:22:45 -08:00
|
|
|
}
|