Skip to content

Commit db2f851

Browse files
committed
type: fix tsconfig.json errors.
1 parent bc0c36a commit db2f851

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: package/react-native-uiw
2525
working-directory: package/react-native-uiw
26-
run: yarn install && yarn run start
26+
run: npm install && npm run start
2727

2828
- name: Is a tag created auto?
2929
id: create_tag

package/react-native-uiw/script/build.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,21 @@ function getPath(rootPath, result = []) {
2828

2929
const tsc = {
3030
compilerOptions: {
31-
// allowJs: true,
31+
allowJs: false,
32+
skipLibCheck: true,
3233
esModuleInterop: true,
3334
outDir: 'lib',
34-
// isolatedModules: true,
3535
declaration: true,
3636
jsx: 'react-native',
3737
lib: ['es6'],
3838
resolveJsonModule: true,
39+
isolatedModules: true,
3940
moduleResolution: 'node',
41+
allowSyntheticDefaultImports: true,
4042
strict: true,
41-
target: 'esnext',
42-
typeRoots: ['node_modules/@types/'],
43+
target: "esnext",
44+
module: "esnext",
45+
types: ["jest", "node"],
4346
baseUrl: '.',
4447
},
4548
exclude: ['node_modules'],

0 commit comments

Comments
 (0)