@sanity/pkg-utils 1.6.0 → 1.7.2
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/{__resolveBuildContext-bc09bff3.cjs → __resolveBuildContext-9b0aa9f9.cjs} +218 -104
- package/dist/__resolveBuildContext-9b0aa9f9.cjs.map +1 -0
- package/dist/{_build-89aeaf6a.cjs → _build-6e7deb31.cjs} +82 -47
- package/dist/_build-6e7deb31.cjs.map +1 -0
- package/dist/{_buildAction-8855cb5a.cjs → _buildAction-d8841b41.cjs} +35 -8
- package/dist/_buildAction-d8841b41.cjs.map +1 -0
- package/dist/_check-04a1f749.cjs +242 -0
- package/dist/_check-04a1f749.cjs.map +1 -0
- package/dist/{_checkAction-a96c4021.cjs → _checkAction-09426a13.cjs} +17 -4
- package/dist/_checkAction-09426a13.cjs.map +1 -0
- package/dist/{_index-0e8b664d.cjs → _index-46cab21c.cjs} +331 -202
- package/dist/_index-46cab21c.cjs.map +1 -0
- package/dist/_watch-cf9c717f.cjs +264 -0
- package/dist/_watch-cf9c717f.cjs.map +1 -0
- package/dist/{_watchAction-bd901b01.cjs → _watchAction-5941527f.cjs} +38 -4
- package/dist/_watchAction-5941527f.cjs.map +1 -0
- package/dist/cli.cjs +24 -9
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +49 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.js +763 -500
- package/dist/index.js.map +1 -1
- package/package.json +15 -9
- package/src/node/_core/config/_loadConfig.ts +5 -0
- package/src/node/_core/config/types.ts +3 -2
- package/src/node/_core/pkg/_loadPkg.ts +2 -1
- package/src/node/_core/pkg/_parseExports.ts +4 -3
- package/src/node/_core/pkg/_types.ts +3 -2
- package/src/node/_printPackageTree.ts +3 -1
- package/src/node/_resolveBuildTasks.ts +1 -3
- package/src/node/_resolveWatchTasks.ts +1 -3
- package/src/node/_spinner.ts +5 -13
- package/src/node/_tasks/rollup/_resolveRollupConfig.ts +26 -3
- package/src/node/build.ts +0 -3
- package/dist/__printPackageTree-3ff3ecd3.cjs +0 -76
- package/dist/__printPackageTree-3ff3ecd3.cjs.map +0 -1
- package/dist/__resolveBuildContext-bc09bff3.cjs.map +0 -1
- package/dist/_build-89aeaf6a.cjs.map +0 -1
- package/dist/_buildAction-8855cb5a.cjs.map +0 -1
- package/dist/_check-0ebe9af4.cjs +0 -118
- package/dist/_check-0ebe9af4.cjs.map +0 -1
- package/dist/_checkAction-a96c4021.cjs.map +0 -1
- package/dist/_index-0e8b664d.cjs.map +0 -1
- package/dist/_watch-cf0df170.cjs +0 -219
- package/dist/_watch-cf0df170.cjs.map +0 -1
- package/dist/_watchAction-bd901b01.cjs.map +0 -1
- package/src/node/_resolveEsTarget.ts +0 -39
|
@@ -1,100 +1,125 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
|
|
7
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
|
|
3
9
|
var chalk = require('chalk');
|
|
10
|
+
|
|
4
11
|
var rxjs = require('rxjs');
|
|
12
|
+
|
|
5
13
|
var path = require('path');
|
|
14
|
+
|
|
6
15
|
var util = require('util');
|
|
16
|
+
|
|
7
17
|
var rimrafCallback = require('rimraf');
|
|
18
|
+
|
|
8
19
|
var ts = require('typescript');
|
|
20
|
+
|
|
9
21
|
var fs = require('fs/promises');
|
|
22
|
+
|
|
10
23
|
var apiExtractor = require('@microsoft/api-extractor');
|
|
24
|
+
|
|
11
25
|
var mkdirp = require('mkdirp');
|
|
26
|
+
|
|
12
27
|
var prettier = require('prettier');
|
|
28
|
+
|
|
13
29
|
var tsdocConfig = require('@microsoft/tsdoc-config');
|
|
30
|
+
|
|
14
31
|
var jsoncParser = require('jsonc-parser');
|
|
32
|
+
|
|
15
33
|
var rollup = require('rollup');
|
|
34
|
+
|
|
16
35
|
var alias = require('@rollup/plugin-alias');
|
|
36
|
+
|
|
37
|
+
var pluginBabel = require('@rollup/plugin-babel');
|
|
38
|
+
|
|
17
39
|
var commonjs = require('@rollup/plugin-commonjs');
|
|
40
|
+
|
|
18
41
|
var json = require('@rollup/plugin-json');
|
|
42
|
+
|
|
19
43
|
var pluginNodeResolve = require('@rollup/plugin-node-resolve');
|
|
44
|
+
|
|
20
45
|
var replace = require('@rollup/plugin-replace');
|
|
46
|
+
|
|
21
47
|
var esbuild = require('rollup-plugin-esbuild');
|
|
22
48
|
|
|
23
|
-
|
|
49
|
+
var rollupPluginTerser = require('rollup-plugin-terser');
|
|
50
|
+
|
|
51
|
+
var _resolveBuildContext = require('./__resolveBuildContext-9b0aa9f9.cjs');
|
|
52
|
+
|
|
53
|
+
require('esbuild-register/dist/node');
|
|
54
|
+
|
|
55
|
+
require('find-config');
|
|
56
|
+
|
|
57
|
+
require('pkg-up');
|
|
58
|
+
|
|
59
|
+
require('zod');
|
|
60
|
+
|
|
61
|
+
function _interopDefaultLegacy(e) {
|
|
62
|
+
return e && typeof e === 'object' && 'default' in e ? e : {
|
|
63
|
+
'default': e
|
|
64
|
+
};
|
|
65
|
+
}
|
|
24
66
|
|
|
25
67
|
var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
68
|
+
|
|
26
69
|
var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
|
|
70
|
+
|
|
27
71
|
var rimrafCallback__default = /*#__PURE__*/_interopDefaultLegacy(rimrafCallback);
|
|
72
|
+
|
|
28
73
|
var ts__default = /*#__PURE__*/_interopDefaultLegacy(ts);
|
|
74
|
+
|
|
29
75
|
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
76
|
+
|
|
30
77
|
var mkdirp__default = /*#__PURE__*/_interopDefaultLegacy(mkdirp);
|
|
78
|
+
|
|
31
79
|
var prettier__default = /*#__PURE__*/_interopDefaultLegacy(prettier);
|
|
80
|
+
|
|
32
81
|
var alias__default = /*#__PURE__*/_interopDefaultLegacy(alias);
|
|
82
|
+
|
|
33
83
|
var commonjs__default = /*#__PURE__*/_interopDefaultLegacy(commonjs);
|
|
84
|
+
|
|
34
85
|
var json__default = /*#__PURE__*/_interopDefaultLegacy(json);
|
|
86
|
+
|
|
35
87
|
var replace__default = /*#__PURE__*/_interopDefaultLegacy(replace);
|
|
36
|
-
var esbuild__default = /*#__PURE__*/_interopDefaultLegacy(esbuild);
|
|
37
88
|
|
|
38
|
-
|
|
39
|
-
0: "es3",
|
|
40
|
-
1: "es5",
|
|
41
|
-
2: "es2015",
|
|
42
|
-
3: "es2016",
|
|
43
|
-
4: "es2017",
|
|
44
|
-
5: "es2018",
|
|
45
|
-
6: "es2019",
|
|
46
|
-
7: "es2020",
|
|
47
|
-
8: "es2021",
|
|
48
|
-
9: "es2022",
|
|
49
|
-
99: "esnext",
|
|
50
|
-
100: "esnext"
|
|
51
|
-
};
|
|
52
|
-
function _resolveEsTarget(ctx) {
|
|
53
|
-
var _a;
|
|
54
|
-
const { ts } = ctx;
|
|
55
|
-
const tsTarget = ((_a = ts.config) == null ? void 0 : _a.options.target) || 99;
|
|
56
|
-
return TS_TARGETS[tsTarget] || "esnext";
|
|
57
|
-
}
|
|
89
|
+
var esbuild__default = /*#__PURE__*/_interopDefaultLegacy(esbuild);
|
|
58
90
|
|
|
59
91
|
function _printExtractMessages(ctx, messages) {
|
|
60
|
-
const {
|
|
61
|
-
|
|
92
|
+
const {
|
|
93
|
+
cwd,
|
|
94
|
+
logger
|
|
95
|
+
} = ctx;
|
|
96
|
+
const warnings = messages.filter(msg => msg.logLevel === "warning");
|
|
97
|
+
|
|
62
98
|
if (warnings.length) {
|
|
63
99
|
logger.log();
|
|
64
100
|
}
|
|
101
|
+
|
|
65
102
|
for (const msg of warnings) {
|
|
66
103
|
const sourceFilePath = msg.sourceFilePath && path__default["default"].relative(cwd, msg.sourceFilePath);
|
|
104
|
+
|
|
67
105
|
if (msg.messageId === "TS6307") {
|
|
68
106
|
continue;
|
|
69
107
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
`${chalk__default["default"].cyan(sourceFilePath || "?")}`,
|
|
73
|
-
`:${chalk__default["default"].yellow(msg.sourceFileLine)}:${chalk__default["default"].yellow(msg.sourceFileColumn)}`,
|
|
74
|
-
` - ${chalk__default["default"].yellow("warning")} ${chalk__default["default"].gray(msg.messageId)}
|
|
75
|
-
`,
|
|
76
|
-
msg.text,
|
|
77
|
-
"\n"
|
|
78
|
-
].join("")
|
|
79
|
-
);
|
|
108
|
+
|
|
109
|
+
logger.log(["".concat(chalk__default["default"].cyan(sourceFilePath || "?")), ":".concat(chalk__default["default"].yellow(msg.sourceFileLine), ":").concat(chalk__default["default"].yellow(msg.sourceFileColumn)), " - ".concat(chalk__default["default"].yellow("warning"), " ").concat(chalk__default["default"].gray(msg.messageId), "\n"), msg.text, "\n"].join(""));
|
|
80
110
|
}
|
|
81
|
-
|
|
111
|
+
|
|
112
|
+
const errors = messages.filter(msg => msg.logLevel === "error");
|
|
113
|
+
|
|
82
114
|
if (!warnings.length && errors.length) {
|
|
83
115
|
logger.log("");
|
|
84
116
|
}
|
|
117
|
+
|
|
85
118
|
for (const msg of errors) {
|
|
86
119
|
const sourceFilePath = msg.sourceFilePath && path__default["default"].relative(cwd, msg.sourceFilePath);
|
|
87
|
-
logger.log(
|
|
88
|
-
[
|
|
89
|
-
`${chalk__default["default"].cyan(sourceFilePath || "?")}`,
|
|
90
|
-
`:${chalk__default["default"].yellow(msg.sourceFileLine)}:${chalk__default["default"].yellow(msg.sourceFileColumn)}`,
|
|
91
|
-
` - ${chalk__default["default"].red("error")} ${chalk__default["default"].gray(msg.messageId)}
|
|
92
|
-
`,
|
|
93
|
-
msg.text,
|
|
94
|
-
"\n"
|
|
95
|
-
].join("")
|
|
96
|
-
);
|
|
120
|
+
logger.log(["".concat(chalk__default["default"].cyan(sourceFilePath || "?")), ":".concat(chalk__default["default"].yellow(msg.sourceFileLine), ":").concat(chalk__default["default"].yellow(msg.sourceFileColumn)), " - ".concat(chalk__default["default"].red("error"), " ").concat(chalk__default["default"].gray(msg.messageId), "\n"), msg.text, "\n"].join(""));
|
|
97
121
|
}
|
|
122
|
+
|
|
98
123
|
if (errors.length) {
|
|
99
124
|
process.exit(1);
|
|
100
125
|
}
|
|
@@ -103,49 +128,62 @@ function _printExtractMessages(ctx, messages) {
|
|
|
103
128
|
const formatHost = {
|
|
104
129
|
getCurrentDirectory: () => ts__default["default"].sys.getCurrentDirectory(),
|
|
105
130
|
getNewLine: () => ts__default["default"].sys.newLine,
|
|
106
|
-
getCanonicalFileName: ts__default["default"].sys.useCaseSensitiveFileNames ?
|
|
131
|
+
getCanonicalFileName: ts__default["default"].sys.useCaseSensitiveFileNames ? f => f : f => f.toLowerCase()
|
|
107
132
|
};
|
|
133
|
+
|
|
108
134
|
async function _buildTypes(options) {
|
|
109
|
-
const {
|
|
110
|
-
|
|
111
|
-
|
|
135
|
+
const {
|
|
136
|
+
cwd,
|
|
137
|
+
outDir,
|
|
138
|
+
sourcePath,
|
|
139
|
+
tsconfig
|
|
140
|
+
} = options;
|
|
141
|
+
|
|
142
|
+
const compilerOptions = _objectSpread(_objectSpread({}, tsconfig.options), {}, {
|
|
112
143
|
declaration: true,
|
|
113
144
|
declarationDir: outDir,
|
|
114
145
|
emitDeclarationOnly: true,
|
|
115
146
|
noEmit: false,
|
|
116
147
|
outDir
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
compilerOptions.rootDir ? path__default["default"].resolve(cwd, compilerOptions.rootDir) : path__default["default"].dirname(path__default["default"].resolve(cwd, sourcePath))
|
|
121
|
-
) || ".";
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
const rootDir = path__default["default"].relative(cwd, compilerOptions.rootDir ? path__default["default"].resolve(cwd, compilerOptions.rootDir) : path__default["default"].dirname(path__default["default"].resolve(cwd, sourcePath))) || ".";
|
|
122
151
|
const program = ts__default["default"].createProgram(tsconfig.fileNames, compilerOptions);
|
|
123
152
|
const sourceFiles = program.getSourceFiles();
|
|
124
|
-
const sourceFile = sourceFiles.find(
|
|
153
|
+
const sourceFile = sourceFiles.find(f => f.fileName === path__default["default"].resolve(cwd, sourcePath));
|
|
154
|
+
|
|
125
155
|
if (!sourceFile) {
|
|
126
|
-
throw new Error(
|
|
156
|
+
throw new Error("source file not found: ".concat(sourcePath));
|
|
127
157
|
}
|
|
158
|
+
|
|
128
159
|
const emitResult = program.emit();
|
|
129
160
|
const allDiagnostics = ts__default["default"].getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
|
|
130
|
-
allDiagnostics.forEach(
|
|
161
|
+
allDiagnostics.forEach(diagnostic => {
|
|
131
162
|
if (diagnostic.file && diagnostic.start) {
|
|
132
|
-
const {
|
|
163
|
+
const {
|
|
164
|
+
line,
|
|
165
|
+
character
|
|
166
|
+
} = ts__default["default"].getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
|
|
133
167
|
const message = ts__default["default"].flattenDiagnosticMessageText(diagnostic.messageText, "\n");
|
|
134
|
-
console.log(
|
|
135
|
-
${message}`);
|
|
168
|
+
console.log("".concat(diagnostic.file.fileName, " ").concat(line + 1, ":").concat(character + 1, "\n").concat(message));
|
|
136
169
|
} else {
|
|
137
170
|
console.log(ts__default["default"].flattenDiagnosticMessageText(diagnostic.messageText, "\n"));
|
|
138
171
|
}
|
|
139
172
|
});
|
|
173
|
+
|
|
140
174
|
if (emitResult.emitSkipped) {
|
|
141
|
-
const errors = allDiagnostics.filter(
|
|
175
|
+
const errors = allDiagnostics.filter(diag => diag.category === ts__default["default"].DiagnosticCategory.Error);
|
|
176
|
+
|
|
142
177
|
if (errors.length) {
|
|
143
178
|
console.error(ts__default["default"].formatDiagnostics(errors, formatHost));
|
|
144
179
|
throw new Error("failed to compile");
|
|
145
180
|
}
|
|
146
181
|
}
|
|
182
|
+
|
|
147
183
|
const typesPath = path__default["default"].resolve(outDir, path__default["default"].relative(rootDir, path__default["default"].resolve(cwd, sourcePath))).replace(/\.[jt]sx?$/, ".d.ts");
|
|
148
|
-
return {
|
|
184
|
+
return {
|
|
185
|
+
path: typesPath
|
|
186
|
+
};
|
|
149
187
|
}
|
|
150
188
|
|
|
151
189
|
class _DtsError extends Error {
|
|
@@ -153,10 +191,19 @@ class _DtsError extends Error {
|
|
|
153
191
|
super(message);
|
|
154
192
|
this.messages = messages;
|
|
155
193
|
}
|
|
194
|
+
|
|
156
195
|
}
|
|
157
196
|
|
|
158
197
|
function _createApiExtractorConfig(options) {
|
|
159
|
-
const {
|
|
198
|
+
const {
|
|
199
|
+
distPath,
|
|
200
|
+
exportPath,
|
|
201
|
+
filePath,
|
|
202
|
+
messages,
|
|
203
|
+
projectPath,
|
|
204
|
+
sourcePath,
|
|
205
|
+
tsconfigPath
|
|
206
|
+
} = options;
|
|
160
207
|
return {
|
|
161
208
|
apiReport: {
|
|
162
209
|
enabled: false,
|
|
@@ -167,7 +214,7 @@ function _createApiExtractorConfig(options) {
|
|
|
167
214
|
},
|
|
168
215
|
docModel: {
|
|
169
216
|
enabled: false,
|
|
170
|
-
apiJsonFilePath: path__default["default"].resolve(distPath,
|
|
217
|
+
apiJsonFilePath: path__default["default"].resolve(distPath, "".concat(exportPath, ".api.json"))
|
|
171
218
|
},
|
|
172
219
|
dtsRollup: {
|
|
173
220
|
enabled: true,
|
|
@@ -183,31 +230,33 @@ function _createApiExtractorConfig(options) {
|
|
|
183
230
|
}
|
|
184
231
|
|
|
185
232
|
async function _createTSDocConfig(opts) {
|
|
186
|
-
const {
|
|
233
|
+
const {
|
|
234
|
+
customTags
|
|
235
|
+
} = opts;
|
|
236
|
+
|
|
187
237
|
if (customTags.length === 0) {
|
|
188
238
|
return void 0;
|
|
189
239
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
);
|
|
240
|
+
|
|
241
|
+
const tsDocBaseBuf = await fs.readFile(require.resolve("@microsoft/api-extractor/extends/tsdoc-base.json"));
|
|
193
242
|
const tsDocBaseConfig = jsoncParser.parse(tsDocBaseBuf.toString());
|
|
194
|
-
const tagDefinitions = (tsDocBaseConfig.tagDefinitions || []).concat(
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
);
|
|
201
|
-
|
|
243
|
+
const tagDefinitions = (tsDocBaseConfig.tagDefinitions || []).concat(customTags.map(t => ({
|
|
244
|
+
tagName: "@".concat(t.name),
|
|
245
|
+
syntaxKind: t.syntaxKind,
|
|
246
|
+
allowMultiple: t.allowMultiple
|
|
247
|
+
})));
|
|
248
|
+
|
|
249
|
+
const supportForTags = _objectSpread({}, tsDocBaseConfig.supportForTags);
|
|
250
|
+
|
|
202
251
|
for (const customTag of customTags) {
|
|
203
|
-
supportForTags[
|
|
252
|
+
supportForTags["@".concat(customTag.name)] = true;
|
|
204
253
|
}
|
|
205
|
-
|
|
206
|
-
|
|
254
|
+
|
|
255
|
+
return tsdocConfig.TSDocConfigFile.loadFromObject(_objectSpread(_objectSpread({}, tsDocBaseConfig), {}, {
|
|
207
256
|
noStandardTags: false,
|
|
208
257
|
tagDefinitions,
|
|
209
258
|
supportForTags
|
|
210
|
-
});
|
|
259
|
+
}));
|
|
211
260
|
}
|
|
212
261
|
|
|
213
262
|
const _LOG_LEVELS = {
|
|
@@ -216,15 +265,27 @@ const _LOG_LEVELS = {
|
|
|
216
265
|
off: "none",
|
|
217
266
|
warn: "warning"
|
|
218
267
|
};
|
|
268
|
+
|
|
219
269
|
async function _extractTypes(options) {
|
|
220
|
-
const {
|
|
270
|
+
const {
|
|
271
|
+
distPath,
|
|
272
|
+
exportPath,
|
|
273
|
+
files,
|
|
274
|
+
filePath,
|
|
275
|
+
projectPath,
|
|
276
|
+
rules,
|
|
277
|
+
sourcePath,
|
|
278
|
+
tsconfigPath
|
|
279
|
+
} = options;
|
|
221
280
|
const tsdocConfigFile = await _createTSDocConfig({
|
|
222
281
|
customTags: []
|
|
223
282
|
});
|
|
283
|
+
|
|
224
284
|
function _ruleToLogLevel(key, defaultLevel) {
|
|
225
285
|
const r = rules == null ? void 0 : rules[key];
|
|
226
286
|
return r ? _LOG_LEVELS[r] : defaultLevel || "warning";
|
|
227
287
|
}
|
|
288
|
+
|
|
228
289
|
const messagesConfig = {
|
|
229
290
|
compilerMessageReporting: {
|
|
230
291
|
default: {
|
|
@@ -282,35 +343,46 @@ async function _extractTypes(options) {
|
|
|
282
343
|
const extractorResult = apiExtractor.Extractor.invoke(extractorConfig, {
|
|
283
344
|
localBuild: true,
|
|
284
345
|
showVerboseMessages: true,
|
|
346
|
+
|
|
285
347
|
messageCallback(message) {
|
|
286
348
|
messages.push(message);
|
|
287
349
|
message.handled = true;
|
|
288
350
|
}
|
|
351
|
+
|
|
289
352
|
});
|
|
290
353
|
const typesPath = path__default["default"].resolve(distPath, filePath);
|
|
291
354
|
const typesBuf = await fs__default["default"].readFile(typesPath);
|
|
292
355
|
const prettierConfig = await prettier__default["default"].resolveConfig(typesPath);
|
|
293
356
|
await mkdirp__default["default"](path__default["default"].dirname(typesPath));
|
|
294
|
-
await fs__default["default"].writeFile(
|
|
295
|
-
typesPath
|
|
296
|
-
|
|
297
|
-
...prettierConfig,
|
|
298
|
-
filepath: typesPath
|
|
299
|
-
})
|
|
300
|
-
);
|
|
357
|
+
await fs__default["default"].writeFile(typesPath, prettier__default["default"].format(typesBuf.toString(), _objectSpread(_objectSpread({}, prettierConfig), {}, {
|
|
358
|
+
filepath: typesPath
|
|
359
|
+
})));
|
|
301
360
|
files.push({
|
|
302
361
|
type: "types",
|
|
303
362
|
path: typesPath
|
|
304
363
|
});
|
|
305
|
-
return {
|
|
364
|
+
return {
|
|
365
|
+
extractorResult,
|
|
366
|
+
messages
|
|
367
|
+
};
|
|
306
368
|
}
|
|
307
369
|
|
|
308
370
|
const rimraf = util.promisify(rimrafCallback__default["default"]);
|
|
371
|
+
|
|
309
372
|
async function _doExtract(ctx, task) {
|
|
310
373
|
var _a;
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
374
|
+
|
|
375
|
+
const {
|
|
376
|
+
config,
|
|
377
|
+
cwd,
|
|
378
|
+
dist,
|
|
379
|
+
files,
|
|
380
|
+
ts
|
|
381
|
+
} = ctx;
|
|
382
|
+
if (!ts.config || !ts.configPath) return {
|
|
383
|
+
type: "dts",
|
|
384
|
+
messages: []
|
|
385
|
+
};
|
|
314
386
|
const sourcePath = task.sourcePath;
|
|
315
387
|
const exportPath = task.exportPath === "." ? "./index" : task.exportPath;
|
|
316
388
|
const distPath = path__default["default"].resolve(cwd, dist);
|
|
@@ -326,7 +398,9 @@ async function _doExtract(ctx, task) {
|
|
|
326
398
|
sourcePath,
|
|
327
399
|
tsconfig: ts.config
|
|
328
400
|
});
|
|
329
|
-
const {
|
|
401
|
+
const {
|
|
402
|
+
messages
|
|
403
|
+
} = await _extractTypes({
|
|
330
404
|
cwd,
|
|
331
405
|
exportPath,
|
|
332
406
|
files,
|
|
@@ -338,23 +412,25 @@ async function _doExtract(ctx, task) {
|
|
|
338
412
|
distPath
|
|
339
413
|
});
|
|
340
414
|
await tmpDir.removeCallback();
|
|
341
|
-
|
|
415
|
+
|
|
416
|
+
if (messages.some(msg => msg.logLevel === "error")) {
|
|
342
417
|
throw new _DtsError("encountered errors when extracting types", messages);
|
|
343
418
|
}
|
|
344
|
-
|
|
419
|
+
|
|
420
|
+
return {
|
|
421
|
+
type: "dts",
|
|
422
|
+
messages
|
|
423
|
+
};
|
|
345
424
|
}
|
|
346
425
|
|
|
347
426
|
const _dtsTask = {
|
|
348
|
-
name: (_ctx, task) => [
|
|
349
|
-
`build type definitions`,
|
|
350
|
-
` ${chalk__default["default"].blue(task.importId)}: ${task.sourcePath} -> ${task.targetPath}`
|
|
351
|
-
].join("\n"),
|
|
427
|
+
name: (_ctx, task) => ["build type definitions", " ".concat(chalk__default["default"].blue(task.importId), ": ").concat(task.sourcePath, " -> ").concat(task.targetPath)].join("\n"),
|
|
352
428
|
exec: (ctx, task) => {
|
|
353
|
-
return new rxjs.Observable(
|
|
354
|
-
_doExtract(ctx, task).then(
|
|
429
|
+
return new rxjs.Observable(observer => {
|
|
430
|
+
_doExtract(ctx, task).then(result => {
|
|
355
431
|
observer.next(result);
|
|
356
432
|
observer.complete();
|
|
357
|
-
}).catch(
|
|
433
|
+
}).catch(err => {
|
|
358
434
|
observer.error(err);
|
|
359
435
|
});
|
|
360
436
|
});
|
|
@@ -363,7 +439,10 @@ const _dtsTask = {
|
|
|
363
439
|
_printExtractMessages(ctx, result.messages);
|
|
364
440
|
},
|
|
365
441
|
error: (ctx, _task, err) => {
|
|
366
|
-
const {
|
|
442
|
+
const {
|
|
443
|
+
logger
|
|
444
|
+
} = ctx;
|
|
445
|
+
|
|
367
446
|
if (err instanceof _DtsError) {
|
|
368
447
|
_printExtractMessages(ctx, err.messages);
|
|
369
448
|
} else if (err instanceof Error) {
|
|
@@ -371,28 +450,31 @@ const _dtsTask = {
|
|
|
371
450
|
}
|
|
372
451
|
}
|
|
373
452
|
};
|
|
374
|
-
|
|
375
453
|
const _dtsWatchTask = {
|
|
376
|
-
name: (_ctx, task) => [
|
|
377
|
-
`build type definitions`,
|
|
378
|
-
` ${chalk__default["default"].blue(task.importId)}: ${task.sourcePath} -> ${task.targetPath}`
|
|
379
|
-
].join("\n"),
|
|
454
|
+
name: (_ctx, task) => ["build type definitions", " ".concat(chalk__default["default"].blue(task.importId), ": ").concat(task.sourcePath, " -> ").concat(task.targetPath)].join("\n"),
|
|
380
455
|
exec: (ctx, task) => {
|
|
381
|
-
return new rxjs.Observable(
|
|
382
|
-
_doExtract(ctx, task).then(
|
|
456
|
+
return new rxjs.Observable(observer => {
|
|
457
|
+
_doExtract(ctx, task).then(result => {
|
|
383
458
|
observer.next(result);
|
|
384
459
|
observer.complete();
|
|
385
|
-
}).catch(
|
|
460
|
+
}).catch(err => observer.error(err));
|
|
386
461
|
});
|
|
387
462
|
},
|
|
388
463
|
complete: (ctx, _task, result) => {
|
|
389
|
-
const {
|
|
464
|
+
const {
|
|
465
|
+
logger
|
|
466
|
+
} = ctx;
|
|
467
|
+
|
|
390
468
|
_printExtractMessages(ctx, result.messages);
|
|
469
|
+
|
|
391
470
|
logger.warn("watching typescript definitions is currently not supported");
|
|
392
471
|
logger.log();
|
|
393
472
|
},
|
|
394
473
|
error: (ctx, _task, err) => {
|
|
395
|
-
const {
|
|
474
|
+
const {
|
|
475
|
+
logger
|
|
476
|
+
} = ctx;
|
|
477
|
+
|
|
396
478
|
if (err instanceof _DtsError) {
|
|
397
479
|
_printExtractMessages(ctx, err.messages);
|
|
398
480
|
} else if (err instanceof Error) {
|
|
@@ -402,124 +484,163 @@ const _dtsWatchTask = {
|
|
|
402
484
|
};
|
|
403
485
|
|
|
404
486
|
function _resolveRollupConfig(ctx, buildTask) {
|
|
405
|
-
var
|
|
406
|
-
|
|
407
|
-
|
|
487
|
+
var _ref, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
488
|
+
|
|
489
|
+
var _a;
|
|
490
|
+
|
|
491
|
+
const {
|
|
492
|
+
format,
|
|
493
|
+
runtime,
|
|
494
|
+
target
|
|
495
|
+
} = buildTask;
|
|
496
|
+
const {
|
|
497
|
+
config,
|
|
498
|
+
cwd,
|
|
499
|
+
external,
|
|
500
|
+
dist: outDir,
|
|
501
|
+
pkg,
|
|
502
|
+
ts
|
|
503
|
+
} = ctx;
|
|
408
504
|
const outputExt = format === "commonjs" ? ".cjs" : pkg.type === "module" ? ".mjs" : ".js";
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
505
|
+
const minify = (_ref = config == null ? void 0 : config.minify) !== null && _ref !== void 0 ? _ref : true;
|
|
506
|
+
const pathAliases = Object.fromEntries(Object.entries(((_a = ts.config) == null ? void 0 : _a.options.paths) || {}).map(_ref2 => {
|
|
507
|
+
let [key, val] = _ref2;
|
|
508
|
+
|
|
509
|
+
var _a2;
|
|
510
|
+
|
|
511
|
+
return [key, path__default["default"].resolve(cwd, ((_a2 = ts.config) == null ? void 0 : _a2.options.baseUrl) || ".", val[0])];
|
|
512
|
+
}));
|
|
513
|
+
const entries = buildTask.entries.map(entry => {
|
|
514
|
+
return _objectSpread(_objectSpread({}, entry), {}, {
|
|
418
515
|
name: path__default["default"].relative(outDir, entry.output).replace(/\.[^/.]+$/, "")
|
|
419
|
-
};
|
|
516
|
+
});
|
|
420
517
|
}, {});
|
|
421
518
|
return {
|
|
422
519
|
inputOptions: {
|
|
423
520
|
context: cwd,
|
|
424
|
-
external:
|
|
521
|
+
external: id => {
|
|
425
522
|
const idParts = id.split("/");
|
|
426
|
-
const name = idParts[0].startsWith("@") ?
|
|
523
|
+
const name = idParts[0].startsWith("@") ? "".concat(idParts[0], "/").concat(idParts[1]) : idParts[0];
|
|
524
|
+
|
|
427
525
|
if (name && external.includes(name)) {
|
|
428
526
|
return true;
|
|
429
527
|
}
|
|
528
|
+
|
|
430
529
|
return false;
|
|
431
530
|
},
|
|
432
531
|
input: entries.reduce((acc, entry) => {
|
|
433
|
-
return {
|
|
532
|
+
return _objectSpread(_objectSpread({}, acc), {}, {
|
|
533
|
+
[entry.name]: entry.source
|
|
534
|
+
});
|
|
434
535
|
}, {}),
|
|
536
|
+
|
|
435
537
|
onwarn(warning, rollupWarn) {
|
|
436
538
|
if (!warning.code || !["CIRCULAR_DEPENDENCY"].includes(warning.code)) {
|
|
437
539
|
rollupWarn(warning);
|
|
438
540
|
}
|
|
439
541
|
},
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
}
|
|
451
|
-
return JSON.stringify(
|
|
452
|
-
path__default["default"].relative(cwd, path__default["default"].resolve(outDir, entry.name + outputExt))
|
|
453
|
-
);
|
|
454
|
-
},
|
|
455
|
-
"process.env.PKG_FORMAT": JSON.stringify(format),
|
|
456
|
-
"process.env.PKG_RUNTIME": JSON.stringify(runtime),
|
|
457
|
-
"process.env.PKG_VERSION": JSON.stringify(process.env.PKG_VERSION || pkg.version)
|
|
542
|
+
|
|
543
|
+
plugins: [replace__default["default"]({
|
|
544
|
+
preventAssignment: true,
|
|
545
|
+
values: _objectSpread({}, pkg.name === "@sanity/pkg-utils" ? {} : {
|
|
546
|
+
"process.env.PKG_FILE_PATH": arg => {
|
|
547
|
+
const sourcePath = "./" + path__default["default"].relative(cwd, arg);
|
|
548
|
+
const entry = entries.find(e => e.source === sourcePath);
|
|
549
|
+
|
|
550
|
+
if (!entry) {
|
|
551
|
+
throw new Error("could not find source entry: ".concat(sourcePath));
|
|
458
552
|
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
browser: runtime === "browser",
|
|
466
|
-
extensions: [".cjs", ".mjs", ".js", ".jsx", ".json", ".node"],
|
|
467
|
-
preferBuiltins: true
|
|
468
|
-
}),
|
|
469
|
-
commonjs__default["default"]({
|
|
470
|
-
esmExternals: false,
|
|
471
|
-
extensions: [".js"]
|
|
472
|
-
}),
|
|
473
|
-
json__default["default"](),
|
|
474
|
-
esbuild__default["default"]({
|
|
475
|
-
minify: (_b = config == null ? void 0 : config.minify) != null ? _b : true,
|
|
476
|
-
jsx: (_c = config == null ? void 0 : config.jsx) != null ? _c : "automatic",
|
|
477
|
-
jsxFactory: (_d = config == null ? void 0 : config.jsxFactory) != null ? _d : "createElement",
|
|
478
|
-
jsxFragment: (_e = config == null ? void 0 : config.jsxFragment) != null ? _e : "Fragment",
|
|
479
|
-
jsxImportSource: (_f = config == null ? void 0 : config.jsxImportSource) != null ? _f : "react",
|
|
480
|
-
target,
|
|
481
|
-
tsconfig: ctx.ts.configPath || "tsconfig.json"
|
|
553
|
+
|
|
554
|
+
return JSON.stringify(path__default["default"].relative(cwd, path__default["default"].resolve(outDir, entry.name + outputExt)));
|
|
555
|
+
},
|
|
556
|
+
"process.env.PKG_FORMAT": JSON.stringify(format),
|
|
557
|
+
"process.env.PKG_RUNTIME": JSON.stringify(runtime),
|
|
558
|
+
"process.env.PKG_VERSION": JSON.stringify(process.env.PKG_VERSION || pkg.version)
|
|
482
559
|
})
|
|
483
|
-
]
|
|
560
|
+
}), alias__default["default"]({
|
|
561
|
+
entries: _objectSpread({}, pathAliases)
|
|
562
|
+
}), pluginNodeResolve.nodeResolve({
|
|
563
|
+
browser: runtime === "browser",
|
|
564
|
+
extensions: [".cjs", ".mjs", ".js", ".jsx", ".json", ".node"],
|
|
565
|
+
preferBuiltins: true
|
|
566
|
+
}), commonjs__default["default"]({
|
|
567
|
+
esmExternals: false,
|
|
568
|
+
extensions: [".js"]
|
|
569
|
+
}), json__default["default"](), esbuild__default["default"]({
|
|
570
|
+
jsx: (_ref3 = config == null ? void 0 : config.jsx) !== null && _ref3 !== void 0 ? _ref3 : "automatic",
|
|
571
|
+
jsxFactory: (_ref4 = config == null ? void 0 : config.jsxFactory) !== null && _ref4 !== void 0 ? _ref4 : "createElement",
|
|
572
|
+
jsxFragment: (_ref5 = config == null ? void 0 : config.jsxFragment) !== null && _ref5 !== void 0 ? _ref5 : "Fragment",
|
|
573
|
+
jsxImportSource: (_ref6 = config == null ? void 0 : config.jsxImportSource) !== null && _ref6 !== void 0 ? _ref6 : "react",
|
|
574
|
+
target,
|
|
575
|
+
tsconfig: ctx.ts.configPath || "tsconfig.json"
|
|
576
|
+
}), pluginBabel.getBabelOutputPlugin({
|
|
577
|
+
plugins: ["@babel/plugin-proposal-object-rest-spread"],
|
|
578
|
+
presets: [["@babel/preset-env", {
|
|
579
|
+
targets: pkg.browserslist || _resolveBuildContext._DEFAULTS.browserslist
|
|
580
|
+
}]]
|
|
581
|
+
}), minify && rollupPluginTerser.terser({
|
|
582
|
+
output: {
|
|
583
|
+
comments: (_node, comment) => {
|
|
584
|
+
const text = comment.value;
|
|
585
|
+
const type = comment.type;
|
|
586
|
+
|
|
587
|
+
if (type == "comment2") {
|
|
588
|
+
return /@preserve|@license|@cc_on/i.test(text);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
return false;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
})].filter(Boolean),
|
|
484
595
|
treeshake: {
|
|
485
596
|
propertyReadSideEffects: false
|
|
486
597
|
}
|
|
487
598
|
},
|
|
488
599
|
outputOptions: {
|
|
489
|
-
chunkFileNames: () =>
|
|
600
|
+
chunkFileNames: () => "_[name]-[hash]".concat(outputExt),
|
|
490
601
|
dir: outDir,
|
|
491
|
-
entryFileNames: () =>
|
|
602
|
+
entryFileNames: () => "[name]".concat(outputExt),
|
|
492
603
|
format,
|
|
493
604
|
exports: "auto",
|
|
494
|
-
sourcemap: (
|
|
605
|
+
sourcemap: (_ref7 = config == null ? void 0 : config.sourcemap) !== null && _ref7 !== void 0 ? _ref7 : true
|
|
495
606
|
}
|
|
496
607
|
};
|
|
497
608
|
}
|
|
498
609
|
|
|
499
610
|
const _rollupTask = {
|
|
500
|
-
name: (ctx, task) =>
|
|
501
|
-
${task.entries.map((e) => `${chalk__default["default"].blue(path__default["default"].join(ctx.pkg.name, e.path))}: ${e.source} -> ${e.output}`).join("\n ")}`,
|
|
611
|
+
name: (ctx, task) => "build javascript files (target ".concat(task.target.join(" + "), ", format ").concat(task.format, ")\n ").concat(task.entries.map(e => "".concat(chalk__default["default"].blue(path__default["default"].join(ctx.pkg.name, e.path)), ": ").concat(e.source, " -> ").concat(e.output)).join("\n ")),
|
|
502
612
|
exec: (ctx, task) => {
|
|
503
|
-
return new rxjs.Observable(
|
|
504
|
-
_execPromise(ctx, task).then(
|
|
613
|
+
return new rxjs.Observable(observer => {
|
|
614
|
+
_execPromise(ctx, task).then(result => {
|
|
505
615
|
observer.next(result);
|
|
506
616
|
observer.complete();
|
|
507
|
-
}).catch(
|
|
617
|
+
}).catch(err => observer.error(err));
|
|
508
618
|
});
|
|
509
619
|
},
|
|
510
|
-
complete: () => {
|
|
511
|
-
},
|
|
620
|
+
complete: () => {},
|
|
512
621
|
error: (_ctx, _task, err) => {
|
|
513
622
|
if (err instanceof Error) {
|
|
514
623
|
console.log(err);
|
|
515
624
|
}
|
|
516
625
|
}
|
|
517
626
|
};
|
|
627
|
+
|
|
518
628
|
async function _execPromise(ctx, task) {
|
|
519
|
-
const {
|
|
520
|
-
|
|
629
|
+
const {
|
|
630
|
+
files,
|
|
631
|
+
dist: outDir
|
|
632
|
+
} = ctx;
|
|
633
|
+
|
|
634
|
+
const {
|
|
635
|
+
inputOptions,
|
|
636
|
+
outputOptions
|
|
637
|
+
} = _resolveRollupConfig(ctx, task);
|
|
638
|
+
|
|
521
639
|
const bundle = await rollup.rollup(inputOptions);
|
|
522
|
-
const {
|
|
640
|
+
const {
|
|
641
|
+
output
|
|
642
|
+
} = await bundle.generate(outputOptions);
|
|
643
|
+
|
|
523
644
|
for (const chunkOrAsset of output) {
|
|
524
645
|
if (chunkOrAsset.type === "asset") {
|
|
525
646
|
files.push({
|
|
@@ -533,22 +654,26 @@ async function _execPromise(ctx, task) {
|
|
|
533
654
|
});
|
|
534
655
|
}
|
|
535
656
|
}
|
|
657
|
+
|
|
536
658
|
await bundle.write(outputOptions);
|
|
537
659
|
await bundle.close();
|
|
538
660
|
}
|
|
539
661
|
|
|
540
662
|
const _rollupWatchTask = {
|
|
541
|
-
name: (ctx, task) =>
|
|
542
|
-
${task.entries.map((e) => `${chalk__default["default"].blue(path__default["default"].join(ctx.pkg.name, e.path))}: ${e.source} -> ${e.output}`).join("\n ")}`,
|
|
663
|
+
name: (ctx, task) => "build javascript files (target ".concat(task.target.join(" + "), ", format ").concat(task.format, ")\n ").concat(task.entries.map(e => "".concat(chalk__default["default"].blue(path__default["default"].join(ctx.pkg.name, e.path)), ": ").concat(e.source, " -> ").concat(e.output)).join("\n ")),
|
|
543
664
|
exec: (ctx, task) => {
|
|
544
|
-
const {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
665
|
+
const {
|
|
666
|
+
inputOptions,
|
|
667
|
+
outputOptions
|
|
668
|
+
} = _resolveRollupConfig(ctx, task);
|
|
669
|
+
|
|
670
|
+
return new rxjs.Observable(observer => {
|
|
671
|
+
const watchOptions = _objectSpread(_objectSpread({}, inputOptions), {}, {
|
|
548
672
|
output: outputOptions
|
|
549
|
-
};
|
|
673
|
+
});
|
|
674
|
+
|
|
550
675
|
const watcher = rollup.watch(watchOptions);
|
|
551
|
-
watcher.on("event",
|
|
676
|
+
watcher.on("event", event => {
|
|
552
677
|
observer.next(event);
|
|
553
678
|
});
|
|
554
679
|
return () => {
|
|
@@ -557,37 +682,43 @@ const _rollupWatchTask = {
|
|
|
557
682
|
});
|
|
558
683
|
},
|
|
559
684
|
complete: (ctx, task, event) => {
|
|
560
|
-
const {
|
|
685
|
+
const {
|
|
686
|
+
logger
|
|
687
|
+
} = ctx;
|
|
688
|
+
|
|
561
689
|
if (event.code === "BUNDLE_END") {
|
|
562
|
-
logger.success(
|
|
563
|
-
`build javascript files (target ${task.target.join(" + ")}, format ${task.format})
|
|
564
|
-
${task.entries.map((e) => `${chalk__default["default"].blue(path__default["default"].join(ctx.pkg.name, e.path))}: ${e.source} -> ${e.output}`).join("\n ")}`
|
|
565
|
-
);
|
|
690
|
+
logger.success("build javascript files (target ".concat(task.target.join(" + "), ", format ").concat(task.format, ")\n ").concat(task.entries.map(e => "".concat(chalk__default["default"].blue(path__default["default"].join(ctx.pkg.name, e.path)), ": ").concat(e.source, " -> ").concat(e.output)).join("\n ")));
|
|
566
691
|
logger.log("");
|
|
567
692
|
return;
|
|
568
693
|
}
|
|
694
|
+
|
|
569
695
|
if (event.code === "BUNDLE_START") {
|
|
570
696
|
return;
|
|
571
697
|
}
|
|
698
|
+
|
|
572
699
|
if (event.code === "END") {
|
|
573
700
|
return;
|
|
574
701
|
}
|
|
702
|
+
|
|
575
703
|
if (event.code === "ERROR") {
|
|
576
704
|
logger.error(event.code, event);
|
|
577
705
|
return;
|
|
578
706
|
}
|
|
707
|
+
|
|
579
708
|
if (event.code === "START") {
|
|
580
709
|
return;
|
|
581
710
|
}
|
|
582
711
|
},
|
|
583
712
|
error: (ctx, _task, err) => {
|
|
584
|
-
const {
|
|
713
|
+
const {
|
|
714
|
+
logger
|
|
715
|
+
} = ctx;
|
|
716
|
+
|
|
585
717
|
if (err instanceof Error) {
|
|
586
718
|
logger.log(err);
|
|
587
719
|
}
|
|
588
720
|
}
|
|
589
721
|
};
|
|
590
|
-
|
|
591
722
|
const _buildTaskHandlers = {
|
|
592
723
|
"build:dts": _dtsTask,
|
|
593
724
|
"build:js": _rollupTask
|
|
@@ -596,12 +727,10 @@ const _watchTaskHandlers = {
|
|
|
596
727
|
"watch:dts": _dtsWatchTask,
|
|
597
728
|
"watch:js": _rollupWatchTask
|
|
598
729
|
};
|
|
599
|
-
|
|
600
730
|
exports._buildTaskHandlers = _buildTaskHandlers;
|
|
601
731
|
exports._dtsTask = _dtsTask;
|
|
602
732
|
exports._dtsWatchTask = _dtsWatchTask;
|
|
603
|
-
exports._resolveEsTarget = _resolveEsTarget;
|
|
604
733
|
exports._rollupTask = _rollupTask;
|
|
605
734
|
exports._rollupWatchTask = _rollupWatchTask;
|
|
606
735
|
exports._watchTaskHandlers = _watchTaskHandlers;
|
|
607
|
-
//# sourceMappingURL=_index-
|
|
736
|
+
//# sourceMappingURL=_index-46cab21c.cjs.map
|