@heroku-cli/plugin-data-privatelink 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +206 -0
- package/README.md +561 -100
- package/lib/base.d.ts +2 -2
- package/lib/base.js +2 -2
- package/lib/commands/data/privatelink/access/add.d.ts +7 -7
- package/lib/commands/data/privatelink/access/add.js +25 -28
- package/lib/commands/data/privatelink/access/index.d.ts +7 -6
- package/lib/commands/data/privatelink/access/index.js +21 -19
- package/lib/commands/data/privatelink/access/remove.d.ts +7 -7
- package/lib/commands/data/privatelink/access/remove.js +25 -28
- package/lib/commands/data/privatelink/create.d.ts +7 -7
- package/lib/commands/data/privatelink/create.js +31 -34
- package/lib/commands/data/privatelink/destroy.d.ts +6 -6
- package/lib/commands/data/privatelink/destroy.js +17 -16
- package/lib/commands/data/privatelink/index.d.ts +8 -6
- package/lib/commands/data/privatelink/index.js +41 -31
- package/lib/commands/data/privatelink/wait.d.ts +6 -6
- package/lib/commands/data/privatelink/wait.js +19 -18
- package/oclif.manifest.json +314 -1
- package/package.json +59 -35
- package/yarn.lock +6113 -2068
- package/lib/lib/addontype.d.ts +0 -1
- package/lib/lib/addontype.js +0 -14
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const command_1 = require("@heroku-cli/command");
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
5
|
const base_1 = require("../../../base");
|
|
6
6
|
const fetcher_1 = require("../../../lib/fetcher");
|
|
7
|
-
class
|
|
7
|
+
class Wait extends base_1.default {
|
|
8
8
|
async run() {
|
|
9
|
-
const { args, flags } = this.parse(
|
|
10
|
-
const database = await fetcher_1.default(this.heroku, args.database, flags.app);
|
|
9
|
+
const { args, flags } = await this.parse(Wait);
|
|
10
|
+
const database = await (0, fetcher_1.default)(this.heroku, args.database, flags.app);
|
|
11
11
|
let status;
|
|
12
|
-
|
|
12
|
+
core_1.ux.action.start('Waiting for the privatelink endpoint to be provisioned');
|
|
13
13
|
while (status !== 'Operational') {
|
|
14
|
-
|
|
14
|
+
const { body: res } = await this.shogun.get(`/private-link/v0/databases/${database}`, this.shogun.defaults);
|
|
15
15
|
status = res.status;
|
|
16
|
-
await
|
|
16
|
+
await core_1.ux.wait(3000);
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
core_1.ux.action.stop();
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
exports.default = Wait;
|
|
22
|
+
Wait.description = 'wait for your privatelink endpoint to be provisioned';
|
|
23
|
+
Wait.hiddenAliases = ['pg:privatelink:wait', 'kafka:privatelink:wait', 'redis:privatelink:wait'];
|
|
24
|
+
Wait.args = {
|
|
25
|
+
database: core_1.Args.string({ required: true }),
|
|
26
|
+
};
|
|
27
|
+
Wait.flags = {
|
|
28
|
+
app: command_1.flags.app({ required: true }),
|
|
29
|
+
remote: command_1.flags.remote(),
|
|
28
30
|
};
|
|
29
|
-
|
|
30
|
-
'$ heroku data:privatelink:wait postgresql-sushi-12345',
|
|
31
|
+
Wait.examples = [
|
|
32
|
+
'$ heroku data:privatelink:wait postgresql-sushi-12345 postgresql-sushi-12345 --app my-app',
|
|
31
33
|
];
|
|
32
|
-
exports.default = EndpointsWait;
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1,314 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": "1.3.2",
|
|
3
|
+
"commands": {
|
|
4
|
+
"data:privatelink:create": {
|
|
5
|
+
"id": "data:privatelink:create",
|
|
6
|
+
"description": "create a new privatelink endpoint for your database",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"pluginName": "@heroku-cli/plugin-data-privatelink",
|
|
9
|
+
"pluginAlias": "@heroku-cli/plugin-data-privatelink",
|
|
10
|
+
"pluginType": "core",
|
|
11
|
+
"aliases": [],
|
|
12
|
+
"hiddenAliases": [
|
|
13
|
+
"pg:privatelink:create",
|
|
14
|
+
"kafka:privatelink:create",
|
|
15
|
+
"redis:privatelink:create"
|
|
16
|
+
],
|
|
17
|
+
"examples": [
|
|
18
|
+
"$ heroku data:privatelink:create postgresql-sushi-12345 --aws-account-id 123456789012:user/abc --app my-app",
|
|
19
|
+
"$ heroku data:privatelink:create postgresql-sushi-12345 --aws-account-id 123456789012:user/abc --account-id 123456789012:user/xyz --app my-app"
|
|
20
|
+
],
|
|
21
|
+
"flags": {
|
|
22
|
+
"aws-account-id": {
|
|
23
|
+
"name": "aws-account-id",
|
|
24
|
+
"type": "option",
|
|
25
|
+
"char": "i",
|
|
26
|
+
"description": "AWS account id to use",
|
|
27
|
+
"required": true,
|
|
28
|
+
"multiple": true
|
|
29
|
+
},
|
|
30
|
+
"app": {
|
|
31
|
+
"name": "app",
|
|
32
|
+
"type": "option",
|
|
33
|
+
"char": "a",
|
|
34
|
+
"description": "app to run command against",
|
|
35
|
+
"required": true,
|
|
36
|
+
"multiple": false
|
|
37
|
+
},
|
|
38
|
+
"remote": {
|
|
39
|
+
"name": "remote",
|
|
40
|
+
"type": "option",
|
|
41
|
+
"char": "r",
|
|
42
|
+
"description": "git remote of app to use",
|
|
43
|
+
"multiple": false
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"args": {
|
|
47
|
+
"database": {
|
|
48
|
+
"name": "database",
|
|
49
|
+
"required": true
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"data:privatelink:destroy": {
|
|
54
|
+
"id": "data:privatelink:destroy",
|
|
55
|
+
"description": "destroy a privatelink endpoint for your database",
|
|
56
|
+
"strict": true,
|
|
57
|
+
"pluginName": "@heroku-cli/plugin-data-privatelink",
|
|
58
|
+
"pluginAlias": "@heroku-cli/plugin-data-privatelink",
|
|
59
|
+
"pluginType": "core",
|
|
60
|
+
"aliases": [],
|
|
61
|
+
"hiddenAliases": [
|
|
62
|
+
"pg:privatelink:destroy",
|
|
63
|
+
"kafka:privatelink:destroy",
|
|
64
|
+
"redis:privatelink:destroy"
|
|
65
|
+
],
|
|
66
|
+
"examples": [
|
|
67
|
+
"$ heroku data:privatelink:destroy postgresql-sushi-12345 --app my-app"
|
|
68
|
+
],
|
|
69
|
+
"flags": {
|
|
70
|
+
"app": {
|
|
71
|
+
"name": "app",
|
|
72
|
+
"type": "option",
|
|
73
|
+
"char": "a",
|
|
74
|
+
"description": "app to run command against",
|
|
75
|
+
"required": true,
|
|
76
|
+
"multiple": false
|
|
77
|
+
},
|
|
78
|
+
"remote": {
|
|
79
|
+
"name": "remote",
|
|
80
|
+
"type": "option",
|
|
81
|
+
"char": "r",
|
|
82
|
+
"description": "git remote of app to use",
|
|
83
|
+
"multiple": false
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"args": {
|
|
87
|
+
"database": {
|
|
88
|
+
"name": "database",
|
|
89
|
+
"required": true
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"data:privatelink": {
|
|
94
|
+
"id": "data:privatelink",
|
|
95
|
+
"description": "list all your privatelink endpoints",
|
|
96
|
+
"strict": true,
|
|
97
|
+
"pluginName": "@heroku-cli/plugin-data-privatelink",
|
|
98
|
+
"pluginAlias": "@heroku-cli/plugin-data-privatelink",
|
|
99
|
+
"pluginType": "core",
|
|
100
|
+
"aliases": [],
|
|
101
|
+
"hiddenAliases": [
|
|
102
|
+
"pg:privatelink",
|
|
103
|
+
"kafka:privatelink",
|
|
104
|
+
"redis:privatelink"
|
|
105
|
+
],
|
|
106
|
+
"examples": [
|
|
107
|
+
"$ heroku data:privatelink postgresql-sushi-12345 --app my-app"
|
|
108
|
+
],
|
|
109
|
+
"flags": {
|
|
110
|
+
"app": {
|
|
111
|
+
"name": "app",
|
|
112
|
+
"type": "option",
|
|
113
|
+
"char": "a",
|
|
114
|
+
"description": "app to run command against",
|
|
115
|
+
"required": true,
|
|
116
|
+
"multiple": false
|
|
117
|
+
},
|
|
118
|
+
"remote": {
|
|
119
|
+
"name": "remote",
|
|
120
|
+
"type": "option",
|
|
121
|
+
"char": "r",
|
|
122
|
+
"description": "git remote of app to use",
|
|
123
|
+
"multiple": false
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"args": {
|
|
127
|
+
"database": {
|
|
128
|
+
"name": "database",
|
|
129
|
+
"required": true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"topic": "data:privatelink"
|
|
133
|
+
},
|
|
134
|
+
"data:privatelink:wait": {
|
|
135
|
+
"id": "data:privatelink:wait",
|
|
136
|
+
"description": "wait for your privatelink endpoint to be provisioned",
|
|
137
|
+
"strict": true,
|
|
138
|
+
"pluginName": "@heroku-cli/plugin-data-privatelink",
|
|
139
|
+
"pluginAlias": "@heroku-cli/plugin-data-privatelink",
|
|
140
|
+
"pluginType": "core",
|
|
141
|
+
"aliases": [],
|
|
142
|
+
"hiddenAliases": [
|
|
143
|
+
"pg:privatelink:wait",
|
|
144
|
+
"kafka:privatelink:wait",
|
|
145
|
+
"redis:privatelink:wait"
|
|
146
|
+
],
|
|
147
|
+
"examples": [
|
|
148
|
+
"$ heroku data:privatelink:wait postgresql-sushi-12345 postgresql-sushi-12345 --app my-app"
|
|
149
|
+
],
|
|
150
|
+
"flags": {
|
|
151
|
+
"app": {
|
|
152
|
+
"name": "app",
|
|
153
|
+
"type": "option",
|
|
154
|
+
"char": "a",
|
|
155
|
+
"description": "app to run command against",
|
|
156
|
+
"required": true,
|
|
157
|
+
"multiple": false
|
|
158
|
+
},
|
|
159
|
+
"remote": {
|
|
160
|
+
"name": "remote",
|
|
161
|
+
"type": "option",
|
|
162
|
+
"char": "r",
|
|
163
|
+
"description": "git remote of app to use",
|
|
164
|
+
"multiple": false
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"args": {
|
|
168
|
+
"database": {
|
|
169
|
+
"name": "database",
|
|
170
|
+
"required": true
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"data:privatelink:access:add": {
|
|
175
|
+
"id": "data:privatelink:access:add",
|
|
176
|
+
"description": "add one or more allowed AWS accounts to your privatelink endpoint",
|
|
177
|
+
"strict": true,
|
|
178
|
+
"pluginName": "@heroku-cli/plugin-data-privatelink",
|
|
179
|
+
"pluginAlias": "@heroku-cli/plugin-data-privatelink",
|
|
180
|
+
"pluginType": "core",
|
|
181
|
+
"aliases": [],
|
|
182
|
+
"hiddenAliases": [
|
|
183
|
+
"pg:privatelink:access:add",
|
|
184
|
+
"kafka:privatelink:access:add",
|
|
185
|
+
"redis:privatelink:access:add"
|
|
186
|
+
],
|
|
187
|
+
"examples": [
|
|
188
|
+
"$ heroku data:privatelink:access:add postgresql-sushi-12345 --aws-account-id 123456789012:user/abc --app my-app",
|
|
189
|
+
"$ heroku data:privatelink:access:add postgresql-sushi-12345 --aws-account-id 123456789012:user/abc --aws-account-id 123456789012:user/xyz --app my-app"
|
|
190
|
+
],
|
|
191
|
+
"flags": {
|
|
192
|
+
"aws-account-id": {
|
|
193
|
+
"name": "aws-account-id",
|
|
194
|
+
"type": "option",
|
|
195
|
+
"char": "i",
|
|
196
|
+
"description": "AWS account id to use",
|
|
197
|
+
"required": true,
|
|
198
|
+
"multiple": true
|
|
199
|
+
},
|
|
200
|
+
"app": {
|
|
201
|
+
"name": "app",
|
|
202
|
+
"type": "option",
|
|
203
|
+
"char": "a",
|
|
204
|
+
"description": "app to run command against",
|
|
205
|
+
"required": true,
|
|
206
|
+
"multiple": false
|
|
207
|
+
},
|
|
208
|
+
"remote": {
|
|
209
|
+
"name": "remote",
|
|
210
|
+
"type": "option",
|
|
211
|
+
"char": "r",
|
|
212
|
+
"description": "git remote of app to use",
|
|
213
|
+
"multiple": false
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"args": {
|
|
217
|
+
"database": {
|
|
218
|
+
"name": "database",
|
|
219
|
+
"required": true
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"data:privatelink:access": {
|
|
224
|
+
"id": "data:privatelink:access",
|
|
225
|
+
"description": "list all allowed accounts for your privatelink endpoint",
|
|
226
|
+
"strict": true,
|
|
227
|
+
"pluginName": "@heroku-cli/plugin-data-privatelink",
|
|
228
|
+
"pluginAlias": "@heroku-cli/plugin-data-privatelink",
|
|
229
|
+
"pluginType": "core",
|
|
230
|
+
"aliases": [],
|
|
231
|
+
"hiddenAliases": [
|
|
232
|
+
"pg:privatelink:access",
|
|
233
|
+
"kafka:privatelink:access",
|
|
234
|
+
"redis:privatelink:access"
|
|
235
|
+
],
|
|
236
|
+
"examples": [
|
|
237
|
+
"$ heroku data:privatelink:access postgresql-sushi-12345 --app my-app"
|
|
238
|
+
],
|
|
239
|
+
"flags": {
|
|
240
|
+
"app": {
|
|
241
|
+
"name": "app",
|
|
242
|
+
"type": "option",
|
|
243
|
+
"char": "a",
|
|
244
|
+
"description": "app to run command against",
|
|
245
|
+
"required": true,
|
|
246
|
+
"multiple": false
|
|
247
|
+
},
|
|
248
|
+
"remote": {
|
|
249
|
+
"name": "remote",
|
|
250
|
+
"type": "option",
|
|
251
|
+
"char": "r",
|
|
252
|
+
"description": "git remote of app to use",
|
|
253
|
+
"multiple": false
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"args": {
|
|
257
|
+
"database": {
|
|
258
|
+
"name": "database",
|
|
259
|
+
"required": true
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"topic": "data:privatelink:access"
|
|
263
|
+
},
|
|
264
|
+
"data:privatelink:access:remove": {
|
|
265
|
+
"id": "data:privatelink:access:remove",
|
|
266
|
+
"description": "remove an allowed account from your privatelink endpoint",
|
|
267
|
+
"strict": true,
|
|
268
|
+
"pluginName": "@heroku-cli/plugin-data-privatelink",
|
|
269
|
+
"pluginAlias": "@heroku-cli/plugin-data-privatelink",
|
|
270
|
+
"pluginType": "core",
|
|
271
|
+
"aliases": [],
|
|
272
|
+
"hiddenAliases": [
|
|
273
|
+
"pg:privatelink:access:remove",
|
|
274
|
+
"kafka:privatelink:access:remove",
|
|
275
|
+
"redis:privatelink:access:remove"
|
|
276
|
+
],
|
|
277
|
+
"examples": [
|
|
278
|
+
"$ heroku data:privatelink:access:remove postgresql-sushi-12345 --aws-account-id 123456789012:user/xyz --app my-app",
|
|
279
|
+
"$ heroku data:privatelink:access:remove postgresql-sushi-12345 --aws-account-id 123456789012:user/abc --aws-account-id 123456789012:user/xyz --app my-app"
|
|
280
|
+
],
|
|
281
|
+
"flags": {
|
|
282
|
+
"aws-account-id": {
|
|
283
|
+
"name": "aws-account-id",
|
|
284
|
+
"type": "option",
|
|
285
|
+
"char": "i",
|
|
286
|
+
"description": "AWS account id to use",
|
|
287
|
+
"required": true,
|
|
288
|
+
"multiple": true
|
|
289
|
+
},
|
|
290
|
+
"app": {
|
|
291
|
+
"name": "app",
|
|
292
|
+
"type": "option",
|
|
293
|
+
"char": "a",
|
|
294
|
+
"description": "app to run command against",
|
|
295
|
+
"required": true,
|
|
296
|
+
"multiple": false
|
|
297
|
+
},
|
|
298
|
+
"remote": {
|
|
299
|
+
"name": "remote",
|
|
300
|
+
"type": "option",
|
|
301
|
+
"char": "r",
|
|
302
|
+
"description": "git remote of app to use",
|
|
303
|
+
"multiple": false
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"args": {
|
|
307
|
+
"database": {
|
|
308
|
+
"name": "database",
|
|
309
|
+
"required": true
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
package/package.json
CHANGED
|
@@ -1,41 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heroku-cli/plugin-data-privatelink",
|
|
3
3
|
"description": "Heroku Data via PrivateLink CLI",
|
|
4
|
-
"version": "1.3.
|
|
5
|
-
"author": "Heroku
|
|
4
|
+
"version": "1.3.2",
|
|
5
|
+
"author": "Heroku",
|
|
6
6
|
"bugs": "https://github.com/heroku/heroku-data-privatelink-cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@heroku-cli/color": "^
|
|
9
|
-
"@heroku-cli/command": "^
|
|
10
|
-
"@
|
|
11
|
-
"@oclif/
|
|
12
|
-
"@oclif/
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"tslib": "^1.9.3"
|
|
8
|
+
"@heroku-cli/color": "^2.0.1",
|
|
9
|
+
"@heroku-cli/command": "^11.1.2",
|
|
10
|
+
"@heroku-cli/schema": "^1.0.25",
|
|
11
|
+
"@oclif/core": "^2.16.0",
|
|
12
|
+
"@oclif/plugin-help": "^5",
|
|
13
|
+
"stdout-stderr": "^0.1.13",
|
|
14
|
+
"tslib": "1.14.1"
|
|
16
15
|
},
|
|
17
16
|
"devDependencies": {
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
23
|
-
"@
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
26
|
-
"
|
|
27
|
-
"chai": "^
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
17
|
+
"@oclif/test": "^2.3.28",
|
|
18
|
+
"@types/chai": "^4.3.14",
|
|
19
|
+
"@types/chai-as-promised": "^7.1.8",
|
|
20
|
+
"@types/mocha": "^10.0.6",
|
|
21
|
+
"@types/node": "^16.11.7",
|
|
22
|
+
"@types/supports-color": "^8.1.3",
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
24
|
+
"@typescript-eslint/parser": "6.21.0",
|
|
25
|
+
"chai": "^4.4.1",
|
|
26
|
+
"chai-as-promised": "^7.1.1",
|
|
27
|
+
"eslint": "^7.32.0",
|
|
28
|
+
"eslint-config-oclif": "^4.0.0",
|
|
29
|
+
"eslint-config-oclif-typescript": "^1.0.2",
|
|
30
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
31
|
+
"eslint-plugin-import": "^2.27.5",
|
|
32
|
+
"eslint-plugin-mocha": "^10.4.3",
|
|
33
|
+
"globby": "^10.0.2",
|
|
34
|
+
"lolex": "^3.1.0",
|
|
35
|
+
"mocha": "^9.2.2",
|
|
36
|
+
"nock": "^13.5.1",
|
|
37
|
+
"nyc": "^15.1.0",
|
|
38
|
+
"oclif": "3.17.2",
|
|
39
|
+
"ts-node": "^10.9.2",
|
|
40
|
+
"tsheredoc": "^1.0.1",
|
|
41
|
+
"typescript": "4.8.4"
|
|
36
42
|
},
|
|
37
43
|
"engines": {
|
|
38
|
-
"node": ">=
|
|
44
|
+
"node": ">=16.0.0"
|
|
39
45
|
},
|
|
40
46
|
"files": [
|
|
41
47
|
"/lib",
|
|
@@ -45,22 +51,40 @@
|
|
|
45
51
|
],
|
|
46
52
|
"homepage": "https://github.com/heroku/heroku-data-privatelink-cli",
|
|
47
53
|
"keywords": [
|
|
48
|
-
"
|
|
54
|
+
"heroku",
|
|
55
|
+
"heroku-cli-plugin"
|
|
49
56
|
],
|
|
50
57
|
"license": "MIT",
|
|
58
|
+
"mocha": {
|
|
59
|
+
"require": [
|
|
60
|
+
"test/helpers/init.js",
|
|
61
|
+
"ts-node/register",
|
|
62
|
+
"source-map-support/register"
|
|
63
|
+
],
|
|
64
|
+
"watch-extensions": "ts",
|
|
65
|
+
"recursive": true,
|
|
66
|
+
"reporter": "spec",
|
|
67
|
+
"timeout": 30000
|
|
68
|
+
},
|
|
51
69
|
"oclif": {
|
|
52
70
|
"commands": "./lib/commands",
|
|
53
71
|
"bin": "heroku",
|
|
54
|
-
"
|
|
72
|
+
"plugins": [
|
|
55
73
|
"@oclif/plugin-help"
|
|
56
74
|
]
|
|
57
75
|
},
|
|
58
76
|
"repository": "heroku/heroku-data-privatelink-cli",
|
|
77
|
+
"resolutions": {
|
|
78
|
+
"isbinaryfile": "4.0.10"
|
|
79
|
+
},
|
|
59
80
|
"scripts": {
|
|
81
|
+
"build": "rm -rf lib && tsc -b",
|
|
82
|
+
"lint": "eslint . --ext .ts --config .eslintrc",
|
|
60
83
|
"postpack": "rm -f oclif.manifest.json",
|
|
61
|
-
"posttest": "
|
|
62
|
-
"prepack": "rm -rf lib && tsc -b && oclif
|
|
63
|
-
"
|
|
64
|
-
"
|
|
84
|
+
"posttest": "yarn lint",
|
|
85
|
+
"prepack": "rm -rf lib && tsc -b && oclif manifest",
|
|
86
|
+
"pretest": "tsc -p test --noEmit && yarn build",
|
|
87
|
+
"test": "nyc mocha --forbid-only \"test/**/*.unit.test.ts\"",
|
|
88
|
+
"version": "oclif readme && git add README.md"
|
|
65
89
|
}
|
|
66
90
|
}
|