-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
34 lines (30 loc) · 1010 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.1.6";
const TYPESCRIPT_VERSION = "3.9.7";
Package.describe({
name: "refapp:meteor-typescript-compiler",
version: COMPILER_VERSION,
summary: "A Typescript compiler plugin for Meteor",
git: "https://github.com/ref-app/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("1.10");
api.use(["babel-compiler"], "server");
api.use(["typescript"], "server"); // For compiling this package - should be a "devDependency" but meteor doesn’t have that concept
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");
});