https://github.com/quavedev/meteor-packages
https://github.com/quavedev/meteor-packages
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/quavedev/meteor-packages
- Owner: quavedev
- Created: 2020-06-09T09:54:57.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-17T14:23:21.000Z (over 1 year ago)
- Last Synced: 2025-04-29T19:38:18.441Z (about 1 year ago)
- Language: JavaScript
- Size: 804 KB
- Stars: 8
- Watchers: 9
- Forks: 2
- Open Issues: 7
-
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.