Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quavedev/meteor-packages
https://github.com/quavedev/meteor-packages
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/quavedev/meteor-packages
- Owner: quavedev
- Created: 2020-06-09T09:54:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T11:32:20.000Z (about 2 months ago)
- Last Synced: 2024-11-05T12:42:08.491Z (about 2 months ago)
- Language: JavaScript
- Size: 691 KB
- Stars: 7
- Watchers: 8
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Meteor Packages by Quave
## Types
We configure our packages to expose types using `zodern:types` package.
According to `zodern:types` documentation, we need to create a `package-types.json` file in the package directory with the following structure:
```json
{
"typesEntry": "collections.js"
}
```Also add a `tsconfig.json` file like this:
```json
{
"compilerOptions": {
"allowJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "."
},
"include": ["collections.js"],
"exclude": ["node_modules", "**/*.d.ts"],
}
```And then we need to depend on it (api.use).
See [collections package](https://github.com/quavedev/meteor-packages/tree/main/collections) as an example.