excellentexport 3.9.7 → 3.9.9
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/.github/workflows/webpack.yml +9 -4
- package/LICENSE.txt +2 -2
- package/README.md +13 -3
- package/dist/excellentexport.d.ts +1 -1
- package/dist/excellentexport.js +1 -1
- package/package.json +45 -58
- package/src/excellentexport.ts +2 -2
- package/src/utils.ts +144 -144
- package/tsconfig.json +17 -17
package/package.json
CHANGED
|
@@ -1,58 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "excellentexport",
|
|
3
|
-
"version": "3.9.
|
|
4
|
-
"description": "Client side JavaScript export to Excel or CSV",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"homepage": "https://jordiburgos.com",
|
|
7
|
-
"author": "Jordi Burgos <jordiburgos@gmail.com>",
|
|
8
|
-
"bugs": "https://github.com/jmaister/excellentexport/issues",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git://github.com/jmaister/excellentexport.git"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"excel",
|
|
15
|
-
"export",
|
|
16
|
-
"csv",
|
|
17
|
-
"javascript",
|
|
18
|
-
"client",
|
|
19
|
-
"side"
|
|
20
|
-
],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"build": "webpack --config webpack.config.js --progress --mode development --watch",
|
|
23
|
-
"prod": "webpack --config webpack.config.js --progress --mode production",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"puppeteer": "22.9.0",
|
|
47
|
-
"ts-jest": "29.1.2",
|
|
48
|
-
"ts-loader": "9.5.1",
|
|
49
|
-
"ts-node": "10.9.2",
|
|
50
|
-
"typescript": "5.4.5",
|
|
51
|
-
"webdriverio": "8.36.1",
|
|
52
|
-
"webpack": "5.91.0",
|
|
53
|
-
"webpack-cli": "5.1.4",
|
|
54
|
-
"webpack-dev-server": "5.0.4",
|
|
55
|
-
"webpack-node-externals": "3.0.0",
|
|
56
|
-
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "excellentexport",
|
|
3
|
+
"version": "3.9.9",
|
|
4
|
+
"description": "Client side JavaScript export to Excel or CSV",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://jordiburgos.com",
|
|
7
|
+
"author": "Jordi Burgos <jordiburgos@gmail.com>",
|
|
8
|
+
"bugs": "https://github.com/jmaister/excellentexport/issues",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git://github.com/jmaister/excellentexport.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"excel",
|
|
15
|
+
"export",
|
|
16
|
+
"csv",
|
|
17
|
+
"javascript",
|
|
18
|
+
"client",
|
|
19
|
+
"side"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "webpack --config webpack.config.js --progress --mode development --watch",
|
|
23
|
+
"prod": "webpack --config webpack.config.js --progress --mode production",
|
|
24
|
+
"test": "jest --coverage",
|
|
25
|
+
"watch": "jest --watch",
|
|
26
|
+
"postinstall": "node scripts/postinstall.js"
|
|
27
|
+
},
|
|
28
|
+
"main": "dist/excellentexport.js",
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/jest": "29.5.14",
|
|
31
|
+
"@types/jest-environment-puppeteer": "5.0.6",
|
|
32
|
+
"@types/node": "22.12.0",
|
|
33
|
+
"jest": "29.7.0",
|
|
34
|
+
"jest-environment-jsdom": "29.7.0",
|
|
35
|
+
"jest-puppeteer": "11.0.0",
|
|
36
|
+
"puppeteer": "24.1.1",
|
|
37
|
+
"ts-jest": "29.2.5",
|
|
38
|
+
"ts-loader": "9.5.2",
|
|
39
|
+
"typescript": "5.7.3",
|
|
40
|
+
"webpack": "5.97.1",
|
|
41
|
+
"webpack-cli": "6.0.1",
|
|
42
|
+
"webpack-dev-server": "5.2.0",
|
|
43
|
+
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
|
|
44
|
+
}
|
|
45
|
+
}
|
package/src/excellentexport.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ExcellentExport 3.9.
|
|
2
|
+
* ExcellentExport 3.9.9
|
|
3
3
|
* A client side Javascript export to Excel.
|
|
4
4
|
*
|
|
5
5
|
* @author: Jordi Burgos (jordiburgos@gmail.com)
|
|
@@ -54,7 +54,7 @@ export type ExcellentExportType = {
|
|
|
54
54
|
|
|
55
55
|
const ExcellentExport = function() {
|
|
56
56
|
|
|
57
|
-
const version = "3.9.
|
|
57
|
+
const version = "3.9.9";
|
|
58
58
|
|
|
59
59
|
/*
|
|
60
60
|
ExcellentExport.convert(options, sheets);
|
package/src/utils.ts
CHANGED
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
|
|
2
|
-
export const b64toBlob = function (b64Data:string, contentType:string, sliceSize?:number): Blob {
|
|
3
|
-
// function taken from http://stackoverflow.com/a/16245768/2591950
|
|
4
|
-
// author Jeremy Banks http://stackoverflow.com/users/1114/jeremy-banks
|
|
5
|
-
contentType = contentType || '';
|
|
6
|
-
sliceSize = sliceSize || 512;
|
|
7
|
-
|
|
8
|
-
const byteCharacters = atob(b64Data);
|
|
9
|
-
const byteArrays = [];
|
|
10
|
-
|
|
11
|
-
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
|
|
12
|
-
const slice = byteCharacters.slice(offset, offset + sliceSize);
|
|
13
|
-
|
|
14
|
-
const byteNumbers = new Array(slice.length);
|
|
15
|
-
for (let i = 0; i < slice.length; i = i + 1) {
|
|
16
|
-
byteNumbers[i] = slice.charCodeAt(i);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const byteArray = new Uint8Array(byteNumbers);
|
|
20
|
-
|
|
21
|
-
byteArrays.push(byteArray);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return new Blob(byteArrays, {
|
|
25
|
-
type: contentType
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const templates = {excel: '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=ProgId content=Excel.Sheet> <meta name=Generator content="Microsoft Excel 11"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>'};
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Convert a string to Base64.
|
|
33
|
-
*/
|
|
34
|
-
export const base64 = function(s:string) : string {
|
|
35
|
-
return btoa(unescape(encodeURIComponent(s)));
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export const format = function(s:string, context:any) : string {
|
|
39
|
-
return s.replace(new RegExp("{(\\w+)}", "g"), function(m, p) {
|
|
40
|
-
return context[p] || "{" + p + "}";
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Get element by ID.
|
|
46
|
-
* @param {*} element
|
|
47
|
-
*/
|
|
48
|
-
export const getTable = function(element :(HTMLTableElement|string)) : HTMLTableElement {
|
|
49
|
-
if (typeof element === 'string') {
|
|
50
|
-
return document.getElementById(element) as HTMLTableElement;
|
|
51
|
-
}
|
|
52
|
-
return element;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Get element by ID.
|
|
57
|
-
* @param {*} element
|
|
58
|
-
*/
|
|
59
|
-
export const getAnchor = function(element :(HTMLAnchorElement|string)) : HTMLAnchorElement {
|
|
60
|
-
if (typeof element === 'string') {
|
|
61
|
-
return document.getElementById(element) as HTMLAnchorElement;
|
|
62
|
-
}
|
|
63
|
-
return element;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Encode a value for CSV.
|
|
68
|
-
* @param {*} value
|
|
69
|
-
*/
|
|
70
|
-
export const fixCSVField = function(value:string, csvDelimiter:string) : string {
|
|
71
|
-
let fixedValue = value;
|
|
72
|
-
const addQuotes = (value.indexOf(csvDelimiter) !== -1) || (value.indexOf('\r') !== -1) || (value.indexOf('\n') !== -1);
|
|
73
|
-
const replaceDoubleQuotes = (value.indexOf('"') !== -1);
|
|
74
|
-
|
|
75
|
-
if (replaceDoubleQuotes) {
|
|
76
|
-
fixedValue = fixedValue.replace(/"/g, '""');
|
|
77
|
-
}
|
|
78
|
-
if (addQuotes || replaceDoubleQuotes) {
|
|
79
|
-
fixedValue = '"' + fixedValue + '"';
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return fixedValue;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export const tableToArray = function(table:HTMLTableElement) : any[][] {
|
|
86
|
-
let tableInfo = Array.prototype.map.call(table.querySelectorAll('tr'), function(tr) {
|
|
87
|
-
return Array.prototype.map.call(tr.querySelectorAll('th,td'), function(td) {
|
|
88
|
-
return td.innerHTML;
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
return tableInfo;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export const tableToCSV = function(table:HTMLTableElement, csvDelimiter:string = ',', csvNewLine:string = '\n') : string {
|
|
95
|
-
let data = "";
|
|
96
|
-
for (let i = 0; i < table.rows.length; i=i+1) {
|
|
97
|
-
const row = table.rows[i];
|
|
98
|
-
for (let j = 0; j < row.cells.length; j=j+1) {
|
|
99
|
-
const col = row.cells[j];
|
|
100
|
-
data = data + (j ? csvDelimiter : '') + fixCSVField(col.textContent.trim(), csvDelimiter);
|
|
101
|
-
}
|
|
102
|
-
data = data + csvNewLine;
|
|
103
|
-
}
|
|
104
|
-
return data;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export const createDownloadLink = function(anchor:HTMLAnchorElement, base64data:string, exporttype:string, filename:string) : boolean {
|
|
108
|
-
if (window.navigator.msSaveBlob) {
|
|
109
|
-
const blob = b64toBlob(base64data, exporttype);
|
|
110
|
-
window.navigator.msSaveBlob(blob, filename);
|
|
111
|
-
return false;
|
|
112
|
-
} else if (window.URL.createObjectURL) {
|
|
113
|
-
const blob = b64toBlob(base64data, exporttype);
|
|
114
|
-
anchor.href = window.URL.createObjectURL(blob);
|
|
115
|
-
} else {
|
|
116
|
-
anchor.download = filename;
|
|
117
|
-
anchor.href = "data:" + exporttype + ";base64," + base64data;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Return true to allow the link to work
|
|
121
|
-
return true;
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
// String to ArrayBuffer
|
|
125
|
-
export const string2ArrayBuffer = function (s:string): ArrayBuffer {
|
|
126
|
-
let buf = new ArrayBuffer(s.length);
|
|
127
|
-
let view = new Uint8Array(buf);
|
|
128
|
-
for (let i=0; i !== s.length; ++i) {
|
|
129
|
-
view[i] = s.charCodeAt(i) & 0xFF;
|
|
130
|
-
}
|
|
131
|
-
return buf;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export const removeColumns = function(dataArray:any[][], columnIndexes:number[]) {
|
|
135
|
-
const uniqueIndexes = [...new Set(columnIndexes)].sort().reverse();
|
|
136
|
-
uniqueIndexes.forEach(function(columnIndex) {
|
|
137
|
-
dataArray.forEach(function(row) {
|
|
138
|
-
row.splice(columnIndex, 1);
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
export const hasContent = function(value:any) : boolean {
|
|
144
|
-
return value !== undefined && value !== null && value !== "";
|
|
1
|
+
|
|
2
|
+
export const b64toBlob = function (b64Data:string, contentType:string, sliceSize?:number): Blob {
|
|
3
|
+
// function taken from http://stackoverflow.com/a/16245768/2591950
|
|
4
|
+
// author Jeremy Banks http://stackoverflow.com/users/1114/jeremy-banks
|
|
5
|
+
contentType = contentType || '';
|
|
6
|
+
sliceSize = sliceSize || 512;
|
|
7
|
+
|
|
8
|
+
const byteCharacters = atob(b64Data);
|
|
9
|
+
const byteArrays = [];
|
|
10
|
+
|
|
11
|
+
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
|
|
12
|
+
const slice = byteCharacters.slice(offset, offset + sliceSize);
|
|
13
|
+
|
|
14
|
+
const byteNumbers = new Array(slice.length);
|
|
15
|
+
for (let i = 0; i < slice.length; i = i + 1) {
|
|
16
|
+
byteNumbers[i] = slice.charCodeAt(i);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const byteArray = new Uint8Array(byteNumbers);
|
|
20
|
+
|
|
21
|
+
byteArrays.push(byteArray);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return new Blob(byteArrays, {
|
|
25
|
+
type: contentType
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const templates = {excel: '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=ProgId content=Excel.Sheet> <meta name=Generator content="Microsoft Excel 11"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>'};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Convert a string to Base64.
|
|
33
|
+
*/
|
|
34
|
+
export const base64 = function(s:string) : string {
|
|
35
|
+
return btoa(unescape(encodeURIComponent(s)));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const format = function(s:string, context:any) : string {
|
|
39
|
+
return s.replace(new RegExp("{(\\w+)}", "g"), function(m, p) {
|
|
40
|
+
return context[p] || "{" + p + "}";
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Get element by ID.
|
|
46
|
+
* @param {*} element
|
|
47
|
+
*/
|
|
48
|
+
export const getTable = function(element :(HTMLTableElement|string)) : HTMLTableElement {
|
|
49
|
+
if (typeof element === 'string') {
|
|
50
|
+
return document.getElementById(element) as HTMLTableElement;
|
|
51
|
+
}
|
|
52
|
+
return element;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Get element by ID.
|
|
57
|
+
* @param {*} element
|
|
58
|
+
*/
|
|
59
|
+
export const getAnchor = function(element :(HTMLAnchorElement|string)) : HTMLAnchorElement {
|
|
60
|
+
if (typeof element === 'string') {
|
|
61
|
+
return document.getElementById(element) as HTMLAnchorElement;
|
|
62
|
+
}
|
|
63
|
+
return element;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Encode a value for CSV.
|
|
68
|
+
* @param {*} value
|
|
69
|
+
*/
|
|
70
|
+
export const fixCSVField = function(value:string, csvDelimiter:string) : string {
|
|
71
|
+
let fixedValue = value;
|
|
72
|
+
const addQuotes = (value.indexOf(csvDelimiter) !== -1) || (value.indexOf('\r') !== -1) || (value.indexOf('\n') !== -1);
|
|
73
|
+
const replaceDoubleQuotes = (value.indexOf('"') !== -1);
|
|
74
|
+
|
|
75
|
+
if (replaceDoubleQuotes) {
|
|
76
|
+
fixedValue = fixedValue.replace(/"/g, '""');
|
|
77
|
+
}
|
|
78
|
+
if (addQuotes || replaceDoubleQuotes) {
|
|
79
|
+
fixedValue = '"' + fixedValue + '"';
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return fixedValue;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const tableToArray = function(table:HTMLTableElement) : any[][] {
|
|
86
|
+
let tableInfo = Array.prototype.map.call(table.querySelectorAll('tr'), function(tr) {
|
|
87
|
+
return Array.prototype.map.call(tr.querySelectorAll('th,td'), function(td) {
|
|
88
|
+
return td.innerHTML;
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
return tableInfo;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export const tableToCSV = function(table:HTMLTableElement, csvDelimiter:string = ',', csvNewLine:string = '\n') : string {
|
|
95
|
+
let data = "";
|
|
96
|
+
for (let i = 0; i < table.rows.length; i=i+1) {
|
|
97
|
+
const row = table.rows[i];
|
|
98
|
+
for (let j = 0; j < row.cells.length; j=j+1) {
|
|
99
|
+
const col = row.cells[j];
|
|
100
|
+
data = data + (j ? csvDelimiter : '') + fixCSVField(col.textContent.trim(), csvDelimiter);
|
|
101
|
+
}
|
|
102
|
+
data = data + csvNewLine;
|
|
103
|
+
}
|
|
104
|
+
return data;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export const createDownloadLink = function(anchor:HTMLAnchorElement, base64data:string, exporttype:string, filename:string) : boolean {
|
|
108
|
+
if (window.navigator.msSaveBlob) {
|
|
109
|
+
const blob = b64toBlob(base64data, exporttype);
|
|
110
|
+
window.navigator.msSaveBlob(blob, filename);
|
|
111
|
+
return false;
|
|
112
|
+
} else if (window.URL.createObjectURL) {
|
|
113
|
+
const blob = b64toBlob(base64data, exporttype);
|
|
114
|
+
anchor.href = window.URL.createObjectURL(blob);
|
|
115
|
+
} else {
|
|
116
|
+
anchor.download = filename;
|
|
117
|
+
anchor.href = "data:" + exporttype + ";base64," + base64data;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Return true to allow the link to work
|
|
121
|
+
return true;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// String to ArrayBuffer
|
|
125
|
+
export const string2ArrayBuffer = function (s:string): ArrayBuffer {
|
|
126
|
+
let buf = new ArrayBuffer(s.length);
|
|
127
|
+
let view = new Uint8Array(buf);
|
|
128
|
+
for (let i=0; i !== s.length; ++i) {
|
|
129
|
+
view[i] = s.charCodeAt(i) & 0xFF;
|
|
130
|
+
}
|
|
131
|
+
return buf;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export const removeColumns = function(dataArray:any[][], columnIndexes:number[]) {
|
|
135
|
+
const uniqueIndexes = [...new Set(columnIndexes)].sort().reverse();
|
|
136
|
+
uniqueIndexes.forEach(function(columnIndex) {
|
|
137
|
+
dataArray.forEach(function(row) {
|
|
138
|
+
row.splice(columnIndex, 1);
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export const hasContent = function(value:any) : boolean {
|
|
144
|
+
return value !== undefined && value !== null && value !== "";
|
|
145
145
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"outDir": "./dist",
|
|
4
|
-
"allowJs": true,
|
|
5
|
-
"target": "ESNext",
|
|
6
|
-
"sourceMap": true,
|
|
7
|
-
"removeComments": false,
|
|
8
|
-
"declaration": true,
|
|
9
|
-
"rootDir": "src",
|
|
10
|
-
"moduleResolution": "node",
|
|
11
|
-
"esModuleInterop": true
|
|
12
|
-
},
|
|
13
|
-
"include": [
|
|
14
|
-
"src/**/*.ts",
|
|
15
|
-
"test/**/*.{ts,js}"
|
|
16
|
-
]
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"outDir": "./dist",
|
|
4
|
+
"allowJs": true,
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"sourceMap": true,
|
|
7
|
+
"removeComments": false,
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"rootDir": "src",
|
|
10
|
+
"moduleResolution": "node",
|
|
11
|
+
"esModuleInterop": true
|
|
12
|
+
},
|
|
13
|
+
"include": [
|
|
14
|
+
"src/**/*.ts",
|
|
15
|
+
"test/**/*.{ts,js}"
|
|
16
|
+
]
|
|
17
|
+
}
|