nx/packages/react-native/project.json
Emily Xiong 9c2162fadc
fix(react-native): should not include ts in build (#26352)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes https://github.com/nrwl/nx/issues/22948
2024-06-04 15:02:41 -04:00

53 lines
1.4 KiB
JSON

{
"name": "react-native",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/react-native/src",
"projectType": "library",
"targets": {
"build-base": {
"executor": "@nx/js:tsc",
"options": {
"assets": [
"packages/react-native/*.md",
{
"input": "packages/react-native",
"glob": "**/files/**/.babelrc.template",
"output": "/"
},
{
"input": "packages/react-native/src",
"glob": "**/!(*.ts)",
"output": "/src"
},
{
"input": "packages/react-native",
"glob": "**/*.json",
"ignore": ["**/tsconfig*.json"],
"output": "/"
},
{
"input": "packages/react-native",
"glob": "**/*.d.ts",
"output": "/"
},
{
"input": "",
"glob": "LICENSE",
"output": "/"
}
]
}
},
"build": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/react-native"],
"options": {
"command": "node ./scripts/copy-readme.js react-native"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js react-native @nrwl/react-native"
}
}
}