diff --git a/.npmignore b/.npmignore new file mode 100644 index 000000000..50d65e592 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +types/tests diff --git a/README.md b/README.md index ec6454279..7aaf5acc8 100644 --- a/README.md +++ b/README.md @@ -102,13 +102,6 @@ const Parse = require('parse/weapp'); ``` If you want to use a pre-compiled file, you can fetch it from [unpkg](https://unpkg.com). The development version is available at [https://unpkg.com/parse/dist/parse.weapp.js](https://unpkg.com/parse/dist/parse.weapp.js), and the minified production version is at [https://unpkg.com/parse/dist/parse.weapp.min.js](https://unpkg.com/parse/dist/parse.weapp.min.js). -For TypeScript applications, install `'@types/parse'`: -``` -$ npm install @types/parse -``` - -Types are updated manually after every release. If a definition doesn't exist, please submit a pull request to [@types/parse][types-parse] - #### Core Manager The SDK has a [Core Manager][core-manager] that handles all configurations and controllers. These modules can be swapped out for customization before you initialize the SDK. For full list of all available modules take a look at the [Core Manager Documentation][core-manager]. @@ -146,4 +139,3 @@ We really want Parse to be yours, to see it grow and thrive in the open source c [custom-auth-module]: https://docs.parseplatform.org/js/guide/#custom-authentication-module [link-with]: https://docs.parseplatform.org/js/guide/#linking-users [open-collective-link]: https://opencollective.com/parse-server -[types-parse]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse diff --git a/package.json b/package.json index e0f17afc2..00e5affdd 100644 --- a/package.json +++ b/package.json @@ -21,10 +21,12 @@ "weapp.js", "dist/", "lib/", + "types/", "LICENSE", "NOTICE", "README.md" ], + "types": "types/index.d.ts", "browser": { "react-native": false },