-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.js
34 lines (30 loc) · 983 Bytes
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* Match these with the versions in the meteor-typescript/package.js
*/
const COMPILER_VERSION = "0.5.6";
const TYPESCRIPT_VERSION = "5.7.2";
Package.describe({
name: "refapp:meteor-typescript-compiler",
version: COMPILER_VERSION,
summary: "A Typescript compiler plugin for Meteor",
git: "https://github.com/Meteor-Community-Packages/meteor-typescript-compiler",
documentation: "README.md",
});
Npm.depends({
"typescript": TYPESCRIPT_VERSION,
"chalk": "4.0.0",
"@types/node": "14.0.4",
});
Package.onUse(function (api) {
api.versionsFrom("2.12");
api.use(["babel-compiler"], "server");
api.use(["typescript@4.0.0||5.0.0||6.0.0"], "server"); // For compiling this package
api.addFiles(["meteor-typescript-compiler.ts"], "server");
api.export(["MeteorTypescriptCompiler"], "server");
});
Package.onTest(function (api) {
api.use("tinytest");
api.use("typescript");
api.use("refapp:meteor-typescript-compiler");
api.mainModule("tests.ts");
});