Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1284 This makes TypeScript resolution play nicely with export maps, and converts the entrypoints to TypeScript. We remove the non-export-map fallbacks as well, so the export maps are always followed. Tests are moved to load yoga from its external export, testing the entrypoints. This moves the only untyped bit to the binary wrapper, which another diff will move. Reviewed By: yungsters Differential Revision: D45713689 fbshipit-source-id: 228e6f2c9d53520230707a81e76c3c35fcd46de5
69 lines
2.0 KiB
JSON
69 lines
2.0 KiB
JSON
{
|
|
"name": "yoga-layout",
|
|
"version": "2.0.0-beta.1",
|
|
"description": "JavaScript bindings for the Yoga layout engine",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:facebook/yoga.git"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"browser": "./src/entrypoint/wasm-async.ts",
|
|
"node": "./src/entrypoint/wasm-async.ts",
|
|
"default": "./src/entrypoint/asmjs-async.ts"
|
|
},
|
|
"./sync": {
|
|
"browser": "./src/entrypoint/asmjs-sync.ts",
|
|
"node": "./src/entrypoint/wasm-sync.ts",
|
|
"default": "./src/entrypoint/asmjs-sync.ts"
|
|
},
|
|
"./asmjs-async": "./src/entrypoint/asmjs-async.ts",
|
|
"./asmjs-sync": "./src/entrypoint/asmjs-sync.ts",
|
|
"./wasm-async": "./src/entrypoint/wasm-async.ts",
|
|
"./wasm-sync": "./src/entrypoint/wasm-sync.ts"
|
|
},
|
|
"files": [
|
|
"binaries/**",
|
|
"src/**"
|
|
],
|
|
"scripts": {
|
|
"benchmark": "just benchmark",
|
|
"build": "just build",
|
|
"clean": "just clean",
|
|
"lint": "just lint",
|
|
"lint:fix": "just lint --fix",
|
|
"prepack": "just prepack",
|
|
"test": "just test",
|
|
"test:asmjs-async": "just test:asmjs-async",
|
|
"test:asmjs-sync": "just test:asmjs-sync",
|
|
"test:wasm-async": "just test:wasm-async",
|
|
"test:wasm-sync": "just test:wasm-sync"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.20.7",
|
|
"@babel/core": "^7.20.7",
|
|
"@babel/eslint-parser": "^7.19.1",
|
|
"@babel/preset-env": "^7.20.2",
|
|
"@babel/preset-typescript": "^7.21.4",
|
|
"@types/glob": "^8.1.0",
|
|
"@types/jest": "^29.5.1",
|
|
"@types/node": "^16.18.25",
|
|
"@types/which": "^3.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
"@typescript-eslint/parser": "^5.30.5",
|
|
"clang-format": "^1.8.0",
|
|
"eslint": "^8.30.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-jest": "^27.1.7",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"glob": "^8.0.3",
|
|
"jest": "^29.3.1",
|
|
"just-scripts": "^2.1.0",
|
|
"prettier": "^2.4.1",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "5.0.4",
|
|
"which": "^3.0.0"
|
|
}
|
|
}
|