@nuffieldtechnologies/rugged-schema-types 0.8.2 → 1.0.0
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/.jshintrc +5 -5
- package/{distribution → dist}/index.js +23 -47
- package/dist/index.js.map +1 -0
- package/index.ts +298 -0
- package/package.json +12 -12
- package/tsconfig.json +11 -0
- package/.babelrc +0 -9
package/.jshintrc
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"esversion": 6,
|
|
3
|
-
"undef": true,
|
|
4
|
-
"unused": true,
|
|
5
|
-
"devel": true
|
|
1
|
+
{
|
|
2
|
+
"esversion": 6,
|
|
3
|
+
"undef": true,
|
|
4
|
+
"unused": true,
|
|
5
|
+
"devel": true
|
|
6
6
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.All = exports.AllOrganisationFields = exports.Organisations = exports.OrganisationInput = exports.Organisation = exports.AllFormFields = exports.Forms = exports.FormFilter = exports.FormInput = exports.Form = exports.AllRolesFields = exports.AllUserFields = exports.Users = exports.UserInput = exports.User = exports.AllTaskFields = exports.Tasks = exports.TaskFilter = exports.TaskInput = exports.Task = void 0;
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
3
|
const _TimeStamps = `
|
|
8
4
|
type TimeStamps {
|
|
9
5
|
started: String,
|
|
@@ -251,45 +247,25 @@ const _Organisation = `
|
|
|
251
247
|
}
|
|
252
248
|
`;
|
|
253
249
|
const _AllOrganisationFields = `{id, name, logoUrl}`;
|
|
254
|
-
|
|
255
|
-
exports.
|
|
256
|
-
|
|
257
|
-
exports.
|
|
258
|
-
|
|
259
|
-
exports.
|
|
260
|
-
|
|
261
|
-
exports.
|
|
262
|
-
|
|
263
|
-
exports.
|
|
264
|
-
|
|
265
|
-
exports.
|
|
266
|
-
|
|
267
|
-
exports.
|
|
268
|
-
|
|
269
|
-
exports.
|
|
270
|
-
|
|
271
|
-
exports.
|
|
272
|
-
|
|
273
|
-
exports.
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
const FormInput = _FormInput;
|
|
277
|
-
exports.FormInput = FormInput;
|
|
278
|
-
const FormFilter = _FormFilter;
|
|
279
|
-
exports.FormFilter = FormFilter;
|
|
280
|
-
const Forms = Form + FormInput + FormFilter;
|
|
281
|
-
exports.Forms = Forms;
|
|
282
|
-
const AllFormFields = _AllFormFields;
|
|
283
|
-
exports.AllFormFields = AllFormFields;
|
|
284
|
-
const Organisation = _Organisation;
|
|
285
|
-
exports.Organisation = Organisation;
|
|
286
|
-
const OrganisationInput = _OrganisationInput;
|
|
287
|
-
exports.OrganisationInput = OrganisationInput;
|
|
288
|
-
const Organisations = Organisation + OrganisationInput;
|
|
289
|
-
exports.Organisations = Organisations;
|
|
290
|
-
const AllOrganisationFields = _AllOrganisationFields;
|
|
291
|
-
exports.AllOrganisationFields = AllOrganisationFields;
|
|
292
|
-
const All = Tasks + Users + Forms + Organisations;
|
|
293
|
-
exports.All = All;
|
|
294
|
-
var _default = All;
|
|
295
|
-
exports.default = _default;
|
|
250
|
+
exports.Task = _TimeStamps + _Event + _Events + _TemplateInfo + _Task + _TaskIdentifiers;
|
|
251
|
+
exports.TaskInput = _TimeStampsInput + _EventInput + _EventsInput + _TemplateInfoInput + _TaskInput + _TaskIdentifiersInput;
|
|
252
|
+
exports.TaskFilter = _TaskFilter;
|
|
253
|
+
exports.Tasks = exports.Task + exports.TaskInput + exports.TaskFilter;
|
|
254
|
+
exports.AllTaskFields = _AllTaskFields;
|
|
255
|
+
exports.User = _Roles + _User;
|
|
256
|
+
exports.UserInput = _RolesInput + _UserInput;
|
|
257
|
+
exports.Users = exports.User + exports.UserInput;
|
|
258
|
+
exports.AllUserFields = _AllUserFields;
|
|
259
|
+
exports.AllRolesFields = _AllRolesFields;
|
|
260
|
+
exports.Form = _Form;
|
|
261
|
+
exports.FormInput = _FormInput;
|
|
262
|
+
exports.FormFilter = _FormFilter;
|
|
263
|
+
exports.Forms = exports.Form + exports.FormInput + exports.FormFilter;
|
|
264
|
+
exports.AllFormFields = _AllFormFields;
|
|
265
|
+
exports.Organisation = _Organisation;
|
|
266
|
+
exports.OrganisationInput = _OrganisationInput;
|
|
267
|
+
exports.Organisations = exports.Organisation + exports.OrganisationInput;
|
|
268
|
+
exports.AllOrganisationFields = _AllOrganisationFields;
|
|
269
|
+
exports.All = exports.Tasks + exports.Users + exports.Forms + exports.Organisations;
|
|
270
|
+
exports.default = exports.All;
|
|
271
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG;;;;;;;;CAQnB,CAAC;AACF,MAAM,gBAAgB,GAAG;;;;;;;;CAQxB,CAAC;AAEF,MAAM,MAAM,GAAG;;;;;;;;;;;CAWd,CAAA;AAED,MAAM,WAAW,GAAG;;;;;;;;;;;CAWnB,CAAC;AAEF,MAAM,OAAO,GAAG;;;;;;;CAOf,CAAC;AAEF,MAAM,YAAY,GAAG;;;;;;;CAOpB,CAAC;AAEF,MAAM,aAAa,GAAG;;;;;;;CAOrB,CAAC;AAEF,MAAM,kBAAkB,GAAG;;;;;;;CAO1B,CAAC;AAEF,MAAM,gBAAgB,GAAG;;;;;CAKxB,CAAC;AAEF,MAAM,qBAAqB,GAAG;;;;;CAK7B,CAAC;AAEF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;CAkBb,CAAC;AAEF,MAAM,eAAe,GAAG,gFAAgF,CAAC;AAEzG,MAAM,cAAc,GAAG,iJAAiJ,eAAe,aAAa,eAAe,eAAe,eAAe,eAAe,eAAe,uGAAuG,CAAC;AAEvX,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlB,CAAC;AAEF,MAAM,WAAW,GAAG;;;;;;;;CAQnB,CAAC;AAEF,MAAM,MAAM,GAAG;;;;;;;;;CASd,CAAC;AAEF,MAAM,WAAW,GAAG;;;;;;CAMnB,CAAC;AAEF,MAAM,KAAK,GAAG;;;;;;;;;;CAUb,CAAC;AAEF,MAAM,UAAU,GAAG;;;;;;;;;CASlB,CAAC;AAEF,MAAM,eAAe,GAAG,6CAA6C,CAAC;AACtE,MAAM,cAAc,GAAG,yCAAyC,eAAe,gBAAgB,CAAC;AAEhG,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;;CAmBlB,CAAC;AAEF,MAAM,WAAW,GAAG;;;;CAInB,CAAC;AAEF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;CAmBb,CAAC;AAEF,MAAM,cAAc,GAAG,sFAAsF,CAAC;AAE9G,MAAM,kBAAkB,GAAG;;;;;;CAM1B,CAAC;AAEF,MAAM,aAAa,GAAG;;;;;;CAMrB,CAAC;AAEF,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AAExC,QAAA,IAAI,GAAG,WAAW,GAAI,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,KAAK,GAAG,gBAAgB,CAAC;AAClF,QAAA,SAAS,GAAG,gBAAgB,GAAG,WAAW,GAAG,YAAY,GAAG,kBAAkB,GAAG,UAAU,GAAG,qBAAqB,CAAC;AACpH,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,KAAK,GAAG,YAAI,GAAG,iBAAS,GAAG,kBAAU,CAAC;AACtC,QAAA,aAAa,GAAG,cAAc,CAAC;AAE/B,QAAA,IAAI,GAAG,MAAM,GAAG,KAAK,CAAC;AACtB,QAAA,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;AACrC,QAAA,KAAK,GAAG,YAAI,GAAG,iBAAS,CAAC;AACzB,QAAA,aAAa,GAAG,cAAc,CAAC;AAC/B,QAAA,cAAc,GAAG,eAAe,CAAC;AAEjC,QAAA,IAAI,GAAG,KAAK,CAAC;AACb,QAAA,SAAS,GAAG,UAAU,CAAC;AACvB,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,KAAK,GAAG,YAAI,GAAG,iBAAS,GAAG,kBAAU,CAAC;AACtC,QAAA,aAAa,GAAG,cAAc,CAAC;AAE/B,QAAA,YAAY,GAAG,aAAa,CAAC;AAC7B,QAAA,iBAAiB,GAAG,kBAAkB,CAAC;AACvC,QAAA,aAAa,GAAG,oBAAY,GAAG,yBAAiB,CAAC;AACjD,QAAA,qBAAqB,GAAG,sBAAsB,CAAC;AAE/C,QAAA,GAAG,GAAG,aAAK,GAAG,aAAK,GAAG,aAAK,GAAG,qBAAa,CAAC;AACzD,kBAAe,WAAG,CAAC"}
|
package/index.ts
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
const _TimeStamps = `
|
|
2
|
+
type TimeStamps {
|
|
3
|
+
started: String,
|
|
4
|
+
updated: String,
|
|
5
|
+
submitted: String,
|
|
6
|
+
processed: String,
|
|
7
|
+
upgraded: String
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
const _TimeStampsInput = `
|
|
11
|
+
input TimeStampsInput {
|
|
12
|
+
started: String,
|
|
13
|
+
updated: String,
|
|
14
|
+
submitted: String,
|
|
15
|
+
processed: String,
|
|
16
|
+
upgraded: String
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
const _Event = `
|
|
21
|
+
type Event {
|
|
22
|
+
appVersion: String,
|
|
23
|
+
at: Float,
|
|
24
|
+
atForHumans: String,
|
|
25
|
+
device: String,
|
|
26
|
+
deviceModel: String,
|
|
27
|
+
osVersion: String,
|
|
28
|
+
user: String,
|
|
29
|
+
userEmail: String
|
|
30
|
+
}
|
|
31
|
+
`
|
|
32
|
+
|
|
33
|
+
const _EventInput = `
|
|
34
|
+
input EventInput {
|
|
35
|
+
appVersion: String,
|
|
36
|
+
at: Float,
|
|
37
|
+
atForHumans: String,
|
|
38
|
+
device: String,
|
|
39
|
+
deviceModel: String,
|
|
40
|
+
osVersion: String,
|
|
41
|
+
user: String,
|
|
42
|
+
userEmail: String
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
|
|
46
|
+
const _Events = `
|
|
47
|
+
type Events {
|
|
48
|
+
started: Event,
|
|
49
|
+
updated: Event,
|
|
50
|
+
submitted: Event,
|
|
51
|
+
discarded: Event,
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
const _EventsInput = `
|
|
56
|
+
input EventsInput {
|
|
57
|
+
started: EventInput,
|
|
58
|
+
updated: EventInput,
|
|
59
|
+
submitted: EventInput,
|
|
60
|
+
discarded: EventInput,
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
const _TemplateInfo = `
|
|
65
|
+
type TemplateInfo {
|
|
66
|
+
name: String,
|
|
67
|
+
type: String,
|
|
68
|
+
id: String
|
|
69
|
+
version: String
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
const _TemplateInfoInput = `
|
|
74
|
+
input TemplateInfoInput {
|
|
75
|
+
name: String,
|
|
76
|
+
type: String,
|
|
77
|
+
id: String
|
|
78
|
+
version: String
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
81
|
+
|
|
82
|
+
const _TaskIdentifiers = `
|
|
83
|
+
type TaskIdentifiers {
|
|
84
|
+
primary: String
|
|
85
|
+
secondary: String
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
88
|
+
|
|
89
|
+
const _TaskIdentifiersInput = `
|
|
90
|
+
input TaskIdentifiersInput {
|
|
91
|
+
primary: String
|
|
92
|
+
secondary: String
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
|
|
96
|
+
const _Task = `
|
|
97
|
+
type Task {
|
|
98
|
+
id: ID,
|
|
99
|
+
name: String
|
|
100
|
+
definition: String
|
|
101
|
+
user: ID
|
|
102
|
+
userEmail: String
|
|
103
|
+
form: ID
|
|
104
|
+
organisation: ID
|
|
105
|
+
timestamps: TimeStamps
|
|
106
|
+
events: Events
|
|
107
|
+
template: TemplateInfo
|
|
108
|
+
identifiers: TaskIdentifiers
|
|
109
|
+
status: String
|
|
110
|
+
fails: [String]
|
|
111
|
+
reportUrl: String
|
|
112
|
+
data: String
|
|
113
|
+
}
|
|
114
|
+
`;
|
|
115
|
+
|
|
116
|
+
const _AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
|
|
117
|
+
|
|
118
|
+
const _AllTaskFields = `{id, name, definition, user, userEmail, form, id, organisation, timestamps {started, updated, submitted, processed, upgraded} events {started ${_AllEventFields}, updated ${_AllEventFields}, submitted ${_AllEventFields}, discarded ${_AllEventFields}} , template { type, id, version}, identifiers { primary, secondary}, status, fails, reportUrl, data}`;
|
|
119
|
+
|
|
120
|
+
const _TaskInput = `
|
|
121
|
+
input TaskInput {
|
|
122
|
+
# The name of the task. TODO does this actually exist?
|
|
123
|
+
name: String,
|
|
124
|
+
|
|
125
|
+
# A short description of the task
|
|
126
|
+
description: String
|
|
127
|
+
|
|
128
|
+
# The definition of the task
|
|
129
|
+
definition: String!,
|
|
130
|
+
|
|
131
|
+
# The id of the user who submitted the task TODO is this right?
|
|
132
|
+
user: ID
|
|
133
|
+
|
|
134
|
+
# The email of the user who submitted the task
|
|
135
|
+
userEmail: String,
|
|
136
|
+
|
|
137
|
+
form: ID
|
|
138
|
+
id: ID
|
|
139
|
+
organisation: ID
|
|
140
|
+
status: String
|
|
141
|
+
fails: [String]
|
|
142
|
+
reportUrl: String
|
|
143
|
+
timestamps: TimeStampsInput
|
|
144
|
+
events: EventsInput
|
|
145
|
+
template: TemplateInfoInput
|
|
146
|
+
identifiers: TaskIdentifiersInput
|
|
147
|
+
data: String
|
|
148
|
+
}
|
|
149
|
+
`;
|
|
150
|
+
|
|
151
|
+
const _TaskFilter = `
|
|
152
|
+
input TaskFilter {
|
|
153
|
+
users: [ID]
|
|
154
|
+
userEmails: [String]
|
|
155
|
+
forms: [ID]
|
|
156
|
+
after: String
|
|
157
|
+
before: String
|
|
158
|
+
},
|
|
159
|
+
`;
|
|
160
|
+
|
|
161
|
+
const _Roles = `
|
|
162
|
+
type Roles {
|
|
163
|
+
user: Boolean
|
|
164
|
+
admin: Boolean
|
|
165
|
+
api: Boolean
|
|
166
|
+
uber: Boolean
|
|
167
|
+
super: Boolean
|
|
168
|
+
legacyPush: Boolean
|
|
169
|
+
}
|
|
170
|
+
`;
|
|
171
|
+
|
|
172
|
+
const _RolesInput = `
|
|
173
|
+
input RolesInput {
|
|
174
|
+
user: Boolean
|
|
175
|
+
admin: Boolean
|
|
176
|
+
api: Boolean
|
|
177
|
+
}
|
|
178
|
+
`;
|
|
179
|
+
|
|
180
|
+
const _User = `
|
|
181
|
+
type User {
|
|
182
|
+
id: ID
|
|
183
|
+
organisation: ID
|
|
184
|
+
firebaseId: ID
|
|
185
|
+
name: String
|
|
186
|
+
email: String
|
|
187
|
+
roles: Roles
|
|
188
|
+
permissions: String
|
|
189
|
+
}
|
|
190
|
+
`;
|
|
191
|
+
|
|
192
|
+
const _UserInput = `
|
|
193
|
+
input UserInput {
|
|
194
|
+
id: ID
|
|
195
|
+
organisation: ID
|
|
196
|
+
firebaseId: ID
|
|
197
|
+
name: String
|
|
198
|
+
email: String
|
|
199
|
+
roles: RolesInput
|
|
200
|
+
}
|
|
201
|
+
`;
|
|
202
|
+
|
|
203
|
+
const _AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
|
|
204
|
+
const _AllUserFields = `{id, organisation, name, email, roles ${_AllRolesFields}, permissions}`;
|
|
205
|
+
|
|
206
|
+
const _FormInput = `
|
|
207
|
+
|
|
208
|
+
input ParamInput {
|
|
209
|
+
name: String
|
|
210
|
+
value: String
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
input FormInput {
|
|
214
|
+
id: ID
|
|
215
|
+
name: String
|
|
216
|
+
key: String
|
|
217
|
+
definition: String
|
|
218
|
+
version: String
|
|
219
|
+
status: String
|
|
220
|
+
updated: String
|
|
221
|
+
params: [ParamInput]
|
|
222
|
+
resources: String
|
|
223
|
+
body: String
|
|
224
|
+
}
|
|
225
|
+
`;
|
|
226
|
+
|
|
227
|
+
const _FormFilter = `
|
|
228
|
+
input FormFilter {
|
|
229
|
+
status: String
|
|
230
|
+
}
|
|
231
|
+
`;
|
|
232
|
+
|
|
233
|
+
const _Form = `
|
|
234
|
+
|
|
235
|
+
type Param {
|
|
236
|
+
name: String
|
|
237
|
+
value: String
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
type Form {
|
|
241
|
+
id: ID
|
|
242
|
+
name: String
|
|
243
|
+
key: String
|
|
244
|
+
definition: String
|
|
245
|
+
version: String
|
|
246
|
+
status: String
|
|
247
|
+
updated: String
|
|
248
|
+
params: [Param]
|
|
249
|
+
resources: String
|
|
250
|
+
body: String
|
|
251
|
+
}
|
|
252
|
+
`;
|
|
253
|
+
|
|
254
|
+
const _AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
|
|
255
|
+
|
|
256
|
+
const _OrganisationInput = `
|
|
257
|
+
input OrganisationInput {
|
|
258
|
+
id: ID
|
|
259
|
+
name: String
|
|
260
|
+
logoUrl: String
|
|
261
|
+
}
|
|
262
|
+
`;
|
|
263
|
+
|
|
264
|
+
const _Organisation = `
|
|
265
|
+
type Organisation {
|
|
266
|
+
id: ID
|
|
267
|
+
name: String
|
|
268
|
+
logoUrl: String
|
|
269
|
+
}
|
|
270
|
+
`;
|
|
271
|
+
|
|
272
|
+
const _AllOrganisationFields = `{id, name, logoUrl}`;
|
|
273
|
+
|
|
274
|
+
export const Task = _TimeStamps + _Event + _Events + _TemplateInfo + _Task + _TaskIdentifiers;
|
|
275
|
+
export const TaskInput = _TimeStampsInput + _EventInput + _EventsInput + _TemplateInfoInput + _TaskInput + _TaskIdentifiersInput;
|
|
276
|
+
export const TaskFilter = _TaskFilter;
|
|
277
|
+
export const Tasks = Task + TaskInput + TaskFilter;
|
|
278
|
+
export const AllTaskFields = _AllTaskFields;
|
|
279
|
+
|
|
280
|
+
export const User = _Roles + _User;
|
|
281
|
+
export const UserInput = _RolesInput + _UserInput;
|
|
282
|
+
export const Users = User + UserInput;
|
|
283
|
+
export const AllUserFields = _AllUserFields;
|
|
284
|
+
export const AllRolesFields = _AllRolesFields;
|
|
285
|
+
|
|
286
|
+
export const Form = _Form;
|
|
287
|
+
export const FormInput = _FormInput;
|
|
288
|
+
export const FormFilter = _FormFilter;
|
|
289
|
+
export const Forms = Form + FormInput + FormFilter;
|
|
290
|
+
export const AllFormFields = _AllFormFields;
|
|
291
|
+
|
|
292
|
+
export const Organisation = _Organisation;
|
|
293
|
+
export const OrganisationInput = _OrganisationInput;
|
|
294
|
+
export const Organisations = Organisation + OrganisationInput;
|
|
295
|
+
export const AllOrganisationFields = _AllOrganisationFields;
|
|
296
|
+
|
|
297
|
+
export const All = Tasks + Users + Forms + Organisations;
|
|
298
|
+
export default All;
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuffieldtechnologies/rugged-schema-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Graphql schema for rugged data",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "dist/index.js",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"graphql",
|
|
8
8
|
"schema"
|
|
9
9
|
],
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@
|
|
12
|
-
"@
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
11
|
+
"@types/chai": "^4.1.3",
|
|
12
|
+
"@types/mocha": "^5.2.0",
|
|
13
|
+
"chai": "^4.2.0",
|
|
14
|
+
"mocha": "^6.1.3",
|
|
15
|
+
"ts-node": "^6.0.3",
|
|
16
|
+
"tslint": "^5.10.0",
|
|
17
|
+
"typescript": "^3.4.3"
|
|
18
18
|
},
|
|
19
19
|
"author": "Tom Edge",
|
|
20
20
|
"license": "UNLICENSED",
|
|
21
21
|
"scripts": {
|
|
22
|
-
"test": "
|
|
23
|
-
"build": "
|
|
24
|
-
"
|
|
22
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
|
+
"build": "tsc",
|
|
24
|
+
"push": "yarn run build && npm publish"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/tsconfig.json
ADDED