Skip to content

Commit 9ae7eba

Browse files
committed
chore: update build scripts and TypeScript configuration for native-modules
- Changed build script to generate JavaScript types instead of only declaration files. - Updated TypeScript configuration to emit all files instead of just declaration files.
1 parent 1b902c8 commit 9ae7eba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/native-modules/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
}
1515
},
1616
"scripts": {
17-
"build": "expo-module build && npm run build:types",
18-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationMap false && node scripts/post-build-types.js",
17+
"build": "expo-module build && npm run build:js-types",
18+
"build:js-types": "tsc && node scripts/post-build-types.js",
1919
"clean": "expo-module clean",
2020
"lint": "expo-module lint",
2121
"test": "expo-module test",

packages/native-modules/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"rootDir": "./src",
66
"declaration": true,
77
"declarationMap": false,
8-
"emitDeclarationOnly": true
8+
"emitDeclarationOnly": false
99
},
1010
"include": ["src/**/*"],
1111
"exclude": ["node_modules", "build", "**/*.test.ts", "**/*.test.tsx"]

0 commit comments

Comments
 (0)