@fluidframework/local-driver 2.0.0-internal.3.0.2 → 2.0.0-internal.3.2.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/.eslintrc.js +19 -22
- package/.mocharc.js +2 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +2 -2
- package/dist/auth.js.map +1 -1
- package/dist/localDeltaStorageService.d.ts.map +1 -1
- package/dist/localDeltaStorageService.js.map +1 -1
- package/dist/localDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/localDocumentDeltaConnection.js.map +1 -1
- package/dist/localDocumentService.d.ts.map +1 -1
- package/dist/localDocumentService.js.map +1 -1
- package/dist/localDocumentServiceFactory.d.ts.map +1 -1
- package/dist/localDocumentServiceFactory.js +3 -2
- package/dist/localDocumentServiceFactory.js.map +1 -1
- package/dist/localDocumentStorageService.d.ts.map +1 -1
- package/dist/localDocumentStorageService.js +4 -3
- package/dist/localDocumentStorageService.js.map +1 -1
- package/dist/localResolver.d.ts.map +1 -1
- package/dist/localResolver.js.map +1 -1
- package/dist/localSessionStorageDb.d.ts.map +1 -1
- package/dist/localSessionStorageDb.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/package.json +37 -36
- package/prettier.config.cjs +1 -1
- package/src/auth.ts +35 -29
- package/src/localDeltaStorageService.ts +26 -29
- package/src/localDocumentDeltaConnection.ts +89 -85
- package/src/localDocumentService.ts +106 -98
- package/src/localDocumentServiceFactory.ts +126 -117
- package/src/localDocumentStorageService.ts +17 -10
- package/src/localResolver.ts +55 -55
- package/src/localSessionStorageDb.ts +267 -261
- package/src/packageVersion.ts +1 -1
- package/tsconfig.json +9 -13
|
@@ -12,299 +12,305 @@ import { v4 as uuid } from "uuid";
|
|
|
12
12
|
* Functions include database operations such as queries, insertion and update.
|
|
13
13
|
*/
|
|
14
14
|
class LocalSessionStorageCollection<T> implements ICollection<T> {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @param collectionName - data type of the collection, e.g. blobs, deltas, trees, etc.
|
|
17
|
+
*/
|
|
18
|
+
constructor(private readonly collectionName: string) {}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
public aggregate(pipeline: any, options?: any): any {
|
|
21
|
+
throw new Error("Method Not Implemented");
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
public async updateMany(filter: any, set: any, addToSet: any): Promise<void> {
|
|
25
|
+
throw new Error("Method Not Implemented");
|
|
26
|
+
}
|
|
27
|
+
public async distinct(key: any, query: any): Promise<any> {
|
|
28
|
+
throw new Error("Method Not Implemented");
|
|
29
|
+
}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
31
|
+
/**
|
|
32
|
+
* {@inheritDoc @fluidframework/server-services-core#ICollection.find}
|
|
33
|
+
*/
|
|
34
|
+
/*
|
|
35
|
+
* Each query key consists of several keys separated by '.' e.g: "operation.sequenceNumber".
|
|
36
|
+
* The hierarchical syntax allows finding nested key patterns.
|
|
37
|
+
*/
|
|
38
|
+
public async find(query: any, sort: any): Promise<any[]> {
|
|
39
|
+
// split the keys and get the corresponding value
|
|
40
|
+
function getValueByKey(propertyBag, key: string) {
|
|
41
|
+
const keys = key.split(".");
|
|
42
|
+
let value = propertyBag;
|
|
43
|
+
keys.forEach((splitKey) => {
|
|
44
|
+
value = value[splitKey];
|
|
45
|
+
});
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
50
|
+
// getting keys of the query we are trying to find
|
|
51
|
+
const queryKeys = Object.keys(query);
|
|
52
|
+
let filteredCollection = this.getAllInternal();
|
|
53
|
+
queryKeys.forEach((key) => {
|
|
54
|
+
if (!query[key]) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (query[key].$gt > 0 || query[key].$lt > 0) {
|
|
58
|
+
if (query[key].$gt > 0) {
|
|
59
|
+
filteredCollection = filteredCollection.filter(
|
|
60
|
+
(value) => getValueByKey(value, key) > query[key].$gt,
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
if (query[key].$lt > 0) {
|
|
64
|
+
filteredCollection = filteredCollection.filter(
|
|
65
|
+
(value) => getValueByKey(value, key) < query[key].$lt,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
filteredCollection = filteredCollection.filter(
|
|
70
|
+
(value) => getValueByKey(value, key) === query[key],
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
71
74
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
if (sort && Object.keys(sort).length === 1) {
|
|
76
|
+
// eslint-disable-next-line no-inner-declarations
|
|
77
|
+
function compare(a, b) {
|
|
78
|
+
const sortKey = Object.keys(sort)[0];
|
|
79
|
+
return sort[sortKey] === 1
|
|
80
|
+
? getValueByKey(a, sortKey) - getValueByKey(b, sortKey)
|
|
81
|
+
: getValueByKey(b, sortKey) - getValueByKey(a, sortKey);
|
|
82
|
+
}
|
|
80
83
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
filteredCollection = filteredCollection.sort(compare);
|
|
85
|
+
}
|
|
86
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
87
|
+
return filteredCollection;
|
|
88
|
+
}
|
|
86
89
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
/**
|
|
91
|
+
* {@inheritDoc @fluidframework/server-services-core#ICollection.findAll}
|
|
92
|
+
*/
|
|
93
|
+
public async findAll(): Promise<any[]> {
|
|
94
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
95
|
+
return this.getAllInternal();
|
|
96
|
+
}
|
|
94
97
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
/**
|
|
99
|
+
* {@inheritDoc @fluidframework/server-services-core#ICollection.findOne}
|
|
100
|
+
*/
|
|
101
|
+
/*
|
|
102
|
+
* Query is expected to have a member "_id" which is a string used to find value in the database.
|
|
103
|
+
*/
|
|
104
|
+
public async findOne(query: any): Promise<any> {
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
106
|
+
return this.findOneInternal(query);
|
|
107
|
+
}
|
|
105
108
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
109
|
+
/**
|
|
110
|
+
* {@inheritDoc @fluidframework/server-services-core#ICollection.update}
|
|
111
|
+
*/
|
|
112
|
+
/*
|
|
113
|
+
* Query is expected to have a member "_id" which is a string used to find value in the database.
|
|
114
|
+
*/
|
|
115
|
+
public async update(query: any, set: any, addToSet: any): Promise<void> {
|
|
116
|
+
const value = this.findOneInternal(query);
|
|
117
|
+
if (!value) {
|
|
118
|
+
throw new Error("Not found");
|
|
119
|
+
} else {
|
|
120
|
+
for (const key of Object.keys(set)) {
|
|
121
|
+
value[key] = set[key];
|
|
122
|
+
}
|
|
123
|
+
this.insertInternal(value);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
123
126
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
127
|
+
/**
|
|
128
|
+
* {@inheritDoc @fluidframework/server-services-core#ICollection.upsert}
|
|
129
|
+
*/
|
|
130
|
+
/*
|
|
131
|
+
* Query is expected to have a member "_id" which is a string used to find value in the database.
|
|
132
|
+
*/
|
|
133
|
+
public async upsert(query: any, set: any, addToSet: any): Promise<void> {
|
|
134
|
+
const value = this.findOneInternal(query);
|
|
135
|
+
if (!value) {
|
|
136
|
+
this.insertInternal(set);
|
|
137
|
+
} else {
|
|
138
|
+
for (const key of Object.keys(set)) {
|
|
139
|
+
value[key] = set[key];
|
|
140
|
+
}
|
|
141
|
+
this.insertInternal(value);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
141
144
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
145
|
+
/**
|
|
146
|
+
* {@inheritDoc @fluidframework/server-services-core#ICollection.insertOne}
|
|
147
|
+
*/
|
|
148
|
+
/*
|
|
149
|
+
* Value is expected to have a member "_id" which is a string used to search in the database.
|
|
150
|
+
*/
|
|
151
|
+
public async insertOne(value: any): Promise<any> {
|
|
152
|
+
const presentVal = this.findOneInternal(value);
|
|
153
|
+
// Only raise error when the object is present and the value is not equal.
|
|
154
|
+
if (presentVal) {
|
|
155
|
+
if (JSON.stringify(presentVal) === JSON.stringify(value)) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
throw new Error("Existing Object!!");
|
|
159
|
+
}
|
|
157
160
|
|
|
158
|
-
|
|
159
|
-
|
|
161
|
+
return this.insertInternal(value);
|
|
162
|
+
}
|
|
160
163
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
164
|
+
/**
|
|
165
|
+
* {@inheritDoc @fluidframework/server-services-core#ICollection.findOrCreate}
|
|
166
|
+
*/
|
|
167
|
+
/*
|
|
168
|
+
* Value and query are expected to have a member "_id" which is a string used to search or insert in the database.
|
|
169
|
+
*/
|
|
170
|
+
public async findOrCreate(query: any, value: any): Promise<{ value: any; existing: boolean }> {
|
|
171
|
+
const existing = this.findOneInternal(query);
|
|
172
|
+
if (existing) {
|
|
173
|
+
return { value: existing, existing: true };
|
|
174
|
+
}
|
|
175
|
+
this.insertInternal(value);
|
|
176
|
+
return { value, existing: false };
|
|
177
|
+
}
|
|
175
178
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
179
|
+
/**
|
|
180
|
+
* {@inheritDoc @fluidframework/server-services-core#ICollection.insertMany}
|
|
181
|
+
*/
|
|
182
|
+
/*
|
|
183
|
+
* Each element in values is expected to have a member "_id" which is a string used to insert in the database.
|
|
184
|
+
*/
|
|
185
|
+
public async insertMany(values: any[], ordered: boolean): Promise<void> {
|
|
186
|
+
this.insertInternal(...values);
|
|
187
|
+
}
|
|
185
188
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
/**
|
|
190
|
+
* {@inheritDoc @fluidframework/server-services-core#ICollection.deleteOne}
|
|
191
|
+
*/
|
|
192
|
+
public async deleteOne(query: any): Promise<any> {
|
|
193
|
+
throw new Error("Method not implemented.");
|
|
194
|
+
}
|
|
192
195
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
/**
|
|
197
|
+
* {@inheritDoc @fluidframework/server-services-core#ICollection.deleteMany}
|
|
198
|
+
*/
|
|
199
|
+
public async deleteMany(query: any): Promise<any> {
|
|
200
|
+
throw new Error("Method not implemented.");
|
|
201
|
+
}
|
|
199
202
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
/**
|
|
204
|
+
* {@inheritDoc @fluidframework/server-services-core#ICollection.createIndex}
|
|
205
|
+
*/
|
|
206
|
+
public async createIndex(index: any, unique: boolean): Promise<void> {
|
|
207
|
+
throw new Error("Method not implemented.");
|
|
208
|
+
}
|
|
206
209
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
210
|
+
/**
|
|
211
|
+
* Return all values in the database
|
|
212
|
+
*/
|
|
213
|
+
private getAllInternal(): any[] {
|
|
214
|
+
const values: string[] = [];
|
|
215
|
+
for (let i = 0; i < sessionStorage.length; i++) {
|
|
216
|
+
const key = sessionStorage.key(i);
|
|
217
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
218
|
+
if (key!.startsWith(this.collectionName)) {
|
|
219
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
220
|
+
values.push(JSON.parse(sessionStorage.getItem(key!)!));
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return values;
|
|
224
|
+
}
|
|
222
225
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Inserts values into the session storge.
|
|
228
|
+
* Values are expected to have a member "_id" which is a unique id, otherwise will be assigned one
|
|
229
|
+
*
|
|
230
|
+
* @param values - data to insert to the database
|
|
231
|
+
*/
|
|
232
|
+
private insertInternal(...values: any[]) {
|
|
233
|
+
for (const value of values) {
|
|
234
|
+
if (value) {
|
|
235
|
+
if (!value._id) {
|
|
236
|
+
value._id = uuid();
|
|
237
|
+
}
|
|
238
|
+
sessionStorage.setItem(
|
|
239
|
+
`${this.collectionName}-${value._id}`,
|
|
240
|
+
JSON.stringify(value),
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
239
245
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
246
|
+
/**
|
|
247
|
+
* Finds the query in session storage and returns its value.
|
|
248
|
+
* Returns null if query is not found.
|
|
249
|
+
* Query is expected to have a member "_id" which is a unique id.
|
|
250
|
+
*
|
|
251
|
+
* @param query - what to find in the database
|
|
252
|
+
*/
|
|
253
|
+
private findOneInternal(query: any): any {
|
|
254
|
+
if (query._id) {
|
|
255
|
+
const json = sessionStorage.getItem(`${this.collectionName}-${query._id}`);
|
|
256
|
+
if (json) {
|
|
257
|
+
return JSON.parse(json);
|
|
258
|
+
}
|
|
259
|
+
} else {
|
|
260
|
+
const queryKeys = Object.keys(query);
|
|
261
|
+
for (let i = 0; i < sessionStorage.length; i++) {
|
|
262
|
+
const ssKey = sessionStorage.key(i);
|
|
263
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
264
|
+
if (!ssKey!.startsWith(this.collectionName)) {
|
|
265
|
+
continue;
|
|
266
|
+
}
|
|
267
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
268
|
+
const value = JSON.parse(sessionStorage.getItem(ssKey!)!);
|
|
269
|
+
let foundMismatch = false;
|
|
270
|
+
for (const qk of queryKeys) {
|
|
271
|
+
if (value[qk] !== query[qk]) {
|
|
272
|
+
foundMismatch = true;
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
270
276
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
277
|
+
if (!foundMismatch) {
|
|
278
|
+
return value;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return null;
|
|
283
|
+
}
|
|
278
284
|
}
|
|
279
285
|
|
|
280
286
|
/**
|
|
281
287
|
* A database for testing that stores data in the browsers session storage
|
|
282
288
|
*/
|
|
283
289
|
class LocalSessionStorageDb extends EventEmitter implements IDb {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
private readonly collections = new Map<string, LocalSessionStorageCollection<any>>();
|
|
291
|
+
public async close(): Promise<void> {}
|
|
292
|
+
public collection<T>(name: string): ICollection<T> {
|
|
293
|
+
if (!this.collections.has(name)) {
|
|
294
|
+
this.collections.set(name, new LocalSessionStorageCollection<T>(name));
|
|
295
|
+
}
|
|
296
|
+
return this.collections.get(name) as LocalSessionStorageCollection<T>;
|
|
297
|
+
}
|
|
292
298
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
299
|
+
public async dropCollection(name: string): Promise<boolean> {
|
|
300
|
+
if (!this.collections.has(name)) {
|
|
301
|
+
return true;
|
|
302
|
+
}
|
|
303
|
+
this.collections.delete(name);
|
|
304
|
+
return true;
|
|
305
|
+
}
|
|
300
306
|
}
|
|
301
307
|
|
|
302
308
|
/**
|
|
303
309
|
* A database factory for testing that stores data in the browsers session storage
|
|
304
310
|
*/
|
|
305
311
|
export class LocalSessionStorageDbFactory implements ITestDbFactory {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
312
|
+
public readonly testDatabase: IDb = new LocalSessionStorageDb();
|
|
313
|
+
public async connect(): Promise<IDb> {
|
|
314
|
+
return this.testDatabase;
|
|
315
|
+
}
|
|
310
316
|
}
|
package/src/packageVersion.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"include": [
|
|
12
|
-
"src/**/*"
|
|
13
|
-
]
|
|
14
|
-
}
|
|
2
|
+
"extends": "@fluidframework/build-common/ts-common-config.json",
|
|
3
|
+
"exclude": ["src/test/**/*"],
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"composite": true,
|
|
8
|
+
},
|
|
9
|
+
"include": ["src/**/*"],
|
|
10
|
+
}
|