@stencil/core 5.0.0-alpha.13 → 5.0.0-alpha.15
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/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.mjs +1 -1
- package/dist/{compiler-B3CeYzY1.mjs → compiler-DFO3q3RZ.mjs} +11 -11
- package/dist/{node--akYC-sG.mjs → node-BSwezCWj.mjs} +52 -52
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.mjs +13 -13
- package/dist/{validation-ByxKj8bC.mjs → validation-CtaOJgnM.mjs} +5 -5
- package/package.json +4 -4
package/dist/compiler/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as createPrerenderer, b as version, c as createWorkerContext, d as nodeRequire, f as optimizeCss, i as createSystem, l as createWorkerMessageHandler, m as validateConfig, n as transpile, o as loadConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as buildId, x as versions, y as vermoji } from "../compiler-
|
|
2
|
-
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node
|
|
1
|
+
import { a as createPrerenderer, b as version, c as createWorkerContext, d as nodeRequire, f as optimizeCss, i as createSystem, l as createWorkerMessageHandler, m as validateConfig, n as transpile, o as loadConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as buildId, x as versions, y as vermoji } from "../compiler-DFO3q3RZ.mjs";
|
|
2
|
+
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-BSwezCWj.mjs";
|
|
3
3
|
export { CustomElementsExportBehaviorOptions, LOG_LEVELS, buildId, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, loadConfig, nodeRequire, optimizeCss, optimizeJs, transpile, transpileSync, ts, validateConfig, vermoji, version, versions };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DEFAULT_STYLE_MODE, B as HOST_FLAGS, C as ASSETS, D as COLLECTION_MANIFEST_FILE_NAME, E as COLLECTION_APP_DATA_FILE_NAME, F as DOCS_README, G as NODE_TYPES, H as LISTENER_FLAGS, I as DOCS_VSCODE, J as STANDALONE, K as SSR, L as EVENT_FLAGS, M as DOCS_CUSTOM, N as DOCS_CUSTOM_ELEMENTS_MANIFEST, O as COPY, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, S as queryNonceMetaTagContent, T as COLLECTION, U as LOADER_BUNDLE, V as HTML_NS, W as MEMBER_FLAGS, X as STYLE_EXT, Y as STATS, Z as SVG_NS, _ as sortBy, a as fromEntries, b as toTitleCase, c as isDef, d as isNumber, et as WATCH_FLAGS, f as isObject, g as pluck, h as noop, i as flatOne, j as DIST_LAZY, k as CUSTOM, l as isFunction, m as mergeIntoWith, n as dashToPascalCase, nt as XLINK_NS, o as isBoolean, p as isString, q as SSR_WASM, r as escapeWithPattern, s as isComplexType, t as escapeRegExpSpecialCharacters, tt as WWW, u as isIterable, v as toCamelCase, w as CMP_FLAGS, x as unique, y as toDashCase, z as GLOBAL_STYLE } from "../../regular-expression-CFVJOTUh.mjs";
|
|
2
|
-
import { $ as loadTypeScriptDiagnostics, A as isOutputTargetCollection, B as isOutputTargetGlobalStyle, C as result_exports, Ct as formatComponentRuntimeMeta, D as getComponentsDtsTypesFilePath, E as getComponentsDtsSrcFilePath, Et as byteSize, F as isOutputTargetDocsCustom, G as isOutputTargetStats, H as isOutputTargetSsr, I as isOutputTargetDocsCustomElementsManifest, J as isValidConfigOutputTarget, K as isOutputTargetTypes, L as isOutputTargetDocsJson, M as isOutputTargetCustom, N as isOutputTargetDistLazy, O as getComponentsFromModules, P as isOutputTargetDocs, Q as loadTypeScriptDiagnostic, R as isOutputTargetDocsReadme, St as isGlob, T as filterExcludedComponents, Tt as stringifyRuntimeData, U as isOutputTargetSsrWasm, V as isOutputTargetLoaderBundle, W as isOutputTargetStandalone, X as shouldExcludeComponent, Y as relativeImport, Z as augmentDiagnosticWithNode, _ as getSourceMappingUrlForEndOfFile, _t as catchError, a as getTextDocs, at as relative, bt as shouldIgnoreError, c as isJsFile, ct as isRolldownError, d as isTsxFile, dt as normalizeDiagnostics, et as join, f as parsePackageJson, ft as splitLineBreaks, g as getInlineSourceMappingUrlLinker, gt as buildWarn, h as isRemoteUrl, ht as buildJsonFileError, i as generatePreamble, it as normalizePath, j as isOutputTargetCopy, k as isOutputTargetAssets, l as isJsxFile, lt as loadRolldownDiagnostics, m as readPackageJson, mt as buildError, n as addDocBlock, nt as normalizeFsPath, o as hasDependency, ot as resolve, p as readOnlyArrayHasStringMember, pt as TASK_CANCELED_MSG, q as isOutputTargetWww, r as createJsVarName, rt as normalizeFsPathQuery, s as isDtsFile, st as createOnWarnFn, t as validateComponentTag, tt as normalize, u as isTsFile, ut as escapeHtml, v as getSourceMappingUrlLinker, vt as hasError, w as filterActiveTargets, wt as formatLazyBundleRuntimeMeta, xt as isRootPath, y as rolldownToStencilSourceMap, yt as hasWarning, z as isOutputTargetDocsVscode } from "../../validation-
|
|
2
|
+
import { $ as loadTypeScriptDiagnostics, A as isOutputTargetCollection, B as isOutputTargetGlobalStyle, C as result_exports, Ct as formatComponentRuntimeMeta, D as getComponentsDtsTypesFilePath, E as getComponentsDtsSrcFilePath, Et as byteSize, F as isOutputTargetDocsCustom, G as isOutputTargetStats, H as isOutputTargetSsr, I as isOutputTargetDocsCustomElementsManifest, J as isValidConfigOutputTarget, K as isOutputTargetTypes, L as isOutputTargetDocsJson, M as isOutputTargetCustom, N as isOutputTargetDistLazy, O as getComponentsFromModules, P as isOutputTargetDocs, Q as loadTypeScriptDiagnostic, R as isOutputTargetDocsReadme, St as isGlob, T as filterExcludedComponents, Tt as stringifyRuntimeData, U as isOutputTargetSsrWasm, V as isOutputTargetLoaderBundle, W as isOutputTargetStandalone, X as shouldExcludeComponent, Y as relativeImport, Z as augmentDiagnosticWithNode, _ as getSourceMappingUrlForEndOfFile, _t as catchError, a as getTextDocs, at as relative, bt as shouldIgnoreError, c as isJsFile, ct as isRolldownError, d as isTsxFile, dt as normalizeDiagnostics, et as join, f as parsePackageJson, ft as splitLineBreaks, g as getInlineSourceMappingUrlLinker, gt as buildWarn, h as isRemoteUrl, ht as buildJsonFileError, i as generatePreamble, it as normalizePath, j as isOutputTargetCopy, k as isOutputTargetAssets, l as isJsxFile, lt as loadRolldownDiagnostics, m as readPackageJson, mt as buildError, n as addDocBlock, nt as normalizeFsPath, o as hasDependency, ot as resolve, p as readOnlyArrayHasStringMember, pt as TASK_CANCELED_MSG, q as isOutputTargetWww, r as createJsVarName, rt as normalizeFsPathQuery, s as isDtsFile, st as createOnWarnFn, t as validateComponentTag, tt as normalize, u as isTsFile, ut as escapeHtml, v as getSourceMappingUrlLinker, vt as hasError, w as filterActiveTargets, wt as formatLazyBundleRuntimeMeta, xt as isRootPath, y as rolldownToStencilSourceMap, yt as hasWarning, z as isOutputTargetDocsVscode } from "../../validation-CtaOJgnM.mjs";
|
|
3
3
|
export { ASSETS, CMP_FLAGS, COLLECTION, COLLECTION_APP_DATA_FILE_NAME, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST_LAZY, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, GENERATED_DTS, GLOBAL_STYLE, HOST_FLAGS, HTML_NS, LISTENER_FLAGS, LOADER_BUNDLE, MEMBER_FLAGS, NODE_TYPES, SSR, SSR_WASM, STANDALONE, STATS, STYLE_EXT, SVG_NS, TASK_CANCELED_MSG, TYPES, VALID_CONFIG_OUTPUT_TARGETS, WATCH_FLAGS, WWW, XLINK_NS, addDocBlock, augmentDiagnosticWithNode, buildError, buildJsonFileError, buildWarn, byteSize, catchError, createJsVarName, createOnWarnFn, dashToPascalCase, escapeHtml, escapeRegExpSpecialCharacters, escapeWithPattern, filterActiveTargets, filterExcludedComponents, flatOne, formatComponentRuntimeMeta, formatLazyBundleRuntimeMeta, fromEntries, generatePreamble, getComponentsDtsSrcFilePath, getComponentsDtsTypesFilePath, getComponentsFromModules, getInlineSourceMappingUrlLinker, getSourceMappingUrlForEndOfFile, getSourceMappingUrlLinker, getTextDocs, hasDependency, hasError, hasWarning, isBoolean, isComplexType, isDef, isDtsFile, isFunction, isGlob, isIterable, isJsFile, isJsxFile, isNumber, isObject, isOutputTargetAssets, isOutputTargetCollection, isOutputTargetCopy, isOutputTargetCustom, isOutputTargetDistLazy, isOutputTargetDocs, isOutputTargetDocsCustom, isOutputTargetDocsCustomElementsManifest, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isOutputTargetGlobalStyle, isOutputTargetLoaderBundle, isOutputTargetSsr, isOutputTargetSsrWasm, isOutputTargetStandalone, isOutputTargetStats, isOutputTargetTypes, isOutputTargetWww, isRemoteUrl, isRolldownError, isRootPath, isString, isTsFile, isTsxFile, isValidConfigOutputTarget, join, loadRolldownDiagnostics, loadTypeScriptDiagnostic, loadTypeScriptDiagnostics, mergeIntoWith, noop, normalize, normalizeDiagnostics, normalizeFsPath, normalizeFsPathQuery, normalizePath, parsePackageJson, pluck, queryNonceMetaTagContent, readOnlyArrayHasStringMember, readPackageJson, relative, relativeImport, resolve, result_exports as result, rolldownToStencilSourceMap, shouldExcludeComponent, shouldIgnoreError, sortBy, splitLineBreaks, stringifyRuntimeData, toCamelCase, toDashCase, toTitleCase, unique, validateComponentTag };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as __require } from "./chunk-z9aeyW2b.mjs";
|
|
2
2
|
import { O as HYDRATED_CSS, f as scopeCss } from "./client-aTQ7xHxx.mjs";
|
|
3
3
|
import { $ as VALID_CONFIG_OUTPUT_TARGETS, C as ASSETS, D as COLLECTION_MANIFEST_FILE_NAME, E as COLLECTION_APP_DATA_FILE_NAME, F as DOCS_README, J as STANDALONE, L as EVENT_FLAGS, O as COPY, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, T as COLLECTION, U as LOADER_BUNDLE, X as STYLE_EXT, Y as STATS, _ as sortBy, a as fromEntries, b as toTitleCase, d as isNumber$1, et as WATCH_FLAGS, f as isObject, h as noop, i as flatOne, j as DIST_LAZY, l as isFunction, m as mergeIntoWith, n as dashToPascalCase, o as isBoolean$1, p as isString$1, u as isIterable, x as unique, y as toDashCase, z as GLOBAL_STYLE } from "./regular-expression-CFVJOTUh.mjs";
|
|
4
|
-
import { $ as loadTypeScriptDiagnostics, A as isOutputTargetCollection, B as isOutputTargetGlobalStyle, Ct as formatComponentRuntimeMeta, E as getComponentsDtsSrcFilePath, Et as byteSize, F as isOutputTargetDocsCustom, G as isOutputTargetStats, H as isOutputTargetSsr, I as isOutputTargetDocsCustomElementsManifest, J as isValidConfigOutputTarget, K as isOutputTargetTypes, L as isOutputTargetDocsJson, M as isOutputTargetCustom, N as isOutputTargetDistLazy, O as getComponentsFromModules, P as isOutputTargetDocs, Q as loadTypeScriptDiagnostic, R as isOutputTargetDocsReadme, S as ok, St as isGlob, T as filterExcludedComponents, Tt as stringifyRuntimeData, U as isOutputTargetSsrWasm, V as isOutputTargetLoaderBundle, W as isOutputTargetStandalone, Y as relativeImport, Z as augmentDiagnosticWithNode, _ as getSourceMappingUrlForEndOfFile, _t as catchError, a as getTextDocs, at as relative$1, b as err, ct as isRolldownError, d as isTsxFile, dt as normalizeDiagnostics, et as join$2, f as parsePackageJson, ft as splitLineBreaks, g as getInlineSourceMappingUrlLinker, gt as buildWarn, h as isRemoteUrl, ht as buildJsonFileError, i as generatePreamble, it as normalizePath, j as isOutputTargetCopy, k as isOutputTargetAssets, lt as loadRolldownDiagnostics, m as readPackageJson, mt as buildError, n as addDocBlock, nt as normalizeFsPath, o as hasDependency, ot as resolve$2, p as readOnlyArrayHasStringMember, q as isOutputTargetWww, r as createJsVarName, rt as normalizeFsPathQuery, s as isDtsFile, st as createOnWarnFn, t as validateComponentTag, u as isTsFile, vt as hasError, w as filterActiveTargets, x as map, xt as isRootPath, y as rolldownToStencilSourceMap, yt as hasWarning, z as isOutputTargetDocsVscode } from "./validation-
|
|
5
|
-
import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node
|
|
4
|
+
import { $ as loadTypeScriptDiagnostics, A as isOutputTargetCollection, B as isOutputTargetGlobalStyle, Ct as formatComponentRuntimeMeta, E as getComponentsDtsSrcFilePath, Et as byteSize, F as isOutputTargetDocsCustom, G as isOutputTargetStats, H as isOutputTargetSsr, I as isOutputTargetDocsCustomElementsManifest, J as isValidConfigOutputTarget, K as isOutputTargetTypes, L as isOutputTargetDocsJson, M as isOutputTargetCustom, N as isOutputTargetDistLazy, O as getComponentsFromModules, P as isOutputTargetDocs, Q as loadTypeScriptDiagnostic, R as isOutputTargetDocsReadme, S as ok, St as isGlob, T as filterExcludedComponents, Tt as stringifyRuntimeData, U as isOutputTargetSsrWasm, V as isOutputTargetLoaderBundle, W as isOutputTargetStandalone, Y as relativeImport, Z as augmentDiagnosticWithNode, _ as getSourceMappingUrlForEndOfFile, _t as catchError, a as getTextDocs, at as relative$1, b as err, ct as isRolldownError, d as isTsxFile, dt as normalizeDiagnostics, et as join$2, f as parsePackageJson, ft as splitLineBreaks, g as getInlineSourceMappingUrlLinker, gt as buildWarn, h as isRemoteUrl, ht as buildJsonFileError, i as generatePreamble, it as normalizePath, j as isOutputTargetCopy, k as isOutputTargetAssets, lt as loadRolldownDiagnostics, m as readPackageJson, mt as buildError, n as addDocBlock, nt as normalizeFsPath, o as hasDependency, ot as resolve$2, p as readOnlyArrayHasStringMember, q as isOutputTargetWww, r as createJsVarName, rt as normalizeFsPathQuery, s as isDtsFile, st as createOnWarnFn, t as validateComponentTag, u as isTsFile, vt as hasError, w as filterActiveTargets, x as map, xt as isRootPath, y as rolldownToStencilSourceMap, yt as hasWarning, z as isOutputTargetDocsVscode } from "./validation-CtaOJgnM.mjs";
|
|
5
|
+
import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-BSwezCWj.mjs";
|
|
6
6
|
import ts, { default as ts$1 } from "typescript";
|
|
7
7
|
import { readFileSync } from "node:fs";
|
|
8
8
|
import { basename, dirname, isAbsolute, join, resolve } from "node:path";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
10
10
|
import picomatch from "picomatch";
|
|
11
|
-
import path
|
|
11
|
+
import path, { basename as basename$1, dirname as dirname$1, extname, isAbsolute as isAbsolute$1, join as join$1 } from "path";
|
|
12
12
|
import { cloneDocument, createDocument, serializeNodeToHtml } from "@stencil/mock-doc";
|
|
13
13
|
import postcss from "postcss";
|
|
14
14
|
import postcssSafeParser from "postcss-safe-parser";
|
|
@@ -28,9 +28,9 @@ import { createJiti } from "jiti";
|
|
|
28
28
|
import * as process$1 from "process";
|
|
29
29
|
import { dataToEsm } from "@rollup/pluginutils";
|
|
30
30
|
//#region src/version.ts
|
|
31
|
-
const version = "5.0.0-alpha.
|
|
32
|
-
const buildId = "
|
|
33
|
-
const vermoji = "
|
|
31
|
+
const version = "5.0.0-alpha.15";
|
|
32
|
+
const buildId = "1782245447";
|
|
33
|
+
const vermoji = "🌇";
|
|
34
34
|
/**
|
|
35
35
|
* Get the installed version of a tool/dependency.
|
|
36
36
|
* Handles packages with exports maps that point to subdirectories.
|
|
@@ -21416,7 +21416,7 @@ const getCssToEsmImports = (varNames, cssText, filePath, modeName) => {
|
|
|
21416
21416
|
const cssImports = [];
|
|
21417
21417
|
if (!cssText.includes("@import")) return cssImports;
|
|
21418
21418
|
cssText = stripCssComments(cssText);
|
|
21419
|
-
const dir = path
|
|
21419
|
+
const dir = path.dirname(filePath);
|
|
21420
21420
|
let r;
|
|
21421
21421
|
while (r = CSS_IMPORT_RE.exec(cssText)) {
|
|
21422
21422
|
const cssImportData = {
|
|
@@ -21430,7 +21430,7 @@ const getCssToEsmImports = (varNames, cssText, filePath, modeName) => {
|
|
|
21430
21430
|
else if (isCssNodeModule(cssImportData.url)) {
|
|
21431
21431
|
cssImportData.filePath = cssImportData.url.substring(1);
|
|
21432
21432
|
cssImportData.isNodeModule = true;
|
|
21433
|
-
} else if (path
|
|
21433
|
+
} else if (path.isAbsolute(cssImportData.url)) cssImportData.filePath = normalizePath(cssImportData.url);
|
|
21434
21434
|
else cssImportData.filePath = normalizePath(resolve$2(dir, cssImportData.url));
|
|
21435
21435
|
cssImportData.varName = createCssVarName(cssImportData.filePath, modeName);
|
|
21436
21436
|
if (varNames.has(cssImportData.varName)) cssImportData.varName += varNames.size;
|
|
@@ -21473,7 +21473,7 @@ const isLocalCssImport = (srcImport) => {
|
|
|
21473
21473
|
* @returns an appropriate Css var name
|
|
21474
21474
|
*/
|
|
21475
21475
|
const createCssVarName = (filePath, modeName) => {
|
|
21476
|
-
let varName = path
|
|
21476
|
+
let varName = path.basename(filePath);
|
|
21477
21477
|
if (modeName && modeName !== "$" && !varName.includes(modeName)) varName = modeName + "-" + varName;
|
|
21478
21478
|
return createJsVarName(varName);
|
|
21479
21479
|
};
|
|
@@ -21849,7 +21849,7 @@ const getWriteFilePathFromUrlPath = (manager, inputHref) => {
|
|
|
21849
21849
|
const inputPathParts = inputPathname.split("/");
|
|
21850
21850
|
const isPrerrenderRoot = basePathname === inputPathname;
|
|
21851
21851
|
let fileName;
|
|
21852
|
-
if (isPrerrenderRoot) fileName = path
|
|
21852
|
+
if (isPrerrenderRoot) fileName = path.basename(manager.outputTarget.indexHtml);
|
|
21853
21853
|
else fileName = "index.html";
|
|
21854
21854
|
const pathParts = [];
|
|
21855
21855
|
for (let i = 0; i < inputPathParts.length; i++) {
|
|
@@ -22677,7 +22677,7 @@ const createSystem = (c) => {
|
|
|
22677
22677
|
isSymbolicLink,
|
|
22678
22678
|
nextTick,
|
|
22679
22679
|
normalizePath: normalize,
|
|
22680
|
-
platformPath: path
|
|
22680
|
+
platformPath: path,
|
|
22681
22681
|
readDir,
|
|
22682
22682
|
readDirSync,
|
|
22683
22683
|
readFile,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as __require } from "./chunk-z9aeyW2b.mjs";
|
|
2
2
|
import "./client-aTQ7xHxx.mjs";
|
|
3
3
|
import { h as noop, i as flatOne, l as isFunction, p as isString } from "./regular-expression-CFVJOTUh.mjs";
|
|
4
|
-
import { St as isGlob, _t as catchError, bt as shouldIgnoreError, it as normalizePath, mt as buildError, pt as TASK_CANCELED_MSG } from "./validation-
|
|
4
|
+
import { St as isGlob, _t as catchError, bt as shouldIgnoreError, it as normalizePath, mt as buildError, pt as TASK_CANCELED_MSG } from "./validation-CtaOJgnM.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
6
|
-
import
|
|
6
|
+
import nodePath from "node:path";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
|
-
import path
|
|
8
|
+
import path from "path";
|
|
9
9
|
import * as cp from "child_process";
|
|
10
10
|
import chalk from "chalk";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
@@ -675,7 +675,7 @@ function createNodeLoggerSys() {
|
|
|
675
675
|
return Math.max(Math.min(terminalWidth, max_columns), min_columns);
|
|
676
676
|
};
|
|
677
677
|
const memoryUsage = () => process.memoryUsage().rss;
|
|
678
|
-
const relativePath = (from, to) => path
|
|
678
|
+
const relativePath = (from, to) => path.relative(from, to);
|
|
679
679
|
const writeLogs = (logFilePath, log, append) => {
|
|
680
680
|
if (append) try {
|
|
681
681
|
fs.accessSync(logFilePath);
|
|
@@ -787,15 +787,15 @@ async function nodeCopyTasks(copyTasks, srcDir) {
|
|
|
787
787
|
async function processGlobs(copyTask, srcDir) {
|
|
788
788
|
return isGlob(copyTask.src) ? await processGlobTask(copyTask, srcDir) : [{
|
|
789
789
|
src: getSrcAbsPath(srcDir, copyTask.src),
|
|
790
|
-
dest: copyTask.keepDirStructure ? path
|
|
790
|
+
dest: copyTask.keepDirStructure ? path.join(copyTask.dest, copyTask.src) : copyTask.dest,
|
|
791
791
|
warn: copyTask.warn,
|
|
792
792
|
ignore: copyTask.ignore,
|
|
793
793
|
keepDirStructure: copyTask.keepDirStructure
|
|
794
794
|
}];
|
|
795
795
|
}
|
|
796
796
|
function getSrcAbsPath(srcDir, src) {
|
|
797
|
-
if (path
|
|
798
|
-
return path
|
|
797
|
+
if (path.isAbsolute(src)) return src;
|
|
798
|
+
return path.join(srcDir, src);
|
|
799
799
|
}
|
|
800
800
|
async function processGlobTask(copyTask, srcDir) {
|
|
801
801
|
return (await asyncGlob(copyTask.src, {
|
|
@@ -805,9 +805,9 @@ async function processGlobTask(copyTask, srcDir) {
|
|
|
805
805
|
})).map((globRelPath) => createGlobCopyTask(copyTask, srcDir, globRelPath));
|
|
806
806
|
}
|
|
807
807
|
function createGlobCopyTask(copyTask, srcDir, globRelPath) {
|
|
808
|
-
const dest = path
|
|
808
|
+
const dest = path.join(copyTask.dest, copyTask.keepDirStructure ? globRelPath : path.basename(globRelPath));
|
|
809
809
|
return {
|
|
810
|
-
src: path
|
|
810
|
+
src: path.join(srcDir, globRelPath),
|
|
811
811
|
dest,
|
|
812
812
|
ignore: copyTask.ignore,
|
|
813
813
|
warn: copyTask.warn,
|
|
@@ -837,8 +837,8 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
|
|
|
837
837
|
const dirItems = await readdir(copyTask.src);
|
|
838
838
|
await Promise.all(dirItems.map(async (dirItem) => {
|
|
839
839
|
await processCopyTask(results, allCopyTasks, {
|
|
840
|
-
src: path
|
|
841
|
-
dest: path
|
|
840
|
+
src: path.join(copyTask.src, dirItem),
|
|
841
|
+
dest: path.join(copyTask.dest, dirItem),
|
|
842
842
|
warn: copyTask.warn
|
|
843
843
|
});
|
|
844
844
|
}));
|
|
@@ -849,7 +849,7 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
|
|
|
849
849
|
function ensureDirs(copyTasks) {
|
|
850
850
|
const mkDirs = [];
|
|
851
851
|
copyTasks.forEach((copyTask) => {
|
|
852
|
-
addMkDir(mkDirs, path
|
|
852
|
+
addMkDir(mkDirs, path.dirname(copyTask.dest));
|
|
853
853
|
});
|
|
854
854
|
mkDirs.sort((a, b) => {
|
|
855
855
|
const partsA = a.split("/").length;
|
|
@@ -867,7 +867,7 @@ function addMkDir(mkDirs, destDir) {
|
|
|
867
867
|
if (destDir === ROOT_DIR || destDir + "/" === ROOT_DIR || destDir === "") return;
|
|
868
868
|
if (!mkDirs.includes(destDir)) mkDirs.push(destDir);
|
|
869
869
|
}
|
|
870
|
-
const ROOT_DIR = normalizePath(path
|
|
870
|
+
const ROOT_DIR = normalizePath(path.resolve("/"));
|
|
871
871
|
function shouldIgnore({ src, ignore = [] }) {
|
|
872
872
|
const filePath = src.trim().toLowerCase();
|
|
873
873
|
return ignore.some((ignoreFile) => filePath.endsWith(ignoreFile));
|
|
@@ -941,7 +941,7 @@ var NodeLazyRequire = class {
|
|
|
941
941
|
}
|
|
942
942
|
getModulePath(fromDir, moduleId) {
|
|
943
943
|
const modulePath = this.nodeResolveModule.resolveModule(fromDir, moduleId);
|
|
944
|
-
return path
|
|
944
|
+
return path.dirname(modulePath);
|
|
945
945
|
}
|
|
946
946
|
};
|
|
947
947
|
//#endregion
|
|
@@ -955,18 +955,18 @@ var NodeResolveModule = class {
|
|
|
955
955
|
if (opts && opts.manuallyResolve) return this.resolveModuleManually(fromDir, moduleId, cacheKey);
|
|
956
956
|
if (moduleId.startsWith("@types/")) return this.resolveTypesModule(fromDir, moduleId, cacheKey);
|
|
957
957
|
const Module = __require("module");
|
|
958
|
-
fromDir = path
|
|
959
|
-
const fromFile = path
|
|
958
|
+
fromDir = path.resolve(fromDir);
|
|
959
|
+
const fromFile = path.join(fromDir, "noop.js");
|
|
960
960
|
let dir = normalizePath(Module._resolveFilename(moduleId, {
|
|
961
961
|
id: fromFile,
|
|
962
962
|
filename: fromFile,
|
|
963
963
|
paths: Module._nodeModulePaths(fromDir)
|
|
964
964
|
}));
|
|
965
|
-
const root = normalizePath(path
|
|
965
|
+
const root = normalizePath(path.parse(fromDir).root);
|
|
966
966
|
let packageJsonFilePath;
|
|
967
967
|
while (dir !== root) {
|
|
968
|
-
dir = normalizePath(path
|
|
969
|
-
packageJsonFilePath = path
|
|
968
|
+
dir = normalizePath(path.dirname(dir));
|
|
969
|
+
packageJsonFilePath = path.join(dir, "package.json");
|
|
970
970
|
if (!fs.existsSync(packageJsonFilePath)) continue;
|
|
971
971
|
this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
|
|
972
972
|
return packageJsonFilePath;
|
|
@@ -975,12 +975,12 @@ var NodeResolveModule = class {
|
|
|
975
975
|
}
|
|
976
976
|
resolveTypesModule(fromDir, moduleId, cacheKey) {
|
|
977
977
|
const moduleSplt = moduleId.split("/");
|
|
978
|
-
const root = normalizePath(path
|
|
979
|
-
let dir = normalizePath(path
|
|
978
|
+
const root = normalizePath(path.parse(fromDir).root);
|
|
979
|
+
let dir = normalizePath(path.join(fromDir, "noop.js"));
|
|
980
980
|
let typesPackageJsonFilePath;
|
|
981
981
|
while (dir !== root) {
|
|
982
|
-
dir = normalizePath(path
|
|
983
|
-
typesPackageJsonFilePath = path
|
|
982
|
+
dir = normalizePath(path.dirname(dir));
|
|
983
|
+
typesPackageJsonFilePath = path.join(dir, "node_modules", moduleSplt[0], moduleSplt[1], "package.json");
|
|
984
984
|
if (!fs.existsSync(typesPackageJsonFilePath)) continue;
|
|
985
985
|
this.resolveModuleCache.set(cacheKey, typesPackageJsonFilePath);
|
|
986
986
|
return typesPackageJsonFilePath;
|
|
@@ -988,12 +988,12 @@ var NodeResolveModule = class {
|
|
|
988
988
|
throw new Error(`error loading "${moduleId}" from "${fromDir}"`);
|
|
989
989
|
}
|
|
990
990
|
resolveModuleManually(fromDir, moduleId, cacheKey) {
|
|
991
|
-
const root = normalizePath(path
|
|
992
|
-
let dir = normalizePath(path
|
|
991
|
+
const root = normalizePath(path.parse(fromDir).root);
|
|
992
|
+
let dir = normalizePath(path.join(fromDir, "noop.js"));
|
|
993
993
|
let packageJsonFilePath;
|
|
994
994
|
while (dir !== root) {
|
|
995
|
-
dir = normalizePath(path
|
|
996
|
-
packageJsonFilePath = path
|
|
995
|
+
dir = normalizePath(path.dirname(dir));
|
|
996
|
+
packageJsonFilePath = path.join(dir, "node_modules", moduleId, "package.json");
|
|
997
997
|
if (!fs.existsSync(packageJsonFilePath)) continue;
|
|
998
998
|
this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
|
|
999
999
|
return packageJsonFilePath;
|
|
@@ -1079,7 +1079,7 @@ function setLastCheck() {
|
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
1081
|
function getLastCheckStoragePath() {
|
|
1082
|
-
return path
|
|
1082
|
+
return path.join(tmpdir$1(), "stencil_last_version_node.json");
|
|
1083
1083
|
}
|
|
1084
1084
|
function printUpdateMessage(logger, currentVersion, latestVersion) {
|
|
1085
1085
|
const installMessage = `npm install @stencil/core`;
|
|
@@ -1389,7 +1389,7 @@ function createNodeSys(c = {}) {
|
|
|
1389
1389
|
const sysCpus = cpus();
|
|
1390
1390
|
const hardwareConcurrency = sysCpus.length;
|
|
1391
1391
|
const osPlatform = platform();
|
|
1392
|
-
const compilerExecutingPath =
|
|
1392
|
+
const compilerExecutingPath = nodePath.join(__dirname, "compiler", "index.mjs");
|
|
1393
1393
|
const runInterruptsCallbacks = () => {
|
|
1394
1394
|
const returnValues = [];
|
|
1395
1395
|
let cb;
|
|
@@ -1440,8 +1440,8 @@ function createNodeSys(c = {}) {
|
|
|
1440
1440
|
return new Promise((resolve) => {
|
|
1441
1441
|
if (opts) fs.mkdir(p, opts, (err) => {
|
|
1442
1442
|
resolve({
|
|
1443
|
-
basename:
|
|
1444
|
-
dirname:
|
|
1443
|
+
basename: nodePath.basename(p),
|
|
1444
|
+
dirname: nodePath.dirname(p),
|
|
1445
1445
|
path: p,
|
|
1446
1446
|
newDirs: [],
|
|
1447
1447
|
error: err
|
|
@@ -1449,8 +1449,8 @@ function createNodeSys(c = {}) {
|
|
|
1449
1449
|
});
|
|
1450
1450
|
else fs.mkdir(p, (err) => {
|
|
1451
1451
|
resolve({
|
|
1452
|
-
basename:
|
|
1453
|
-
dirname:
|
|
1452
|
+
basename: nodePath.basename(p),
|
|
1453
|
+
dirname: nodePath.dirname(p),
|
|
1454
1454
|
path: p,
|
|
1455
1455
|
newDirs: [],
|
|
1456
1456
|
error: err
|
|
@@ -1460,8 +1460,8 @@ function createNodeSys(c = {}) {
|
|
|
1460
1460
|
},
|
|
1461
1461
|
createDirSync(p, opts) {
|
|
1462
1462
|
const results = {
|
|
1463
|
-
basename:
|
|
1464
|
-
dirname:
|
|
1463
|
+
basename: nodePath.basename(p),
|
|
1464
|
+
dirname: nodePath.dirname(p),
|
|
1465
1465
|
path: p,
|
|
1466
1466
|
newDirs: [],
|
|
1467
1467
|
error: null
|
|
@@ -1474,7 +1474,7 @@ function createNodeSys(c = {}) {
|
|
|
1474
1474
|
return results;
|
|
1475
1475
|
},
|
|
1476
1476
|
createWorkerController(maxConcurrentWorkers) {
|
|
1477
|
-
return new NodeWorkerController(
|
|
1477
|
+
return new NodeWorkerController(nodePath.join(__dirname, "sys", "node", "worker.mjs"), maxConcurrentWorkers);
|
|
1478
1478
|
},
|
|
1479
1479
|
async destroy() {
|
|
1480
1480
|
const waits = [];
|
|
@@ -1533,13 +1533,13 @@ function createNodeSys(c = {}) {
|
|
|
1533
1533
|
onProcessInterrupt: (cb) => {
|
|
1534
1534
|
if (!onInterruptsCallbacks.includes(cb)) onInterruptsCallbacks.push(cb);
|
|
1535
1535
|
},
|
|
1536
|
-
platformPath:
|
|
1536
|
+
platformPath: nodePath,
|
|
1537
1537
|
readDir(p) {
|
|
1538
1538
|
return new Promise((resolve) => {
|
|
1539
1539
|
fs.readdir(p, (err, files) => {
|
|
1540
1540
|
if (err) resolve([]);
|
|
1541
1541
|
else resolve(files.map((f) => {
|
|
1542
|
-
return normalizePath(
|
|
1542
|
+
return normalizePath(nodePath.join(p, f));
|
|
1543
1543
|
}));
|
|
1544
1544
|
});
|
|
1545
1545
|
});
|
|
@@ -1550,7 +1550,7 @@ function createNodeSys(c = {}) {
|
|
|
1550
1550
|
readDirSync(p) {
|
|
1551
1551
|
try {
|
|
1552
1552
|
return fs.readdirSync(p).map((f) => {
|
|
1553
|
-
return normalizePath(
|
|
1553
|
+
return normalizePath(nodePath.join(p, f));
|
|
1554
1554
|
});
|
|
1555
1555
|
} catch {}
|
|
1556
1556
|
return [];
|
|
@@ -1627,8 +1627,8 @@ function createNodeSys(c = {}) {
|
|
|
1627
1627
|
force: true
|
|
1628
1628
|
}, (err) => {
|
|
1629
1629
|
resolve({
|
|
1630
|
-
basename:
|
|
1631
|
-
dirname:
|
|
1630
|
+
basename: nodePath.basename(p),
|
|
1631
|
+
dirname: nodePath.dirname(p),
|
|
1632
1632
|
path: p,
|
|
1633
1633
|
removedDirs: [],
|
|
1634
1634
|
removedFiles: [],
|
|
@@ -1637,8 +1637,8 @@ function createNodeSys(c = {}) {
|
|
|
1637
1637
|
});
|
|
1638
1638
|
else fs.rmdir(p, (err) => {
|
|
1639
1639
|
resolve({
|
|
1640
|
-
basename:
|
|
1641
|
-
dirname:
|
|
1640
|
+
basename: nodePath.basename(p),
|
|
1641
|
+
dirname: nodePath.dirname(p),
|
|
1642
1642
|
path: p,
|
|
1643
1643
|
removedDirs: [],
|
|
1644
1644
|
removedFiles: [],
|
|
@@ -1655,8 +1655,8 @@ function createNodeSys(c = {}) {
|
|
|
1655
1655
|
});
|
|
1656
1656
|
else fs.rmdirSync(p);
|
|
1657
1657
|
return {
|
|
1658
|
-
basename:
|
|
1659
|
-
dirname:
|
|
1658
|
+
basename: nodePath.basename(p),
|
|
1659
|
+
dirname: nodePath.dirname(p),
|
|
1660
1660
|
path: p,
|
|
1661
1661
|
removedDirs: [],
|
|
1662
1662
|
removedFiles: [],
|
|
@@ -1664,8 +1664,8 @@ function createNodeSys(c = {}) {
|
|
|
1664
1664
|
};
|
|
1665
1665
|
} catch (e) {
|
|
1666
1666
|
return {
|
|
1667
|
-
basename:
|
|
1668
|
-
dirname:
|
|
1667
|
+
basename: nodePath.basename(p),
|
|
1668
|
+
dirname: nodePath.dirname(p),
|
|
1669
1669
|
path: p,
|
|
1670
1670
|
removedDirs: [],
|
|
1671
1671
|
removedFiles: [],
|
|
@@ -1677,8 +1677,8 @@ function createNodeSys(c = {}) {
|
|
|
1677
1677
|
return new Promise((resolve) => {
|
|
1678
1678
|
fs.unlink(p, (err) => {
|
|
1679
1679
|
resolve({
|
|
1680
|
-
basename:
|
|
1681
|
-
dirname:
|
|
1680
|
+
basename: nodePath.basename(p),
|
|
1681
|
+
dirname: nodePath.dirname(p),
|
|
1682
1682
|
path: p,
|
|
1683
1683
|
error: err
|
|
1684
1684
|
});
|
|
@@ -1687,8 +1687,8 @@ function createNodeSys(c = {}) {
|
|
|
1687
1687
|
},
|
|
1688
1688
|
removeFileSync(p) {
|
|
1689
1689
|
const results = {
|
|
1690
|
-
basename:
|
|
1691
|
-
dirname:
|
|
1690
|
+
basename: nodePath.basename(p),
|
|
1691
|
+
dirname: nodePath.dirname(p),
|
|
1692
1692
|
path: p,
|
|
1693
1693
|
error: null
|
|
1694
1694
|
};
|
|
@@ -1763,7 +1763,7 @@ function createNodeSys(c = {}) {
|
|
|
1763
1763
|
sys.watchFile = (filePath, callback) => {
|
|
1764
1764
|
logger?.debug(`NODE_SYS_DEBUG::watchFile ${filePath}`);
|
|
1765
1765
|
const normalizedPath = normalizePath(filePath);
|
|
1766
|
-
const dirPath =
|
|
1766
|
+
const dirPath = nodePath.dirname(filePath);
|
|
1767
1767
|
const subscriptionPromise = parcelWatcher.subscribe(dirPath, (err, events) => {
|
|
1768
1768
|
if (err) {
|
|
1769
1769
|
logger?.error(`Watch error for ${filePath}: ${err.message}`);
|
package/dist/sys/node/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node
|
|
1
|
+
import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-BSwezCWj.mjs";
|
|
2
2
|
export { createNodeLogger, createNodeSys, setupNodeProcess };
|
package/dist/sys/node/worker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as createWorkerMessageHandler } from "../../compiler-
|
|
2
|
-
import { t as createNodeSys } from "../../node
|
|
1
|
+
import { l as createWorkerMessageHandler } from "../../compiler-DFO3q3RZ.mjs";
|
|
2
|
+
import { t as createNodeSys } from "../../node-BSwezCWj.mjs";
|
|
3
3
|
//#region src/sys/node/node-worker-thread.ts
|
|
4
4
|
/**
|
|
5
5
|
* Initialize a worker thread, setting up various machinery for managing
|
package/dist/testing/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { A as HYDRATE_ID, C as setAssetPath, D as DEFAULT_DOC_DATA, F as reWireGetterSetter, M as STENCIL_DOC_DATA, P as getHostRef$1, S as getAssetPath, X as Env, Y as BUILD, _ as insertBefore, b as getElement, c as Fragment, g as getRenderingRef, h as forceUpdate, j as NODE_TYPE, k as HYDRATE_CHILD_ID, l as bootstrapLazy, m as h, p as Host, s as Mixin, u as getMode, v as renderVdom, y as createEvent } from "../client-aTQ7xHxx.mjs";
|
|
2
2
|
import { L as EVENT_FLAGS, h as noop, w as CMP_FLAGS } from "../regular-expression-CFVJOTUh.mjs";
|
|
3
|
-
import { _ as getBuildFeatures, c as createWorkerContext, g as BuildContext, h as Cache, i as createSystem, o as loadConfig, p as createInMemoryFs, s as createCompiler } from "../compiler-
|
|
4
|
-
import { wt as formatLazyBundleRuntimeMeta } from "../validation-
|
|
5
|
-
import { o as buildEvents } from "../node
|
|
3
|
+
import { _ as getBuildFeatures, c as createWorkerContext, g as BuildContext, h as Cache, i as createSystem, o as loadConfig, p as createInMemoryFs, s as createCompiler } from "../compiler-DFO3q3RZ.mjs";
|
|
4
|
+
import { wt as formatLazyBundleRuntimeMeta } from "../validation-CtaOJgnM.mjs";
|
|
5
|
+
import { o as buildEvents } from "../node-BSwezCWj.mjs";
|
|
6
6
|
import fs from "node:fs";
|
|
7
|
-
import
|
|
7
|
+
import nodePath from "node:path";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
|
-
import path
|
|
9
|
+
import path from "path";
|
|
10
10
|
import { MockWindow, setupGlobal } from "@stencil/mock-doc";
|
|
11
11
|
import { createHash } from "crypto";
|
|
12
12
|
import { afterAll, vi } from "vitest";
|
|
@@ -88,7 +88,7 @@ const createTestingSystem = () => {
|
|
|
88
88
|
let diskReads = 0;
|
|
89
89
|
let diskWrites = 0;
|
|
90
90
|
const sys = createSystem();
|
|
91
|
-
sys.platformPath = path
|
|
91
|
+
sys.platformPath = path;
|
|
92
92
|
sys.generateContentHash = (content, length) => {
|
|
93
93
|
let hash = createHash("sha1").update(content).digest("hex").toLowerCase();
|
|
94
94
|
if (typeof length === "number") hash = hash.slice(0, length);
|
|
@@ -264,7 +264,7 @@ const mockComponentMeta = (overrides = {}) => ({
|
|
|
264
264
|
*/
|
|
265
265
|
function mockValidatedConfig(overrides = {}) {
|
|
266
266
|
const baseConfig = mockConfig(overrides);
|
|
267
|
-
const rootDir =
|
|
267
|
+
const rootDir = nodePath.resolve("/");
|
|
268
268
|
return {
|
|
269
269
|
...baseConfig,
|
|
270
270
|
cacheDir: ".stencil",
|
|
@@ -279,7 +279,7 @@ function mockValidatedConfig(overrides = {}) {
|
|
|
279
279
|
minifyJs: false,
|
|
280
280
|
namespace: "Testing",
|
|
281
281
|
outputTargets: baseConfig.outputTargets ?? [],
|
|
282
|
-
packageJsonFilePath:
|
|
282
|
+
packageJsonFilePath: nodePath.join(rootDir, "package.json"),
|
|
283
283
|
rootDir,
|
|
284
284
|
sourceMap: true,
|
|
285
285
|
srcDir: "/src",
|
|
@@ -300,7 +300,7 @@ function mockValidatedConfig(overrides = {}) {
|
|
|
300
300
|
* @returns the mock Stencil configuration
|
|
301
301
|
*/
|
|
302
302
|
function mockConfig(overrides = {}) {
|
|
303
|
-
const rootDir =
|
|
303
|
+
const rootDir = nodePath.resolve("/");
|
|
304
304
|
let { sys } = overrides;
|
|
305
305
|
if (!sys) sys = createTestingSystem();
|
|
306
306
|
sys.getCurrentDirectory = () => rootDir;
|
|
@@ -482,8 +482,8 @@ const mockModule = (mod = {}) => ({
|
|
|
482
482
|
});
|
|
483
483
|
//#endregion
|
|
484
484
|
//#region src/testing/create-test-compiler.ts
|
|
485
|
-
const __dirname =
|
|
486
|
-
const TESTING_TSCONFIG =
|
|
485
|
+
const __dirname = nodePath.dirname(fileURLToPath(import.meta.url));
|
|
486
|
+
const TESTING_TSCONFIG = nodePath.resolve(__dirname, "fixtures/tsconfig.testing.json");
|
|
487
487
|
/**
|
|
488
488
|
* Builds a patched sys that falls through to real disk for TypeScript lib files.
|
|
489
489
|
*
|
|
@@ -538,7 +538,7 @@ const createPatchedSys = () => {
|
|
|
538
538
|
return mem;
|
|
539
539
|
}
|
|
540
540
|
};
|
|
541
|
-
sys.getCompilerExecutingPath = () =>
|
|
541
|
+
sys.getCompilerExecutingPath = () => nodePath.resolve(__dirname, "../../dist/compiler/index.mjs");
|
|
542
542
|
return sys;
|
|
543
543
|
};
|
|
544
544
|
/**
|
|
@@ -634,7 +634,7 @@ const createTestCompiler = async (options = {}) => {
|
|
|
634
634
|
...tsconfigObj,
|
|
635
635
|
include: [validatedConfig.srcDir]
|
|
636
636
|
}));
|
|
637
|
-
await compiler.fs.writeFile(
|
|
637
|
+
await compiler.fs.writeFile(nodePath.join(validatedConfig.srcDir, "components.d.ts"), "");
|
|
638
638
|
return {
|
|
639
639
|
compiler,
|
|
640
640
|
config: validatedConfig,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-z9aeyW2b.mjs";
|
|
2
2
|
import { $ as VALID_CONFIG_OUTPUT_TARGETS, C as ASSETS, F as DOCS_README, H as LISTENER_FLAGS, I as DOCS_VSCODE, J as STANDALONE, M as DOCS_CUSTOM, N as DOCS_CUSTOM_ELEMENTS_MANIFEST, O as COPY, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, T as COLLECTION, U as LOADER_BUNDLE, W as MEMBER_FLAGS, Y as STATS, _ as sortBy, b as toTitleCase, et as WATCH_FLAGS, i as flatOne, j as DIST_LAZY, k as CUSTOM, n as dashToPascalCase, p as isString, q as SSR_WASM, r as escapeWithPattern, u as isIterable, w as CMP_FLAGS, y as toDashCase, z as GLOBAL_STYLE } from "./regular-expression-CFVJOTUh.mjs";
|
|
3
|
-
import
|
|
3
|
+
import nodePath, { basename, dirname, relative } from "node:path";
|
|
4
4
|
import picomatch from "picomatch";
|
|
5
5
|
//#region src/utils/byte-size.ts
|
|
6
6
|
/**
|
|
@@ -749,7 +749,7 @@ function relative$1(from, to) {
|
|
|
749
749
|
* path. However, our algorithm does differ from that of Node's, as described in this function's JSDoc when a zero
|
|
750
750
|
* length string is encountered.
|
|
751
751
|
*/
|
|
752
|
-
return normalizePath(
|
|
752
|
+
return normalizePath(nodePath.relative(from, to), false);
|
|
753
753
|
}
|
|
754
754
|
/**
|
|
755
755
|
* A wrapped version of node.js' {@link path.join} which adds our custom
|
|
@@ -772,7 +772,7 @@ function join$1(...paths) {
|
|
|
772
772
|
* Note that our algorithm does differ from Node's, as described in this function's JSDoc regarding trailing
|
|
773
773
|
* slashes.
|
|
774
774
|
*/
|
|
775
|
-
return normalizePath(
|
|
775
|
+
return normalizePath(nodePath.join(...paths), false);
|
|
776
776
|
}
|
|
777
777
|
/**
|
|
778
778
|
* A wrapped version of node.js' {@link path.resolve} which adds our custom
|
|
@@ -789,7 +789,7 @@ function resolve$1(...paths) {
|
|
|
789
789
|
* When normalizing, we should _not_ attempt to relativize the path returned by the native Node `resolve` method. When
|
|
790
790
|
* calculating the path from each of the string-based parts, Node does not prepend './' to the calculated path.
|
|
791
791
|
*/
|
|
792
|
-
return normalizePath(
|
|
792
|
+
return normalizePath(nodePath.resolve(...paths), false);
|
|
793
793
|
}
|
|
794
794
|
/**
|
|
795
795
|
* A wrapped version of node.js' {@link path.normalize} which adds our custom
|
|
@@ -806,7 +806,7 @@ function normalize(toNormalize) {
|
|
|
806
806
|
* When normalizing, we should _not_ attempt to relativize the path returned by the native Node `normalize` method.
|
|
807
807
|
* When calculating the path from each of the string-based parts, Node does not prepend './' to the calculated path.
|
|
808
808
|
*/
|
|
809
|
-
return normalizePath(
|
|
809
|
+
return normalizePath(nodePath.normalize(toNormalize), false);
|
|
810
810
|
}
|
|
811
811
|
//#endregion
|
|
812
812
|
//#region src/utils/logger/logger-typescript.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.15",
|
|
4
4
|
"description": "A Compiler for Web Components and Progressive Web Apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
"terser": "^5.0.0",
|
|
122
122
|
"tinyglobby": "^0.2.0",
|
|
123
123
|
"typescript": ">4.0.0 <7.0.0",
|
|
124
|
-
"@stencil/
|
|
125
|
-
"@stencil/
|
|
126
|
-
"@stencil/mock-doc": "5.0.0-alpha.
|
|
124
|
+
"@stencil/dev-server": "5.0.0-alpha.15",
|
|
125
|
+
"@stencil/cli": "5.0.0-alpha.15",
|
|
126
|
+
"@stencil/mock-doc": "5.0.0-alpha.15"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
129
|
"@ionic/prettier-config": "^4.0.0",
|