powerlines 0.37.61 → 0.37.63
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/api.cjs +2 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.js +3 -3
- package/dist/{chunk-MEMSYDRH.js → chunk-46MYUNRY.js} +15 -8
- package/dist/{chunk-5M27AS3Q.js → chunk-4OU7TSVU.js} +3 -3
- package/dist/{chunk-FFGY4QSN.js → chunk-7B5I5KVD.js} +3 -3
- package/dist/{chunk-NFJ5YUAW.cjs → chunk-7HN4NUEP.cjs} +5 -5
- package/dist/{chunk-EMHX2GAV.js → chunk-B6DM5RJL.js} +3 -3
- package/dist/chunk-C35YACK3.cjs +12 -0
- package/dist/chunk-GRREX4AZ.cjs +12 -0
- package/dist/{chunk-ZF2KDFEO.cjs → chunk-I63BFWL7.cjs} +15 -8
- package/dist/{chunk-P772K3NL.cjs → chunk-JZOLOGPH.cjs} +4 -4
- package/dist/{chunk-LPRLN5B5.js → chunk-LROIIYPX.js} +3 -3
- package/dist/{chunk-NHZPWHEU.cjs → chunk-UYI2RSZS.cjs} +4 -4
- package/dist/{chunk-34RE5OJK.js → chunk-ZBPEEQD7.js} +3 -3
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.js +2 -2
- package/dist/index.cjs +10 -10
- package/dist/index.js +2 -2
- package/dist/lib/{chunk-T7SNYIVL.cjs → chunk-B6IYKQHA.cjs} +15 -8
- package/dist/lib/chunk-B6IYKQHA.cjs.map +1 -0
- package/dist/lib/{chunk-FI4BHRSY.js → chunk-EG5DQURZ.js} +15 -8
- package/dist/lib/chunk-EG5DQURZ.js.map +1 -0
- package/dist/lib/index.cjs +2 -2
- package/dist/lib/index.js +1 -1
- package/dist/lib/unplugin/factory.cjs +2 -2
- package/dist/lib/unplugin/factory.js +1 -1
- package/dist/lib/unplugin/index.cjs +2 -2
- package/dist/lib/unplugin/index.js +1 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +8 -8
- package/dist/nuxt.js +4 -4
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.js +2 -2
- package/dist/tsdown.cjs +4 -4
- package/dist/tsdown.js +3 -3
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +8 -8
- package/dist/unplugin.js +4 -4
- package/dist/vite.cjs +6 -6
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.js +3 -3
- package/package.json +15 -15
- package/dist/chunk-5RZ3YT3J.cjs +0 -12
- package/dist/chunk-EP3VXPE7.cjs +0 -12
- package/dist/lib/chunk-FI4BHRSY.js.map +0 -1
- package/dist/lib/chunk-T7SNYIVL.cjs.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkI63BFWL7_cjs = require('./chunk-I63BFWL7.cjs');
|
|
4
4
|
require('./chunk-B6DVCLP5.cjs');
|
|
5
5
|
require('./chunk-V5WOGN7O.cjs');
|
|
6
6
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkI63BFWL7_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
|
16
16
|
//# sourceMappingURL=api.cjs.map
|
package/dist/api.js
CHANGED
package/dist/astro.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkJZOLOGPH_cjs = require('./chunk-JZOLOGPH.cjs');
|
|
6
6
|
require('./chunk-NSSJOBJ7.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-7HN4NUEP.cjs');
|
|
8
|
+
require('./chunk-I63BFWL7.cjs');
|
|
9
9
|
require('./chunk-B6DVCLP5.cjs');
|
|
10
10
|
require('./chunk-V5WOGN7O.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
|
|
16
16
|
vite: {
|
|
17
17
|
plugins: [
|
|
18
|
-
|
|
18
|
+
chunkJZOLOGPH_cjs.vite_default(config)
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
}), "astro");
|
package/dist/astro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-7B5I5KVD.js';
|
|
2
2
|
import './chunk-6JXP537N.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-ZBPEEQD7.js';
|
|
4
|
+
import './chunk-46MYUNRY.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -81,7 +81,7 @@ import '@stryke/fs/remove-file';
|
|
|
81
81
|
|
|
82
82
|
// package.json
|
|
83
83
|
var name = "powerlines";
|
|
84
|
-
var version = "0.37.
|
|
84
|
+
var version = "0.37.62";
|
|
85
85
|
var package_default = {
|
|
86
86
|
version};
|
|
87
87
|
|
|
@@ -302,6 +302,7 @@ function createProgram(context, override) {
|
|
|
302
302
|
__name(createProgram, "createProgram");
|
|
303
303
|
|
|
304
304
|
// src/internal/helpers/generate-types.ts
|
|
305
|
+
var getModuleCommentBlockRegex = /* @__PURE__ */ __name((moduleId) => new RegExp(`^\\/\\*\\*(?s:.)*@module ${moduleId}(?s:.)*\\*\\/\\s*`), "getModuleCommentBlockRegex");
|
|
305
306
|
function formatTypes(code) {
|
|
306
307
|
return code.replace(
|
|
307
308
|
// eslint-disable-next-line regexp/no-super-linear-backtracking
|
|
@@ -323,7 +324,7 @@ async function emitBuiltinTypes(context, files) {
|
|
|
323
324
|
declarationMap: false,
|
|
324
325
|
emitDeclarationOnly: true,
|
|
325
326
|
sourceMap: false,
|
|
326
|
-
outDir:
|
|
327
|
+
outDir: replacePath(context.builtinsPath, context.workspaceConfig.workspaceRoot),
|
|
327
328
|
composite: false,
|
|
328
329
|
incremental: false,
|
|
329
330
|
tsBuildInfoFile: void 0
|
|
@@ -351,10 +352,16 @@ async function emitBuiltinTypes(context, files) {
|
|
|
351
352
|
let builtinModules = "";
|
|
352
353
|
for (const emittedFile of emittedFiles) {
|
|
353
354
|
context.trace(`Processing emitted type declaration file: ${emittedFile.filePath}`);
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
355
|
+
const filePath = appendPath(emittedFile.filePath, context.workspaceConfig.workspaceRoot);
|
|
356
|
+
if (!filePath.endsWith(".map") && findFileName(filePath) !== "tsconfig.tsbuildinfo" && isParentPath(filePath, context.builtinsPath)) {
|
|
357
|
+
const moduleId = `${context.config.output?.builtinPrefix || context.config?.framework || "powerlines"}:${replaceExtension(replacePath(filePath, context.builtinsPath), "", {
|
|
358
|
+
fullExtension: true
|
|
359
|
+
})}`;
|
|
360
|
+
const moduleComment = emittedFile.text.match(getModuleCommentBlockRegex(moduleId))?.find((comment) => isSetString(comment?.trim()));
|
|
361
|
+
builtinModules += `${moduleComment ? `
|
|
362
|
+
${moduleComment.trim()}` : ""}
|
|
363
|
+
declare module "${moduleId}" {
|
|
364
|
+
${emittedFile.text.replace(moduleComment ?? "", "").trim().replace(/^\s*export\s*declare\s*/gm, "export ").replace(/^\s*declare\s*/gm, "")}
|
|
358
365
|
}
|
|
359
366
|
`;
|
|
360
367
|
}
|
|
@@ -5061,5 +5068,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
5061
5068
|
};
|
|
5062
5069
|
|
|
5063
5070
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant, name, version };
|
|
5064
|
-
//# sourceMappingURL=chunk-
|
|
5065
|
-
//# sourceMappingURL=chunk-
|
|
5071
|
+
//# sourceMappingURL=chunk-46MYUNRY.js.map
|
|
5072
|
+
//# sourceMappingURL=chunk-46MYUNRY.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-ZBPEEQD7.js';
|
|
2
2
|
import { createRolldownPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
|
|
5
5
|
var rolldown_default = rolldown;
|
|
6
6
|
|
|
7
7
|
export { rolldown, rolldown_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-4OU7TSVU.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-4OU7TSVU.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-6JXP537N.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-ZBPEEQD7.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -152,5 +152,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
152
152
|
var vite_default = vite;
|
|
153
153
|
|
|
154
154
|
export { vite, vite_default };
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
156
|
-
//# sourceMappingURL=chunk-
|
|
155
|
+
//# sourceMappingURL=chunk-7B5I5KVD.js.map
|
|
156
|
+
//# sourceMappingURL=chunk-7B5I5KVD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkI63BFWL7_cjs = require('./chunk-I63BFWL7.cjs');
|
|
4
4
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
var types = require('@storm-software/config-tools/types');
|
|
6
6
|
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
|
|
|
27
27
|
// src/lib/unplugin/factory.ts
|
|
28
28
|
function createUnpluginFactory(variant, decorate) {
|
|
29
29
|
return (config, meta) => {
|
|
30
|
-
const log =
|
|
30
|
+
const log = chunkI63BFWL7_cjs.createLog("unplugin", config);
|
|
31
31
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
32
32
|
try {
|
|
33
33
|
const userConfig = {
|
|
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
38
38
|
let api;
|
|
39
39
|
async function buildStart() {
|
|
40
40
|
log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
41
|
-
api = await
|
|
41
|
+
api = await chunkI63BFWL7_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
|
|
42
42
|
unplugin.setParseImpl(api.context.parse);
|
|
43
43
|
log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
|
|
44
44
|
await api.prepare({
|
|
@@ -137,5 +137,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
|
137
137
|
|
|
138
138
|
exports.createUnpluginFactory = createUnpluginFactory;
|
|
139
139
|
exports.getString = getString;
|
|
140
|
-
//# sourceMappingURL=chunk-
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-7HN4NUEP.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-7HN4NUEP.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-6JXP537N.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-ZBPEEQD7.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
|
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
|
|
|
29
29
|
var esbuild_default = esbuild;
|
|
30
30
|
|
|
31
31
|
export { esbuild, esbuild_default };
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-B6DM5RJL.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-B6DM5RJL.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7HN4NUEP_cjs = require('./chunk-7HN4NUEP.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunk7HN4NUEP_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-C35YACK3.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-C35YACK3.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7HN4NUEP_cjs = require('./chunk-7HN4NUEP.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunk7HN4NUEP_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-GRREX4AZ.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-GRREX4AZ.cjs.map
|
|
@@ -110,7 +110,7 @@ var $__namespace = /*#__PURE__*/_interopNamespace($);
|
|
|
110
110
|
|
|
111
111
|
// package.json
|
|
112
112
|
var name = "powerlines";
|
|
113
|
-
var version = "0.37.
|
|
113
|
+
var version = "0.37.62";
|
|
114
114
|
var package_default = {
|
|
115
115
|
version};
|
|
116
116
|
|
|
@@ -331,6 +331,7 @@ function createProgram(context, override) {
|
|
|
331
331
|
chunkPK6SKIKE_cjs.__name(createProgram, "createProgram");
|
|
332
332
|
|
|
333
333
|
// src/internal/helpers/generate-types.ts
|
|
334
|
+
var getModuleCommentBlockRegex = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((moduleId) => new RegExp(`^\\/\\*\\*(?s:.)*@module ${moduleId}(?s:.)*\\*\\/\\s*`), "getModuleCommentBlockRegex");
|
|
334
335
|
function formatTypes(code) {
|
|
335
336
|
return code.replace(
|
|
336
337
|
// eslint-disable-next-line regexp/no-super-linear-backtracking
|
|
@@ -352,7 +353,7 @@ async function emitBuiltinTypes(context, files) {
|
|
|
352
353
|
declarationMap: false,
|
|
353
354
|
emitDeclarationOnly: true,
|
|
354
355
|
sourceMap: false,
|
|
355
|
-
outDir:
|
|
356
|
+
outDir: replace.replacePath(context.builtinsPath, context.workspaceConfig.workspaceRoot),
|
|
356
357
|
composite: false,
|
|
357
358
|
incremental: false,
|
|
358
359
|
tsBuildInfoFile: void 0
|
|
@@ -380,10 +381,16 @@ async function emitBuiltinTypes(context, files) {
|
|
|
380
381
|
let builtinModules = "";
|
|
381
382
|
for (const emittedFile of emittedFiles) {
|
|
382
383
|
context.trace(`Processing emitted type declaration file: ${emittedFile.filePath}`);
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
384
|
+
const filePath = append.appendPath(emittedFile.filePath, context.workspaceConfig.workspaceRoot);
|
|
385
|
+
if (!filePath.endsWith(".map") && filePathFns.findFileName(filePath) !== "tsconfig.tsbuildinfo" && isParentPath.isParentPath(filePath, context.builtinsPath)) {
|
|
386
|
+
const moduleId = `${context.config.output?.builtinPrefix || context.config?.framework || "powerlines"}:${replace.replaceExtension(replace.replacePath(filePath, context.builtinsPath), "", {
|
|
387
|
+
fullExtension: true
|
|
388
|
+
})}`;
|
|
389
|
+
const moduleComment = emittedFile.text.match(getModuleCommentBlockRegex(moduleId))?.find((comment) => isSetString.isSetString(comment?.trim()));
|
|
390
|
+
builtinModules += `${moduleComment ? `
|
|
391
|
+
${moduleComment.trim()}` : ""}
|
|
392
|
+
declare module "${moduleId}" {
|
|
393
|
+
${emittedFile.text.replace(moduleComment ?? "", "").trim().replace(/^\s*export\s*declare\s*/gm, "export ").replace(/^\s*declare\s*/gm, "")}
|
|
387
394
|
}
|
|
388
395
|
`;
|
|
389
396
|
}
|
|
@@ -5102,5 +5109,5 @@ exports.extendLog = extendLog;
|
|
|
5102
5109
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
5103
5110
|
exports.name = name;
|
|
5104
5111
|
exports.version = version;
|
|
5105
|
-
//# sourceMappingURL=chunk-
|
|
5106
|
-
//# sourceMappingURL=chunk-
|
|
5112
|
+
//# sourceMappingURL=chunk-I63BFWL7.cjs.map
|
|
5113
|
+
//# sourceMappingURL=chunk-I63BFWL7.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkNSSJOBJ7_cjs = require('./chunk-NSSJOBJ7.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk7HN4NUEP_cjs = require('./chunk-7HN4NUEP.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var environmentChecks = require('@stryke/env/environment-checks');
|
|
7
7
|
var defu = require('defu');
|
|
@@ -98,7 +98,7 @@ function extractViteConfig(context) {
|
|
|
98
98
|
chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
99
99
|
|
|
100
100
|
// src/vite.ts
|
|
101
|
-
var vite = unplugin.createVitePlugin(
|
|
101
|
+
var vite = unplugin.createVitePlugin(chunk7HN4NUEP_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
102
102
|
return {
|
|
103
103
|
...plugin,
|
|
104
104
|
vite: {
|
|
@@ -159,5 +159,5 @@ var vite_default = vite;
|
|
|
159
159
|
|
|
160
160
|
exports.vite = vite;
|
|
161
161
|
exports.vite_default = vite_default;
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
163
|
-
//# sourceMappingURL=chunk-
|
|
162
|
+
//# sourceMappingURL=chunk-JZOLOGPH.cjs.map
|
|
163
|
+
//# sourceMappingURL=chunk-JZOLOGPH.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-ZBPEEQD7.js';
|
|
2
2
|
import { createWebpackPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
|
|
5
5
|
var webpack_default = webpack;
|
|
6
6
|
|
|
7
7
|
export { webpack, webpack_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-LROIIYPX.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-LROIIYPX.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkNSSJOBJ7_cjs = require('./chunk-NSSJOBJ7.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk7HN4NUEP_cjs = require('./chunk-7HN4NUEP.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var isUndefined = require('@stryke/type-checks/is-undefined');
|
|
7
7
|
var unplugin = require('unplugin');
|
|
8
8
|
|
|
9
|
-
var esbuild = unplugin.createEsbuildPlugin(
|
|
9
|
+
var esbuild = unplugin.createEsbuildPlugin(chunk7HN4NUEP_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
|
@@ -32,5 +32,5 @@ var esbuild_default = esbuild;
|
|
|
32
32
|
|
|
33
33
|
exports.esbuild = esbuild;
|
|
34
34
|
exports.esbuild_default = esbuild_default;
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-UYI2RSZS.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-UYI2RSZS.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-46MYUNRY.js';
|
|
2
2
|
import { __name } from './chunk-7QVYU63E.js';
|
|
3
3
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
4
|
import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
@@ -134,5 +134,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
134
134
|
__name(createUnpluginFactory, "createUnpluginFactory");
|
|
135
135
|
|
|
136
136
|
export { createUnpluginFactory, getString };
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
138
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-ZBPEEQD7.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-ZBPEEQD7.js.map
|
package/dist/esbuild.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkUYI2RSZS_cjs = require('./chunk-UYI2RSZS.cjs');
|
|
6
6
|
require('./chunk-NSSJOBJ7.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-7HN4NUEP.cjs');
|
|
8
|
+
require('./chunk-I63BFWL7.cjs');
|
|
9
9
|
require('./chunk-B6DVCLP5.cjs');
|
|
10
10
|
require('./chunk-V5WOGN7O.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -15,15 +15,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkUYI2RSZS_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkUYI2RSZS_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkUYI2RSZS_cjs.esbuild; }
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=esbuild.cjs.map
|
|
29
29
|
//# sourceMappingURL=esbuild.cjs.map
|
package/dist/esbuild.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-
|
|
1
|
+
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-B6DM5RJL.js';
|
|
2
2
|
import './chunk-6JXP537N.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-ZBPEEQD7.js';
|
|
4
|
+
import './chunk-46MYUNRY.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
package/dist/farm.cjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunk7HN4NUEP_cjs = require('./chunk-7HN4NUEP.cjs');
|
|
6
|
+
require('./chunk-I63BFWL7.cjs');
|
|
7
7
|
require('./chunk-B6DVCLP5.cjs');
|
|
8
8
|
require('./chunk-V5WOGN7O.cjs');
|
|
9
9
|
require('./chunk-Z6ARQDHR.cjs');
|
|
10
10
|
require('./chunk-PK6SKIKE.cjs');
|
|
11
11
|
var unplugin = require('unplugin');
|
|
12
12
|
|
|
13
|
-
var farm = unplugin.createFarmPlugin(
|
|
13
|
+
var farm = unplugin.createFarmPlugin(chunk7HN4NUEP_cjs.createUnpluginFactory("farm"));
|
|
14
14
|
var farm_default = farm;
|
|
15
15
|
|
|
16
16
|
exports.default = farm_default;
|
package/dist/farm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-ZBPEEQD7.js';
|
|
2
|
+
import './chunk-46MYUNRY.js';
|
|
3
3
|
import './chunk-PQXP7XQK.js';
|
|
4
4
|
import './chunk-NITQ5IYP.js';
|
|
5
5
|
import './chunk-2MYPFASJ.js';
|
package/dist/index.cjs
CHANGED
|
@@ -13,7 +13,7 @@ require('./chunk-4JCNAKOE.cjs');
|
|
|
13
13
|
require('./chunk-D6GGZQLC.cjs');
|
|
14
14
|
var chunkA7AUGAHH_cjs = require('./chunk-A7AUGAHH.cjs');
|
|
15
15
|
var chunk42ZHOCZJ_cjs = require('./chunk-42ZHOCZJ.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunkI63BFWL7_cjs = require('./chunk-I63BFWL7.cjs');
|
|
17
17
|
var chunkB6DVCLP5_cjs = require('./chunk-B6DVCLP5.cjs');
|
|
18
18
|
var chunkV5WOGN7O_cjs = require('./chunk-V5WOGN7O.cjs');
|
|
19
19
|
var chunkZ6ARQDHR_cjs = require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -27,10 +27,10 @@ chunkPK6SKIKE_cjs.__name(defineConfig, "defineConfig");
|
|
|
27
27
|
async function createPowerlines(options = {}) {
|
|
28
28
|
options.root ??= process.cwd();
|
|
29
29
|
const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(options.root);
|
|
30
|
-
return
|
|
30
|
+
return chunkI63BFWL7_cjs.PowerlinesAPI.from(workspaceRoot, options);
|
|
31
31
|
}
|
|
32
32
|
chunkPK6SKIKE_cjs.__name(createPowerlines, "createPowerlines");
|
|
33
|
-
var index_default =
|
|
33
|
+
var index_default = chunkI63BFWL7_cjs.PowerlinesAPI;
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(exports, "STORAGE_PRESETS", {
|
|
36
36
|
enumerable: true,
|
|
@@ -50,31 +50,31 @@ Object.defineProperty(exports, "HOOKS_LIST_ORDERS", {
|
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FileId", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkI63BFWL7_cjs.FileId; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FileMetadata", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkI63BFWL7_cjs.FileMetadata; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FileMetadata_KeyValuePair", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkI63BFWL7_cjs.FileMetadata_KeyValuePair; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FileStorage", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkI63BFWL7_cjs.FileStorage; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "FileSystem", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkI63BFWL7_cjs.FileSystem; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkI63BFWL7_cjs.PowerlinesAPI; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "_capnpFileId", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkI63BFWL7_cjs._capnpFileId; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "KNOWN_PLUGIN_FIELDS", {
|
|
80
80
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -9,8 +9,8 @@ import './chunk-OYASPHNL.js';
|
|
|
9
9
|
import './chunk-OD4BINRW.js';
|
|
10
10
|
export { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ } from './chunk-KXRVVFNK.js';
|
|
11
11
|
export { HOOKS_LIST_ORDERS } from './chunk-CCJQBJKQ.js';
|
|
12
|
-
import { PowerlinesAPI } from './chunk-
|
|
13
|
-
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-
|
|
12
|
+
import { PowerlinesAPI } from './chunk-46MYUNRY.js';
|
|
13
|
+
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-46MYUNRY.js';
|
|
14
14
|
export { KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS } from './chunk-PQXP7XQK.js';
|
|
15
15
|
export { BUILDER_VARIANTS, UNPLUGIN_BUILDER_VARIANTS } from './chunk-NITQ5IYP.js';
|
|
16
16
|
export { SUPPORTED_COMMANDS } from './chunk-2MYPFASJ.js';
|
|
@@ -76,7 +76,7 @@ var t__namespace = /*#__PURE__*/_interopNamespace(t);
|
|
|
76
76
|
|
|
77
77
|
// package.json
|
|
78
78
|
var package_default = {
|
|
79
|
-
version: "0.37.
|
|
79
|
+
version: "0.37.62"};
|
|
80
80
|
|
|
81
81
|
// src/plugin-utils/modules.ts
|
|
82
82
|
function isBuiltinModule(context, moduleName) {
|
|
@@ -188,6 +188,7 @@ var moduleResolverBabelPlugin = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((contex
|
|
|
188
188
|
};
|
|
189
189
|
}, "builder"));
|
|
190
190
|
}, "moduleResolverBabelPlugin");
|
|
191
|
+
var getModuleCommentBlockRegex = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((moduleId) => new RegExp(`^\\/\\*\\*(?s:.)*@module ${moduleId}(?s:.)*\\*\\/\\s*`), "getModuleCommentBlockRegex");
|
|
191
192
|
function formatTypes(code) {
|
|
192
193
|
return code.replace(
|
|
193
194
|
// eslint-disable-next-line regexp/no-super-linear-backtracking
|
|
@@ -209,7 +210,7 @@ async function emitBuiltinTypes(context, files) {
|
|
|
209
210
|
declarationMap: false,
|
|
210
211
|
emitDeclarationOnly: true,
|
|
211
212
|
sourceMap: false,
|
|
212
|
-
outDir:
|
|
213
|
+
outDir: replace.replacePath(context.builtinsPath, context.workspaceConfig.workspaceRoot),
|
|
213
214
|
composite: false,
|
|
214
215
|
incremental: false,
|
|
215
216
|
tsBuildInfoFile: void 0
|
|
@@ -237,10 +238,16 @@ async function emitBuiltinTypes(context, files) {
|
|
|
237
238
|
let builtinModules = "";
|
|
238
239
|
for (const emittedFile of emittedFiles) {
|
|
239
240
|
context.trace(`Processing emitted type declaration file: ${emittedFile.filePath}`);
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
const filePath = append.appendPath(emittedFile.filePath, context.workspaceConfig.workspaceRoot);
|
|
242
|
+
if (!filePath.endsWith(".map") && filePathFns.findFileName(filePath) !== "tsconfig.tsbuildinfo" && isParentPath.isParentPath(filePath, context.builtinsPath)) {
|
|
243
|
+
const moduleId = `${context.config.output?.builtinPrefix || context.config?.framework || "powerlines"}:${replace.replaceExtension(replace.replacePath(filePath, context.builtinsPath), "", {
|
|
244
|
+
fullExtension: true
|
|
245
|
+
})}`;
|
|
246
|
+
const moduleComment = emittedFile.text.match(getModuleCommentBlockRegex(moduleId))?.find((comment) => isSetString.isSetString(comment?.trim()));
|
|
247
|
+
builtinModules += `${moduleComment ? `
|
|
248
|
+
${moduleComment.trim()}` : ""}
|
|
249
|
+
declare module "${moduleId}" {
|
|
250
|
+
${emittedFile.text.replace(moduleComment ?? "", "").trim().replace(/^\s*export\s*declare\s*/gm, "export ").replace(/^\s*declare\s*/gm, "")}
|
|
244
251
|
}
|
|
245
252
|
`;
|
|
246
253
|
}
|
|
@@ -1291,5 +1298,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
1291
1298
|
chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
1292
1299
|
|
|
1293
1300
|
exports.createUnpluginFactory = createUnpluginFactory;
|
|
1294
|
-
//# sourceMappingURL=chunk-
|
|
1295
|
-
//# sourceMappingURL=chunk-
|
|
1301
|
+
//# sourceMappingURL=chunk-B6IYKQHA.cjs.map
|
|
1302
|
+
//# sourceMappingURL=chunk-B6IYKQHA.cjs.map
|