Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/quavedev/meteor-packages


https://github.com/quavedev/meteor-packages

Last synced: about 2 months ago
JSON representation

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.