@normed/bundle 4.8.0 → 4.8.3
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/CHANGELOG.md +4 -0
- package/bundles/bin/cli.js +94 -50
- package/bundles/bin/cli.js.map +3 -3
- package/bundles/index.js +21 -11
- package/bundles/index.js.map +3 -3
- package/bundles/log.d.ts +6 -0
- package/package.json +2 -2
package/bundles/index.js
CHANGED
|
@@ -68367,6 +68367,10 @@ var refinePackageJSON = makePartialRefinement({
|
|
|
68367
68367
|
|
|
68368
68368
|
// pnp:/builds/normed/bundle/packages/bundle/src/log.ts
|
|
68369
68369
|
var import_chalk = __toESM(require_source());
|
|
68370
|
+
var isAgent = !!process.env["CLAUDECODE"] || !!process.env["CURSOR_AGENT"] || !!process.env["AGENT"];
|
|
68371
|
+
if (process.env["NO_COLOR"] !== void 0) {
|
|
68372
|
+
import_chalk.default.level = 0;
|
|
68373
|
+
}
|
|
68370
68374
|
function logStdOut(colour, ...message) {
|
|
68371
68375
|
console.log(...message.map((m) => typeof m === "string" ? colour(m) : m));
|
|
68372
68376
|
}
|
|
@@ -68629,7 +68633,9 @@ var NoMatchingBuilder = class extends Error {
|
|
|
68629
68633
|
|
|
68630
68634
|
// pnp:/builds/normed/bundle/packages/bundle/src/builders/copy.ts
|
|
68631
68635
|
var import_chalk2 = __toESM(require_source());
|
|
68632
|
-
|
|
68636
|
+
if (process.env["NO_COLOR"] === void 0) {
|
|
68637
|
+
import_chalk2.default.level = 3;
|
|
68638
|
+
}
|
|
68633
68639
|
var copyBuilder = {
|
|
68634
68640
|
name: "copy",
|
|
68635
68641
|
color: import_chalk2.default.hex("#CDCDCD"),
|
|
@@ -69008,7 +69014,7 @@ async function processHtmlAssets(html, pugFilePath, options, webRoot) {
|
|
|
69008
69014
|
const specifier = getResolvedSpecifier(value);
|
|
69009
69015
|
const absolutePath = resolvePackagePath(specifier, pugFilePath);
|
|
69010
69016
|
if (!absolutePath) {
|
|
69011
|
-
|
|
69017
|
+
log_default.warn(
|
|
69012
69018
|
`Warning: Cannot resolve build reference: "${specifier}" (from ${value})
|
|
69013
69019
|
Referenced in rendered HTML of ${pugFilePath}`
|
|
69014
69020
|
);
|
|
@@ -69036,7 +69042,7 @@ async function processHtmlAssets(html, pugFilePath, options, webRoot) {
|
|
|
69036
69042
|
packageCssReferences.push({ originalHref: value, absolutePath });
|
|
69037
69043
|
}
|
|
69038
69044
|
} else {
|
|
69039
|
-
|
|
69045
|
+
log_default.warn(
|
|
69040
69046
|
`Warning: build: prefix used on non-compilable file "${specifier}" (extension: ${ext}). Did you mean copy:?
|
|
69041
69047
|
Referenced in rendered HTML of ${pugFilePath}`
|
|
69042
69048
|
);
|
|
@@ -69046,7 +69052,7 @@ async function processHtmlAssets(html, pugFilePath, options, webRoot) {
|
|
|
69046
69052
|
const specifier = getResolvedSpecifier(value);
|
|
69047
69053
|
const absolutePath = resolvePackagePath(specifier, pugFilePath);
|
|
69048
69054
|
if (!absolutePath) {
|
|
69049
|
-
|
|
69055
|
+
log_default.warn(
|
|
69050
69056
|
`Warning: Cannot resolve copy reference: "${specifier}" (from ${value})
|
|
69051
69057
|
Referenced in rendered HTML of ${pugFilePath}`
|
|
69052
69058
|
);
|
|
@@ -69076,14 +69082,14 @@ async function processHtmlAssets(html, pugFilePath, options, webRoot) {
|
|
|
69076
69082
|
}
|
|
69077
69083
|
}
|
|
69078
69084
|
} else if (isPackageCssReference(value)) {
|
|
69079
|
-
|
|
69085
|
+
log_default.warn(
|
|
69080
69086
|
`Warning: pkg: prefix is deprecated, use copy: instead: "${value}"
|
|
69081
69087
|
Referenced in rendered HTML of ${pugFilePath}`
|
|
69082
69088
|
);
|
|
69083
69089
|
const packageSpecifier = getPackageSpecifier(value);
|
|
69084
69090
|
const absolutePath = resolvePackagePath(packageSpecifier, pugFilePath);
|
|
69085
69091
|
if (!absolutePath) {
|
|
69086
|
-
|
|
69092
|
+
log_default.warn(
|
|
69087
69093
|
`Warning: Package not found: "${packageSpecifier}" (from ${value})
|
|
69088
69094
|
Referenced in rendered HTML of ${pugFilePath}`
|
|
69089
69095
|
);
|
|
@@ -69092,14 +69098,14 @@ async function processHtmlAssets(html, pugFilePath, options, webRoot) {
|
|
|
69092
69098
|
packageCssReferences.push({ originalHref: value, absolutePath });
|
|
69093
69099
|
}
|
|
69094
69100
|
} else if (isPackageReference(value)) {
|
|
69095
|
-
|
|
69101
|
+
log_default.warn(
|
|
69096
69102
|
`Warning: pkg: prefix is deprecated, use copy: instead: "${value}"
|
|
69097
69103
|
Referenced in rendered HTML of ${pugFilePath}`
|
|
69098
69104
|
);
|
|
69099
69105
|
const packageSpecifier = getPackageSpecifier(value);
|
|
69100
69106
|
const absolutePath = resolvePackagePath(packageSpecifier, pugFilePath);
|
|
69101
69107
|
if (!absolutePath) {
|
|
69102
|
-
|
|
69108
|
+
log_default.warn(
|
|
69103
69109
|
`Warning: Package not found: "${packageSpecifier}" (from ${value})
|
|
69104
69110
|
Referenced in rendered HTML of ${pugFilePath}`
|
|
69105
69111
|
);
|
|
@@ -69157,7 +69163,7 @@ async function processAsset(assetPath, pugDir, pugFilePath, outdir, outbase, ass
|
|
|
69157
69163
|
return processedAssets.get(absoluteSource);
|
|
69158
69164
|
}
|
|
69159
69165
|
if (!fs6.existsSync(absoluteSource)) {
|
|
69160
|
-
|
|
69166
|
+
log_default.warn(
|
|
69161
69167
|
`Warning: Asset not found: "${assetPath}" (resolved to ${absoluteSource})
|
|
69162
69168
|
Referenced in rendered HTML of ${pugFilePath}`
|
|
69163
69169
|
);
|
|
@@ -69660,7 +69666,9 @@ var import_esbuild_plugin_pnp = __toESM(require_lib15());
|
|
|
69660
69666
|
import * as ts from "typescript";
|
|
69661
69667
|
import path8 from "path";
|
|
69662
69668
|
import fs9 from "fs";
|
|
69663
|
-
|
|
69669
|
+
if (process.env["NO_COLOR"] === void 0) {
|
|
69670
|
+
import_chalk3.default.level = 3;
|
|
69671
|
+
}
|
|
69664
69672
|
function rewritePugReferencesInHtml(html, pugReferences, pugToOutputPath, htmlOutputDir, outdir) {
|
|
69665
69673
|
let result = html;
|
|
69666
69674
|
for (const ref of pugReferences) {
|
|
@@ -70329,7 +70337,9 @@ async function compileToTypeDeclarations(fileNames, options) {
|
|
|
70329
70337
|
|
|
70330
70338
|
// pnp:/builds/normed/bundle/packages/bundle/src/builders/index.ts
|
|
70331
70339
|
var import_chalk4 = __toESM(require_source());
|
|
70332
|
-
|
|
70340
|
+
if (process.env["NO_COLOR"] === void 0) {
|
|
70341
|
+
import_chalk4.default.level = 3;
|
|
70342
|
+
}
|
|
70333
70343
|
function verifyBuilder(builder) {
|
|
70334
70344
|
const tests = [
|
|
70335
70345
|
(builder2) => {
|