@fluid-tools/fetch-tool 0.53.0-46105
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 +17 -0
- package/LICENSE +21 -0
- package/README.md +114 -0
- package/bin/fluid-fetch +2 -0
- package/dist/fluidAnalyzeMessages.d.ts +8 -0
- package/dist/fluidAnalyzeMessages.d.ts.map +1 -0
- package/dist/fluidAnalyzeMessages.js +598 -0
- package/dist/fluidAnalyzeMessages.js.map +1 -0
- package/dist/fluidFetch.d.ts +6 -0
- package/dist/fluidFetch.d.ts.map +1 -0
- package/dist/fluidFetch.js +119 -0
- package/dist/fluidFetch.js.map +1 -0
- package/dist/fluidFetchArgs.d.ts +35 -0
- package/dist/fluidFetchArgs.d.ts.map +1 -0
- package/dist/fluidFetchArgs.js +206 -0
- package/dist/fluidFetchArgs.js.map +1 -0
- package/dist/fluidFetchInit.d.ts +9 -0
- package/dist/fluidFetchInit.d.ts.map +1 -0
- package/dist/fluidFetchInit.js +161 -0
- package/dist/fluidFetchInit.js.map +1 -0
- package/dist/fluidFetchMessages.d.ts +7 -0
- package/dist/fluidFetchMessages.d.ts.map +1 -0
- package/dist/fluidFetchMessages.js +264 -0
- package/dist/fluidFetchMessages.js.map +1 -0
- package/dist/fluidFetchSharePoint.d.ts +10 -0
- package/dist/fluidFetchSharePoint.d.ts.map +1 -0
- package/dist/fluidFetchSharePoint.js +95 -0
- package/dist/fluidFetchSharePoint.js.map +1 -0
- package/dist/fluidFetchSnapshot.d.ts +7 -0
- package/dist/fluidFetchSnapshot.d.ts.map +1 -0
- package/dist/fluidFetchSnapshot.js +289 -0
- package/dist/fluidFetchSnapshot.js.map +1 -0
- package/package.json +65 -0
- package/src/fluidAnalyzeMessages.ts +687 -0
- package/src/fluidFetch.ts +123 -0
- package/src/fluidFetchArgs.ts +224 -0
- package/src/fluidFetchInit.ts +168 -0
- package/src/fluidFetchMessages.ts +280 -0
- package/src/fluidFetchSharePoint.ts +141 -0
- package/src/fluidFetchSnapshot.ts +383 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import fs from "fs";
|
|
7
|
+
import util from "util";
|
|
8
|
+
import { assert, bufferToString, stringToBuffer, TelemetryNullLogger } from "@fluidframework/common-utils";
|
|
9
|
+
import {
|
|
10
|
+
IDocumentService,
|
|
11
|
+
IDocumentStorageService,
|
|
12
|
+
} from "@fluidframework/driver-definitions";
|
|
13
|
+
import {
|
|
14
|
+
ISnapshotTree,
|
|
15
|
+
IVersion,
|
|
16
|
+
} from "@fluidframework/protocol-definitions";
|
|
17
|
+
import { BlobAggregationStorage } from "@fluidframework/driver-utils";
|
|
18
|
+
import { formatNumber } from "./fluidAnalyzeMessages";
|
|
19
|
+
import {
|
|
20
|
+
dumpSnapshotStats,
|
|
21
|
+
dumpSnapshotTrees,
|
|
22
|
+
dumpSnapshotVersions,
|
|
23
|
+
paramActualFormatting,
|
|
24
|
+
paramNumSnapshotVersions,
|
|
25
|
+
paramSnapshotVersionIndex,
|
|
26
|
+
paramUnpackAggregatedBlobs,
|
|
27
|
+
} from "./fluidFetchArgs";
|
|
28
|
+
import { latestVersionsId } from "./fluidFetchInit";
|
|
29
|
+
|
|
30
|
+
interface ISnapshotInfo {
|
|
31
|
+
blobCountNew: number;
|
|
32
|
+
blobCount: number;
|
|
33
|
+
size: number;
|
|
34
|
+
sizeNew: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type IFetchedData = IFetchedBlob | IFetchedTree;
|
|
38
|
+
|
|
39
|
+
interface IFetchedBlob {
|
|
40
|
+
treePath: string;
|
|
41
|
+
filename: string;
|
|
42
|
+
blobId: string;
|
|
43
|
+
blob: Promise<ArrayBufferLike | undefined>;
|
|
44
|
+
reused: boolean;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface IFetchedTree {
|
|
48
|
+
treePath: string;
|
|
49
|
+
blobId: string;
|
|
50
|
+
filename: string;
|
|
51
|
+
blob: ArrayBufferLike;
|
|
52
|
+
|
|
53
|
+
reused: false;
|
|
54
|
+
|
|
55
|
+
patched: boolean;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function isFetchedTree(fetchedData: IFetchedData): fetchedData is IFetchedTree {
|
|
59
|
+
return "patched" in fetchedData;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const blobCache = new Map<string, Promise<ArrayBufferLike>>();
|
|
63
|
+
let blobCachePrevious = new Map<string, Promise<ArrayBufferLike>>();
|
|
64
|
+
let blobCacheCurrent = new Map<string, Promise<ArrayBufferLike>>();
|
|
65
|
+
|
|
66
|
+
function fetchBlobs(prefix: string,
|
|
67
|
+
tree: ISnapshotTree,
|
|
68
|
+
storage: IDocumentStorageService,
|
|
69
|
+
blobIdMap: Map<string, number>,
|
|
70
|
+
) {
|
|
71
|
+
const result: IFetchedBlob[] = [];
|
|
72
|
+
for (const item of Object.keys(tree.blobs)) {
|
|
73
|
+
const treePath = `${prefix}${item}`;
|
|
74
|
+
const blobId = tree.blobs[item];
|
|
75
|
+
if (blobId !== null) {
|
|
76
|
+
let reused = true;
|
|
77
|
+
let blob = blobCachePrevious.get(blobId);
|
|
78
|
+
if (!blob) {
|
|
79
|
+
reused = false;
|
|
80
|
+
blob = blobCache.get(blobId);
|
|
81
|
+
if (blob === undefined) {
|
|
82
|
+
blob = storage.readBlob(blobId);
|
|
83
|
+
blobCache.set(blobId, blob);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
blobCacheCurrent.set(blobId, blob);
|
|
87
|
+
|
|
88
|
+
// Use the blobIdMap to assign a number for each unique blob
|
|
89
|
+
// and use it as a prefix for files to avoid case-insensitive fs
|
|
90
|
+
let index = blobIdMap.get(blobId);
|
|
91
|
+
if (!index) {
|
|
92
|
+
index = blobIdMap.size;
|
|
93
|
+
blobIdMap.set(blobId, index);
|
|
94
|
+
}
|
|
95
|
+
const filename = `${index}-${blobId}`;
|
|
96
|
+
result.push({ treePath, blobId, blob, reused, filename });
|
|
97
|
+
|
|
98
|
+
// patch the tree so that we can write it out to reference the file
|
|
99
|
+
tree.blobs[item] = filename;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return result;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function createTreeBlob(tree: ISnapshotTree, prefix: string, patched: boolean): IFetchedTree {
|
|
106
|
+
const id = tree.id ?? "original";
|
|
107
|
+
const blob = stringToBuffer(JSON.stringify(tree),"utf8");
|
|
108
|
+
const filename = patched ? "tree" : `tree-${id}`;
|
|
109
|
+
const treePath = `${prefix}${filename}`;
|
|
110
|
+
return { treePath, blobId: "original tree $id", filename, blob, patched, reused: false };
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
async function fetchBlobsFromSnapshotTree(
|
|
114
|
+
storage: IDocumentStorageService,
|
|
115
|
+
tree: ISnapshotTree,
|
|
116
|
+
prefix: string = "/",
|
|
117
|
+
perCommitBlobIdMap?: Map<string, number>): Promise<IFetchedData[]> {
|
|
118
|
+
assert(Object.keys(tree.commits).length === 0 || (prefix === "/"),
|
|
119
|
+
0x1be /* "Unexpected tree input to fetch" */);
|
|
120
|
+
const commit = !perCommitBlobIdMap;
|
|
121
|
+
if (commit && dumpSnapshotTrees) {
|
|
122
|
+
console.log(tree);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (prefix === "/") {
|
|
126
|
+
blobCachePrevious = blobCacheCurrent;
|
|
127
|
+
blobCacheCurrent = new Map<string, Promise<ArrayBufferLike>>();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Create the tree info before fetching blobs (which will modify it)
|
|
131
|
+
let commitBlob: IFetchedTree | undefined;
|
|
132
|
+
if (commit) {
|
|
133
|
+
commitBlob = createTreeBlob(tree, prefix, false);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const blobIdMap = perCommitBlobIdMap ?? new Map<string, number>();
|
|
137
|
+
let result: IFetchedData[] = fetchBlobs(prefix, tree, storage, blobIdMap);
|
|
138
|
+
|
|
139
|
+
for (const dataStore of Object.keys(tree.commits)) {
|
|
140
|
+
const dataStoreVersions = await storage.getVersions(tree.commits[dataStore], 1);
|
|
141
|
+
if (dataStoreVersions.length !== 1) {
|
|
142
|
+
console.error(`ERROR: Unable to get versions for ${dataStore}`);
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
const dataStoreSnapShotTree = await reportErrors(
|
|
146
|
+
`getSnapshotTree ${dataStoreVersions[0].id}`,
|
|
147
|
+
storage.getSnapshotTree(dataStoreVersions[0]));
|
|
148
|
+
if (dataStoreSnapShotTree === null) {
|
|
149
|
+
// eslint-disable-next-line max-len
|
|
150
|
+
console.error(`No data store tree for data store = ${dataStore}, path = ${prefix}, version = ${dataStoreVersions[0].id}`);
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
assert(dataStoreSnapShotTree.id === undefined || dataStoreSnapShotTree.id === tree.commits[dataStore],
|
|
154
|
+
0x1bf /* `Unexpected id for tree: ${dataStoreSnapShotTree.id}` */);
|
|
155
|
+
assert(tree.commits[dataStore] === dataStoreVersions[0].id,
|
|
156
|
+
0x1c0 /* "Mismatch between commit id and fetched tree id" */);
|
|
157
|
+
const dataStoreBlobs = await fetchBlobsFromSnapshotTree(
|
|
158
|
+
storage,
|
|
159
|
+
dataStoreSnapShotTree,
|
|
160
|
+
`${prefix}[${dataStore}]/`);
|
|
161
|
+
result = result.concat(dataStoreBlobs);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
for (const subtreeId of Object.keys(tree.trees)) {
|
|
165
|
+
const subtree = tree.trees[subtreeId];
|
|
166
|
+
assert(Object.keys(subtree.commits).length === 0, 0x1c1 /* "Unexpected subtree properties" */);
|
|
167
|
+
const dataStoreBlobs = await fetchBlobsFromSnapshotTree(
|
|
168
|
+
storage,
|
|
169
|
+
subtree,
|
|
170
|
+
`${prefix}${subtreeId}/`, blobIdMap);
|
|
171
|
+
result = result.concat(dataStoreBlobs);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (commitBlob) {
|
|
175
|
+
result.push(commitBlob);
|
|
176
|
+
result.push(createTreeBlob(tree, prefix, true));
|
|
177
|
+
}
|
|
178
|
+
return result;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function getDumpFetchedData(fetchedData: IFetchedData[]) {
|
|
182
|
+
const sorted = fetchedData.sort((a, b) => a.treePath.localeCompare(b.treePath));
|
|
183
|
+
return sorted.filter((item) => !isFetchedTree(item) || !item.patched);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
async function dumpSnapshotTreeVerbose(name: string, fetchedData: IFetchedData[]) {
|
|
187
|
+
let size = 0;
|
|
188
|
+
const sorted = getDumpFetchedData(fetchedData);
|
|
189
|
+
|
|
190
|
+
let nameLength = 10;
|
|
191
|
+
for (const item of sorted) {
|
|
192
|
+
nameLength = Math.max(nameLength, item.treePath.length);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
console.log("");
|
|
196
|
+
console.log(`${"Blob Path".padEnd(nameLength)} | Reused | Bytes`);
|
|
197
|
+
console.log("-".repeat(nameLength + 26));
|
|
198
|
+
for (const item of sorted) {
|
|
199
|
+
const buffer = await item.blob;
|
|
200
|
+
if (buffer === undefined) {
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
const blob = bufferToString(buffer,"utf8");
|
|
204
|
+
// eslint-disable-next-line max-len
|
|
205
|
+
console.log(`${item.treePath.padEnd(nameLength)} | ${item.reused ? "X" : " "} | ${formatNumber(blob.length).padStart(10)}`);
|
|
206
|
+
size += blob.length;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
console.log("-".repeat(nameLength + 26));
|
|
210
|
+
console.log(`${"Total snapshot size".padEnd(nameLength)} | | ${formatNumber(size).padStart(10)}`);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
async function dumpSnapshotTree(name: string, fetchedData: IFetchedData[]): Promise<ISnapshotInfo> {
|
|
214
|
+
let size = 0;
|
|
215
|
+
let sizeNew = 0;
|
|
216
|
+
let blobCountNew = 0;
|
|
217
|
+
const sorted = getDumpFetchedData(fetchedData);
|
|
218
|
+
|
|
219
|
+
for (const item of sorted) {
|
|
220
|
+
const buffer = await item.blob;
|
|
221
|
+
if (buffer === undefined) {
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
const blob = bufferToString(buffer, "utf8");
|
|
225
|
+
if (!item.reused) {
|
|
226
|
+
sizeNew += blob.length;
|
|
227
|
+
blobCountNew++;
|
|
228
|
+
}
|
|
229
|
+
size += blob.length;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
return { blobCountNew, blobCount: sorted.length, size, sizeNew };
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
async function saveSnapshot(name: string, fetchedData: IFetchedData[], saveDir: string) {
|
|
236
|
+
const outDir = `${saveDir}/${name}/`;
|
|
237
|
+
const mkdir = util.promisify(fs.mkdir);
|
|
238
|
+
|
|
239
|
+
await mkdir(`${outDir}/decoded`, { recursive: true });
|
|
240
|
+
await Promise.all(fetchedData.map(async (item) => {
|
|
241
|
+
const buffer = await item.blob;
|
|
242
|
+
if (buffer === undefined) {
|
|
243
|
+
console.error(`ERROR: Unable to get data for blob ${item.blobId}`);
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (!isFetchedTree(item)) {
|
|
248
|
+
// Just write the data as is.
|
|
249
|
+
fs.writeFileSync(`${outDir}/${item.filename}`, Buffer.from(buffer));
|
|
250
|
+
|
|
251
|
+
// we assume that the buffer is utf8 here, which currently is true for
|
|
252
|
+
// all of our snapshot blobs. It doesn't necessary be true in the future
|
|
253
|
+
let decoded = bufferToString(buffer,"utf8");
|
|
254
|
+
try {
|
|
255
|
+
if (!paramActualFormatting) {
|
|
256
|
+
decoded = JSON.stringify(JSON.parse(decoded), undefined, 2);
|
|
257
|
+
}
|
|
258
|
+
} catch (e) {
|
|
259
|
+
}
|
|
260
|
+
fs.writeFileSync(
|
|
261
|
+
`${outDir}/decoded/${item.filename}.json`, decoded);
|
|
262
|
+
} else {
|
|
263
|
+
// Write out same data for tree decoded or not, except for formatting
|
|
264
|
+
const treeString = bufferToString(buffer,"utf8");
|
|
265
|
+
fs.writeFileSync(`${outDir}/${item.filename}.json`, treeString);
|
|
266
|
+
fs.writeFileSync(`${outDir}/decoded/${item.filename}.json`,
|
|
267
|
+
paramActualFormatting ? treeString : JSON.stringify(JSON.parse(treeString), undefined, 2));
|
|
268
|
+
}
|
|
269
|
+
}));
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
async function fetchBlobsFromVersion(storage: IDocumentStorageService, version: IVersion) {
|
|
273
|
+
const tree = await reportErrors(`getSnapshotTree ${version.id}`, storage.getSnapshotTree(version));
|
|
274
|
+
if (!tree) {
|
|
275
|
+
return Promise.reject(new Error("Failed to load snapshot tree"));
|
|
276
|
+
}
|
|
277
|
+
return fetchBlobsFromSnapshotTree(storage, tree);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
async function reportErrors<T>(message: string, res: Promise<T>) {
|
|
281
|
+
try {
|
|
282
|
+
return await res;
|
|
283
|
+
} catch (error) {
|
|
284
|
+
console.error(`Error calling ${message}`);
|
|
285
|
+
throw error;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export async function fluidFetchSnapshot(
|
|
290
|
+
documentService?: IDocumentService,
|
|
291
|
+
saveDir?: string,
|
|
292
|
+
) {
|
|
293
|
+
if (!dumpSnapshotStats && !dumpSnapshotTrees && !dumpSnapshotVersions && saveDir === undefined) {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// --local mode - do not connect to storage.
|
|
298
|
+
// For now, bail out early.
|
|
299
|
+
// In future, separate download from analyzes parts and allow offline analyzes
|
|
300
|
+
if (!documentService) {
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
console.log("\n");
|
|
305
|
+
|
|
306
|
+
let storage = await documentService.connectToStorage();
|
|
307
|
+
if (paramUnpackAggregatedBlobs) {
|
|
308
|
+
storage = BlobAggregationStorage.wrap(storage, new TelemetryNullLogger(), false /* allowPacking */);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
let version: IVersion | undefined;
|
|
312
|
+
const versions = await reportErrors(
|
|
313
|
+
`getVersions ${latestVersionsId}`,
|
|
314
|
+
storage.getVersions(latestVersionsId, paramNumSnapshotVersions));
|
|
315
|
+
if (dumpSnapshotVersions) {
|
|
316
|
+
console.log("Snapshot versions");
|
|
317
|
+
console.log(versions);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
let blobsToDump: IFetchedData[] | undefined;
|
|
321
|
+
if (paramSnapshotVersionIndex !== undefined) {
|
|
322
|
+
version = versions[paramSnapshotVersionIndex];
|
|
323
|
+
if (version === undefined) {
|
|
324
|
+
console.log(`There are only ${versions.length} snapshots, --snapshotVersionIndex is too large`);
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
if (saveDir !== undefined) {
|
|
328
|
+
blobsToDump = await fetchBlobsFromVersion(storage, version);
|
|
329
|
+
const name = version.id;
|
|
330
|
+
console.log(`Saving snapshot ${name}`);
|
|
331
|
+
await saveSnapshot(name, blobsToDump, saveDir);
|
|
332
|
+
}
|
|
333
|
+
} else {
|
|
334
|
+
version = versions[0];
|
|
335
|
+
if (saveDir !== undefined && versions.length > 0) {
|
|
336
|
+
console.log(" Name | Date | Size | New Size | Blobs | New Blobs");
|
|
337
|
+
console.log("-".repeat(86));
|
|
338
|
+
|
|
339
|
+
// Go in reverse order, to correctly calculate blob reuse - from oldest to newest snapshots
|
|
340
|
+
for (let i = versions.length - 1; i >= 0; i--) {
|
|
341
|
+
const v = versions[i];
|
|
342
|
+
const blobs = await fetchBlobsFromVersion(storage, v);
|
|
343
|
+
blobsToDump = blobs;
|
|
344
|
+
const name = `${i}-${v.id}`;
|
|
345
|
+
const res = await dumpSnapshotTree(name, blobs);
|
|
346
|
+
|
|
347
|
+
let date = "";
|
|
348
|
+
if (v.date) {
|
|
349
|
+
try {
|
|
350
|
+
date = new Date(v.date).toLocaleString();
|
|
351
|
+
} catch (e) {
|
|
352
|
+
date = v.date.replace("T", " ");
|
|
353
|
+
const index = date.lastIndexOf(".");
|
|
354
|
+
if (index > 0) {
|
|
355
|
+
date = `${date.substr(0, index)} Z`;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
date = date.padStart(23);
|
|
360
|
+
const size = formatNumber(res.size).padStart(10);
|
|
361
|
+
const sizeNew = formatNumber(res.sizeNew).padStart(10);
|
|
362
|
+
const blobCount = formatNumber(res.blobCount).padStart(6);
|
|
363
|
+
const blobCountNew = formatNumber(res.blobCountNew).padStart(9);
|
|
364
|
+
|
|
365
|
+
console.log(`${name.padEnd(15)} | ${date} | ${size} | ${sizeNew} | ${blobCount} | ${blobCountNew}`);
|
|
366
|
+
|
|
367
|
+
await saveSnapshot(name, blobs, saveDir);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (dumpSnapshotStats || dumpSnapshotTrees) {
|
|
373
|
+
if (version === undefined) {
|
|
374
|
+
console.log("No snapshot tree");
|
|
375
|
+
} else {
|
|
376
|
+
if (blobsToDump === undefined) {
|
|
377
|
+
blobsToDump = await fetchBlobsFromVersion(storage, version);
|
|
378
|
+
}
|
|
379
|
+
console.log(`\n\nSnapshot version ${version.id}`);
|
|
380
|
+
await dumpSnapshotTreeVerbose(version.id, blobsToDump);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@fluidframework/build-common/ts-common-config.json",
|
|
3
|
+
"exclude": [
|
|
4
|
+
"dist",
|
|
5
|
+
"node_modules"
|
|
6
|
+
],
|
|
7
|
+
"compilerOptions": {
|
|
8
|
+
"rootDir": "./src",
|
|
9
|
+
"outDir": "./dist",
|
|
10
|
+
"types": [
|
|
11
|
+
"node"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"include": [
|
|
15
|
+
"src/**/*.ts"
|
|
16
|
+
]
|
|
17
|
+
}
|