-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.js
43 lines (40 loc) · 1.09 KB
/
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
35
36
37
38
39
40
41
42
43
Package.describe({
name: 'grubba:rpc',
version: '0.7.4',
summary: 'Evolved RPC Methods for Meteor',
documentation: 'README.md'
});
Npm.depends({
"zod": "3.18.0",
});
Package.onUse(function (api) {
api.versionsFrom('2.7.3');
api.use('isobuild:[email protected]');
api.use('babel-compiler');
api.imply('modules');
api.imply('ecmascript-runtime');
api.imply('promise');
// Runtime support for Meteor 1.5 dynamic import(...) syntax.
api.imply('dynamic-import');
api.use('typescript');
api.use('ddp-rate-limiter');
api.use('zodern:[email protected]');
api.mainModule('client-main.ts', 'client');
api.mainModule('server-main.ts', [
"server"
]);
});
Package.onTest(function (api) {
api.use('tinytest');
api.use('es5-shim');
api.use('typescript');
api.use('isobuild:[email protected]');
api.use('babel-compiler');
api.imply('modules');
api.imply('ecmascript-runtime');
api.imply('promise');
// Runtime support for Meteor 1.5 dynamic import(...) syntax.
api.imply('dynamic-import');
api.use('ddp-rate-limiter');
api.mainModule("tests/index.ts");
});