From 04deb92f42c4fc38c645bec3a2189010021ffd8b Mon Sep 17 00:00:00 2001 From: Tanguy Antoine Date: Tue, 20 Nov 2018 08:54:25 +0100 Subject: [PATCH] build: skip lib check it make TS to raise errors --- .gitignore | 1 + package.json | 1 + tsconfig.json | 9 ++++++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 404c8a93..354b4b86 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ android/build .vscode/ .DS_Store node_modules/ +lib/ diff --git a/package.json b/package.json index 3e0b8fea..dc311cef 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.7.3", "description": "Add information on lockscreen and control playing music", "main": "lib/index.js", + "types": "./lib/index.d.ts", "files": [ "ios/", "android/", diff --git a/tsconfig.json b/tsconfig.json index 255b1b68..5ea8db20 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - // "declaration": true, /* Generates corresponding '.d.ts' file. */ + "declaration": true /* Generates corresponding '.d.ts' file. */, // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ // "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ @@ -42,8 +42,8 @@ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "typeRoots": [], /* List of folders to include type definitions from. */ // "types": [], /* Type declaration files to be included in compilation. */ - "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */, - "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + // "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */, + "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ /* Source Map Options */ @@ -55,5 +55,8 @@ /* Experimental Options */ // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + + // TODO: remove this line when we upgrade react native dependencies + "skipLibCheck": true } }