diff --git a/README.md b/README.md index 768b3b8..979bb49 100644 --- a/README.md +++ b/README.md @@ -187,3 +187,7 @@ deleteAllAlarms = async () => { } catch (e) {} } ``` + +Note to self: +- follow https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c for deployment +- add ./dist/index.d.ts file diff --git a/package.json b/package.json index 4c93735..e2222f3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-simple-alarm", "title": "React Native Simple Alarm", - "version": "2.0.0", + "version": "2.0.1", "description": "Alarm clock functionality for react native ios and android using react-native-push-notification and react-native-community/async-storage", "main": "./dist/index.js", "types": "./dist/index.d.ts", @@ -44,7 +44,7 @@ "@babel/runtime": "^7.9.2", "@react-native-community/eslint-config": "^3.0.1", "@types/node": "^17.0.10", - "@types/react-native": "^0.66.15", + "@types/react-native": ">=0.60.0-rc.0 <1.0.x", "@types/react-native-push-notification": "^7.3.3", "@typescript-eslint/eslint-plugin": "^5.10.0", "@typescript-eslint/parser": "^5.10.0", diff --git a/tsconfig.json b/tsconfig.json index 630dfa4..09334c6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,5 +10,6 @@ "declaration": true, "strict": true, "noImplicitAny": false, + "skipLibCheck": true, } } \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index eabd30e..19ce993 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1034,7 +1034,7 @@ resolved "https://registry.yarnpkg.com/@types/react-native-push-notification/-/react-native-push-notification-7.3.3.tgz#76d8cd73e37d5348ba714e8632e98615677961d2" integrity sha512-6LmfaZ0cRuk4oEdBZEJVRZ8DoPHz95fqD7wW3jBbcJFy3U23eSE+MeSQall4BCZFBZDGT1KCEGFCwflTxFEZMw== -"@types/react-native@^0.66.15": +"@types/react-native@>=0.60.0-rc.0 <1.0.x": version "0.66.15" resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.66.15.tgz#d332d82b04635adabbd8e1976f9547ce8662300b" integrity sha512-qNK3LZhNpSd2Hdr0OFdvQ/VOb1qcjNhmw96LsOtxIN+1RtXHO/1dVzxYUlWnKMCtV+E5WSaWM703c9Q7gG9tyg==