versioned-d.ts-tools 0.1.0 → 0.3.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/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { APISet, parseDTS } from './dts-utilities';
1
+ export { APISet, parseDTS } from './dts-utilities';
2
+ export { generateWhatsNew } from './whats-new';
package/dist/index.js CHANGED
@@ -1,6 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var dts_utilities_1 = require("./dts-utilities");
4
- exports.APISet = dts_utilities_1.APISet;
5
- exports.parseDTS = dts_utilities_1.parseDTS;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateWhatsNew = exports.parseDTS = exports.APISet = void 0;
4
+ var dts_utilities_1 = require("./dts-utilities");
5
+ Object.defineProperty(exports, "APISet", { enumerable: true, get: function () { return dts_utilities_1.APISet; } });
6
+ Object.defineProperty(exports, "parseDTS", { enumerable: true, get: function () { return dts_utilities_1.parseDTS; } });
7
+ var whats_new_1 = require("./whats-new");
8
+ Object.defineProperty(exports, "generateWhatsNew", { enumerable: true, get: function () { return whats_new_1.generateWhatsNew; } });
6
9
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- #!/usr/bin/env node
2
- export {};
1
+ #!/usr/bin/env node
2
+ export declare function removeVersion(sourceDtsPath: string, outputFilePath: string, versionString: string, configFilePath?: string): void;
@@ -1,97 +1,163 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __importStar = (this && this.__importStar) || function (mod) {
4
- if (mod && mod.__esModule) return mod;
5
- var result = {};
6
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
7
- result["default"] = mod;
8
- return result;
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- const fsx = __importStar(require("fs-extra"));
12
- if (process.argv.length !== 5 || process.argv.find((x) => { return x === "-?"; })) {
13
- console.log("usage: node version-remover [source d.ts] [API set name] [output file name]");
14
- console.log("example: node version-remover excel.d.ts \"ExcelApi 1.8\" excel_1_7.d.ts");
15
- process.exit(0);
16
- }
17
- console.log("Version Remover - Creating " + process.argv[4]);
18
- let wholeDts = fsx.readFileSync(process.argv[2]).toString();
19
- let declarationString;
20
- // find the API tag
21
- let indexOfApiSetTag = wholeDts.indexOf("Api set: " + process.argv[3]);
22
- while (indexOfApiSetTag >= 0) {
23
- // find the comment block around the API tag
24
- let commentStart = wholeDts.lastIndexOf("/**", indexOfApiSetTag);
25
- let commentEnd = wholeDts.indexOf("*/", indexOfApiSetTag);
26
- commentEnd = wholeDts.indexOf("\n", commentEnd) + 1; // Account for newline and ending characters.
27
- // the declaration string is the line following the comment
28
- declarationString = wholeDts.substring(commentEnd, wholeDts.indexOf("\n", commentEnd));
29
- let endPosition = commentEnd + declarationString.length;
30
- if (declarationString.indexOf("class") >= 0 ||
31
- declarationString.indexOf("enum") >= 0 ||
32
- declarationString.indexOf("interface") >= 0) {
33
- // Discount internal bracket pairs.
34
- let nextStartBrace = wholeDts.indexOf("{", endPosition);
35
- let nextEndBrace = wholeDts.indexOf("}", endPosition);
36
- while (nextStartBrace < nextEndBrace && nextStartBrace >= 0) {
37
- nextStartBrace = wholeDts.indexOf("{", nextStartBrace + 1);
38
- nextEndBrace = wholeDts.indexOf("}", nextEndBrace + 1);
39
- }
40
- endPosition = wholeDts.indexOf("}", nextEndBrace - 1);
41
- }
42
- else {
43
- endPosition = getDeclarationEnd(wholeDts, commentEnd);
44
- }
45
- if (endPosition === -1) {
46
- endPosition = commentEnd;
47
- }
48
- wholeDts = wholeDts.substring(0, commentStart) + wholeDts.substring(endPosition + 1);
49
- indexOfApiSetTag = wholeDts.indexOf("Api set: " + process.argv[3]);
50
- }
51
- /* Add necessary custom logic here*/
52
- if (process.argv[3] === "ExcelApi 1.19") {
53
- console.log("Address CardLayoutTwoColumnSection reference for when removing ExcelApi 1.19");
54
- wholeDts = wholeDts.replace(/type CardLayoutSection = CardLayoutListSection \| CardLayoutTableSection \| CardLayoutTwoColumnSection;/g, "type CardLayoutSection = CardLayoutListSection | CardLayoutTableSection;");
55
- console.log("Address EntityCompactLayoutIcons reference for when removing ExcelApi 1.19");
56
- wholeDts = wholeDts.replace(/icon\?: string \| EntityCompactLayoutIcons;/g, "icon?: string;");
57
- console.log("Address EntityCompactLayoutIcons reference for when removing ExcelApi 1.19");
58
- wholeDts = wholeDts.replace(/type CellValue = \(ArrayCellValue \| BooleanCellValue \| DoubleCellValue \| EntityCellValue \| EmptyCellValue \| ErrorCellValue \| FormattedNumberCellValue \| FunctionCellValue \| LinkedEntityCellValue \| ReferenceCellValue \| StringCellValue \| ValueTypeNotAvailableCellValue \| WebImageCellValue\) \& CellValueExtraProperties;/g, "type CellValue = (ArrayCellValue | BooleanCellValue | DoubleCellValue | EntityCellValue | EmptyCellValue | ErrorCellValue | LinkedEntityCellValue | ReferenceCellValue | StringCellValue | ValueTypeNotAvailableCellValue | WebImageCellValue) & CellValueExtraProperties;");
59
- }
60
- if (process.argv[3] === "ExcelApi 1.11") {
61
- console.log("Address CommentRichContent reference for when removing ExcelApi 1.11");
62
- wholeDts = wholeDts.replace(/content: CommentRichContent \| string,/g, "content: string,");
63
- }
64
- if (process.argv[3] === "Mailbox 1.14") {
65
- console.log("Address SpamReportingEventCompletedOptions reference when removing Mailbox 1.14");
66
- wholeDts = wholeDts.replace(/options\?: SmartAlertsEventCompletedOptions \| SpamReportingEventCompletedOptions/g, "options?: SmartAlertsEventCompletedOptions");
67
- }
68
- if (process.argv[3] === "Mailbox 1.12") {
69
- console.log("Address SmartAlertsEventCompletedOptions reference when removing Mailbox 1.12");
70
- wholeDts = wholeDts.replace(/options\?: SmartAlertsEventCompletedOptions/g, "");
71
- wholeDts = wholeDts.replace(/@param options - Optional. An object that specifies the behavior of an event-based or spam-reporting add-in when it completes processing an event./g, "");
72
- }
73
- if (process.argv[3] === "WordApiDesktop 1.1") {
74
- console.log("Address ImportedStylesConflictBehavior reference when removing WordApiDesktop 1.1");
75
- wholeDts = wholeDts.replace(/@param importedStylesConflictBehavior - Optional. Specifies how to handle any imported styles with the same name as existing styles in the current document./g, "");
76
- wholeDts = wholeDts.replace(/Note: The `importedStylesConflictBehavior` parameter was introduced in WordApiDesktop 1.1./g, "");
77
- wholeDts = wholeDts.replace(/, importedStylesConflictBehavior\?: Word\.ImportedStylesConflictBehavior[\w\W]*importedStylesConflictBehaviorString\?: "Ignore" \| "Overwrite" \| "CreateNew"\): OfficeExtension.ClientResult<string\[\]>;/gm, "): OfficeExtension.ClientResult<string[]>;");
78
- }
79
- fsx.writeFileSync(process.argv[4], wholeDts);
80
- function getDeclarationEnd(wholeDts, startIndex) {
81
- let nextSemicolon = wholeDts.indexOf(";", startIndex);
82
- let nextNewLine = wholeDts.indexOf("\n", startIndex);
83
- let nextStartBrace = wholeDts.indexOf("{", startIndex);
84
- let nextEndBrace = wholeDts.indexOf("}", startIndex);
85
- let nextComment = wholeDts.indexOf("/**", startIndex);
86
- // Figure out if the declaration has an internal class.
87
- if (nextSemicolon < nextNewLine) {
88
- return nextSemicolon;
89
- }
90
- else if (nextStartBrace > nextEndBrace && nextEndBrace < nextComment) {
91
- return wholeDts.lastIndexOf("\n", nextEndBrace);
92
- }
93
- else {
94
- return wholeDts.lastIndexOf("\n", nextComment);
95
- }
96
- }
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.removeVersion = removeVersion;
38
+ const fsx = __importStar(require("fs-extra"));
39
+ function removeVersion(sourceDtsPath, outputFilePath, versionString, configFilePath) {
40
+ let wholeDts = fsx.readFileSync(sourceDtsPath).toString();
41
+ let declarationString;
42
+ // find the version string
43
+ let indexOfVersionString = wholeDts.indexOf(versionString);
44
+ while (indexOfVersionString >= 0) {
45
+ // find the comment block around the version string
46
+ let commentStart = wholeDts.lastIndexOf("/**", indexOfVersionString);
47
+ let commentEnd = wholeDts.indexOf("*/", indexOfVersionString);
48
+ commentEnd = wholeDts.indexOf("\n", commentEnd) + 1; // Account for newline and ending characters.
49
+ // the declaration string is the line following the comment
50
+ declarationString = wholeDts.substring(commentEnd, wholeDts.indexOf("\n", commentEnd));
51
+ let endPosition = commentEnd + declarationString.length;
52
+ if (declarationString.indexOf("class") >= 0 ||
53
+ declarationString.indexOf("enum") >= 0 ||
54
+ declarationString.indexOf("interface") >= 0) {
55
+ // Discount internal bracket pairs.
56
+ let nextStartBrace = wholeDts.indexOf("{", endPosition);
57
+ let nextEndBrace = wholeDts.indexOf("}", endPosition);
58
+ while (nextStartBrace < nextEndBrace && nextStartBrace >= 0) {
59
+ nextStartBrace = wholeDts.indexOf("{", nextStartBrace + 1);
60
+ nextEndBrace = wholeDts.indexOf("}", nextEndBrace + 1);
61
+ }
62
+ endPosition = wholeDts.indexOf("}", nextEndBrace - 1);
63
+ }
64
+ else {
65
+ endPosition = getDeclarationEnd(wholeDts, commentEnd);
66
+ }
67
+ if (endPosition === -1) {
68
+ endPosition = commentEnd;
69
+ }
70
+ wholeDts = wholeDts.substring(0, commentStart) + wholeDts.substring(endPosition + 1);
71
+ indexOfVersionString = wholeDts.indexOf(versionString);
72
+ }
73
+ // Apply custom replacements from configuration file
74
+ if (configFilePath && fsx.existsSync(configFilePath)) {
75
+ try {
76
+ const configContent = fsx.readFileSync(configFilePath, 'utf8');
77
+ const config = JSON.parse(configContent);
78
+ if (config.replacements && Array.isArray(config.replacements)) {
79
+ for (const replacement of config.replacements) {
80
+ if (replacement.description) {
81
+ console.log(`Applying replacement: ${replacement.description}`);
82
+ }
83
+ if (replacement.isRegex) {
84
+ // Parse the regex pattern and flags
85
+ const regexMatch = replacement.find.match(/^\/(.+)\/([gimuy]*)$/);
86
+ if (regexMatch) {
87
+ const pattern = regexMatch[1];
88
+ const flags = regexMatch[2];
89
+ const regex = new RegExp(pattern, flags);
90
+ wholeDts = wholeDts.replace(regex, replacement.replace);
91
+ }
92
+ else {
93
+ console.warn(`Invalid regex pattern: ${replacement.find}`);
94
+ }
95
+ }
96
+ else {
97
+ // Simple string replacement
98
+ wholeDts = wholeDts.replace(new RegExp(escapeRegExp(replacement.find), 'g'), replacement.replace);
99
+ }
100
+ }
101
+ }
102
+ }
103
+ catch (error) {
104
+ console.warn(`Warning: Could not parse configuration file ${configFilePath}: ${error.message}`);
105
+ }
106
+ }
107
+ fsx.writeFileSync(outputFilePath, wholeDts);
108
+ }
109
+ function escapeRegExp(string) {
110
+ return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
111
+ }
112
+ // CLI entry point
113
+ if (require.main === module) {
114
+ const args = process.argv.slice(2);
115
+ const hasHelp = args.find((x) => x === "-?" || x === "--help");
116
+ if ((args.length !== 3 && args.length !== 4) || hasHelp) {
117
+ console.log("usage: node version-remover [source d.ts] [output file name] [version string] [optional config file]");
118
+ console.log("example: node version-remover excel.d.ts excel_1_7.d.ts \"Api set: ExcelApi 1.8\"");
119
+ console.log("example: node version-remover excel.d.ts excel_1_18.d.ts \"Api set: ExcelApi 1.19\" my-config.json");
120
+ console.log("");
121
+ console.log("Note: For specific API sets that require custom replacements, you may need to create");
122
+ console.log("configuration files to handle type union cleanups and parameter removals.");
123
+ console.log("See the README for configuration file format and examples.");
124
+ console.log("");
125
+ console.log("Configuration file format:");
126
+ console.log(JSON.stringify({
127
+ "replacements": [
128
+ {
129
+ "find": "old text",
130
+ "replace": "new text",
131
+ "description": "Optional description of what this replacement does"
132
+ },
133
+ {
134
+ "find": "/regex pattern/g",
135
+ "replace": "replacement",
136
+ "isRegex": true,
137
+ "description": "Example regex replacement"
138
+ }
139
+ ]
140
+ }, null, 2));
141
+ process.exit(0);
142
+ }
143
+ console.log("Version Remover - Creating " + args[1]);
144
+ removeVersion(args[0], args[1], args[2], args[3]);
145
+ }
146
+ function getDeclarationEnd(wholeDts, startIndex) {
147
+ let nextSemicolon = wholeDts.indexOf(";", startIndex);
148
+ let nextNewLine = wholeDts.indexOf("\n", startIndex);
149
+ let nextStartBrace = wholeDts.indexOf("{", startIndex);
150
+ let nextEndBrace = wholeDts.indexOf("}", startIndex);
151
+ let nextComment = wholeDts.indexOf("/**", startIndex);
152
+ // Figure out if the declaration has an internal class.
153
+ if (nextSemicolon < nextNewLine) {
154
+ return nextSemicolon;
155
+ }
156
+ else if (nextStartBrace > nextEndBrace && nextEndBrace < nextComment) {
157
+ return wholeDts.lastIndexOf("\n", nextEndBrace);
158
+ }
159
+ else {
160
+ return wholeDts.lastIndexOf("\n", nextComment);
161
+ }
162
+ }
97
163
  //# sourceMappingURL=version-remover.js.map
@@ -1,2 +1,2 @@
1
- #!/usr/bin/env node
2
- export {};
1
+ #!/usr/bin/env node
2
+ export declare function generateWhatsNew(newDtsPath: string, oldDtsPath: string, outputPath: string, relativePath: string): void;
package/dist/whats-new.js CHANGED
@@ -1,56 +1,77 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
- return new (P || (P = Promise))(function (resolve, reject) {
6
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
7
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
8
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
9
- step((generator = generator.apply(thisArg, _arguments || [])).next());
10
- });
11
- };
12
- var __importStar = (this && this.__importStar) || function (mod) {
13
- if (mod && mod.__esModule) return mod;
14
- var result = {};
15
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
16
- result["default"] = mod;
17
- return result;
18
- };
19
- Object.defineProperty(exports, "__esModule", { value: true });
20
- const fsx = __importStar(require("fs-extra"));
21
- const dts_utilities_1 = require("./dts-utilities");
22
- if (process.argv.length !== 6 || process.argv.find((x) => { return x === "-?"; })) {
23
- console.log("usage: node whats-new [host name] [new d.ts] [old d.ts] [output file name (minus extension)]");
24
- console.log("example: node whats-new Excel excel_1_9.d.ts excel_1_8.d.ts excel_whats_new");
25
- process.exit(0);
26
- }
27
- const hostName = process.argv[2];
28
- const newDtsPath = process.argv[3];
29
- const oldDtsPath = process.argv[4];
30
- const outputPath = process.argv[5];
31
- console.log(`What's New between ${newDtsPath} and ${oldDtsPath}?`);
32
- tryCatch(() => __awaiter(void 0, void 0, void 0, function* () {
33
- // read whole files
34
- let wholeRelease = fsx.readFileSync(oldDtsPath).toString();
35
- let wholePreview = fsx.readFileSync(newDtsPath).toString();
36
- const releaseAPI = dts_utilities_1.parseDTS("release", wholeRelease);
37
- const previewAPI = dts_utilities_1.parseDTS("preview", wholePreview);
38
- const diffAPI = previewAPI.diff(releaseAPI);
39
- const relativePath = `javascript/api/${hostName.toLowerCase()}/${hostName.toLowerCase() === "outlook" ? "office" : hostName.toLowerCase()}.`;
40
- if (!fsx.existsSync(outputPath + ".md")) {
41
- fsx.createFileSync(outputPath + ".md");
42
- }
43
- fsx.writeFileSync(outputPath + ".md", diffAPI.getAsMarkdown(relativePath));
44
- }));
45
- function tryCatch(call) {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- try {
48
- yield call();
49
- }
50
- catch (e) {
51
- console.error(e);
52
- process.exit(1);
53
- }
54
- });
55
- }
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.generateWhatsNew = generateWhatsNew;
38
+ const fsx = __importStar(require("fs-extra"));
39
+ const dts_utilities_1 = require("./dts-utilities");
40
+ function generateWhatsNew(newDtsPath, oldDtsPath, outputPath, relativePath) {
41
+ // read whole files
42
+ let wholeRelease = fsx.readFileSync(oldDtsPath).toString();
43
+ let wholePreview = fsx.readFileSync(newDtsPath).toString();
44
+ const releaseAPI = (0, dts_utilities_1.parseDTS)("release", wholeRelease);
45
+ const previewAPI = (0, dts_utilities_1.parseDTS)("preview", wholePreview);
46
+ const diffAPI = previewAPI.diff(releaseAPI);
47
+ if (!fsx.existsSync(outputPath + ".md")) {
48
+ fsx.createFileSync(outputPath + ".md");
49
+ }
50
+ fsx.writeFileSync(outputPath + ".md", diffAPI.getAsMarkdown(relativePath));
51
+ }
52
+ // CLI entry point
53
+ if (require.main === module) {
54
+ if (process.argv.length !== 6 || process.argv.find((x) => { return x === "-?"; })) {
55
+ console.log("usage: whats-new [new d.ts] [old d.ts] [output file name (minus extension)] [relative path]");
56
+ console.log("example: whats-new excel_1_9.d.ts excel_1_8.d.ts excel_whats_new javascript/api/excel/excel.");
57
+ process.exit(0);
58
+ }
59
+ const newDtsPath = process.argv[2];
60
+ const oldDtsPath = process.argv[3];
61
+ const outputPath = process.argv[4];
62
+ const relativePath = process.argv[5];
63
+ console.log(`What's New between ${newDtsPath} and ${oldDtsPath}?`);
64
+ tryCatch(async () => {
65
+ generateWhatsNew(newDtsPath, oldDtsPath, outputPath, relativePath);
66
+ });
67
+ }
68
+ async function tryCatch(call) {
69
+ try {
70
+ await call();
71
+ }
72
+ catch (e) {
73
+ console.error(e);
74
+ process.exit(1);
75
+ }
76
+ }
56
77
  //# sourceMappingURL=whats-new.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "versioned-d.ts-tools",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Tools for managing versioned TypeScript definition files",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -13,40 +13,42 @@
13
13
  "lint": "eslint -c .eslintrc.js --ext .ts",
14
14
  "prepublishOnly": "npm run build",
15
15
  "clean": "if exist dist rmdir /s /q dist",
16
- "test": "echo \"Error: no test specified\" && exit 1"
16
+ "test": "npm run build && jest",
17
+ "test:watch": "jest --watch",
18
+ "test:only": "jest"
17
19
  },
18
20
  "author": "AlexJerabek",
19
21
  "license": "MIT",
20
- "keywords": ["typescript", "d.ts", "versioning", "api", "documentation"],
22
+ "keywords": [
23
+ "typescript",
24
+ "d.ts",
25
+ "versioning",
26
+ "api",
27
+ "documentation"
28
+ ],
21
29
  "repository": {
22
30
  "type": "git",
23
31
  "url": "https://github.com/AlexJerabek/versioned-d.ts-tools.git"
24
32
  },
25
33
  "files": [
26
- "dist/**/*",
34
+ "dist/**/*.js",
35
+ "dist/**/*.d.ts",
27
36
  "README.md",
28
37
  "LICENSE"
29
38
  ],
30
39
  "devDependencies": {
31
40
  "@types/fs-extra": "3.0.1",
32
- "@types/inquirer": "0.0.34",
33
- "@types/js-yaml": "4.0.0",
34
- "@types/lodash": "4.14.136",
41
+ "@types/jest": "^29.5.14",
35
42
  "@types/node": "7.0.5",
36
43
  "@typescript-eslint/eslint-plugin": "^6.16.0",
37
44
  "@typescript-eslint/parser": "^6.16.0",
38
- "del": "2.2.2",
39
45
  "eslint": "^8.56.0",
40
- "eslint-config-prettier": "^9.1.0",
41
- "eslint-plugin-prefer-arrow": "^1.2.3",
42
- "ts-node": "2.1.0"
46
+ "jest": "^29.5.0",
47
+ "ts-jest": "^29.1.0",
48
+ "ts-node": "^10.9.0"
43
49
  },
44
50
  "dependencies": {
45
- "typescript": "~3.7.0",
46
- "deep-diff": "^1.0.2",
47
51
  "fs-extra": "3.0.1",
48
- "inquirer": "^8.2.0",
49
- "isomorphic-fetch": "^3.0.0",
50
- "lodash": "^4.17.21"
52
+ "typescript": "^5.2.0"
51
53
  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AC;AACxB,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,iDAAmD;AAA1C,iCAAA,MAAM,CAAA;AAAE,mCAAA,QAAQ,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"version-remover.js","sourceRoot":"","sources":["../src/version-remover.ts"],"names":[],"mappings":";;;;;;;;;;AACA,8CAAgC;AAEhC,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,GAAE,OAAO,CAAC,KAAK,IAAI,CAAA,CAAA,CAAC,CAAC,EAAE;IACpF,OAAO,CAAC,GAAG,CAAC,6EAA6E,CAAC,CAAC;IAC3F,OAAO,CAAC,GAAG,CAAC,0EAA0E,CAAC,CAAC;IACxF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;CACnB;AAED,OAAO,CAAC,GAAG,CAAC,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7D,IAAI,QAAQ,GAAG,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAC5D,IAAI,iBAAiB,CAAC;AACtB,mBAAmB;AACnB,IAAI,gBAAgB,GAAG,QAAQ,CAAC,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,OAAO,gBAAgB,IAAI,CAAC,EAAE;IAC1B,4CAA4C;IAC5C,IAAI,YAAY,GAAG,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;IACjE,IAAI,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;IAC1D,UAAU,GAAI,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