@arcgis/lumina-compiler 4.34.0-next.127 → 4.34.0-next.129
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.
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { setApiExtractorErrorLogger as c } from "@arcgis/api-extractor";
|
|
2
|
+
import { toSystemPathSeparators as i, path as g } from "@arcgis/components-build-utils";
|
|
3
|
+
import a from "chalk";
|
|
4
|
+
let e = {
|
|
5
|
+
// Temporary logger to use until vite config is loaded and we have access to
|
|
6
|
+
// actual logger.
|
|
7
|
+
info: console.log,
|
|
8
|
+
warn: console.warn,
|
|
9
|
+
error: console.error
|
|
10
|
+
}, s = process.cwd();
|
|
11
|
+
function n(t, r, o) {
|
|
12
|
+
return typeof o == "string" ? (o = o.startsWith(s) ? i(g.relative(s, o)) : o, o = `${o}: `) : o = "", `${t} ${o}${r}`;
|
|
13
|
+
}
|
|
14
|
+
const f = {
|
|
15
|
+
initialize(t, r) {
|
|
16
|
+
e = t, s = r, c(e.error);
|
|
17
|
+
},
|
|
18
|
+
info(t, r, o) {
|
|
19
|
+
e.info(n(a.cyan(`[${t}]`), r, o));
|
|
20
|
+
},
|
|
21
|
+
warn(t, r, o) {
|
|
22
|
+
e.warn(n(a.yellow(`[${t}]`), r, o));
|
|
23
|
+
},
|
|
24
|
+
error(t, r, o) {
|
|
25
|
+
e.error(n(a.red(`[${t}]`), r, o)), process.exitCode = 1;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
function l(t, r, o) {
|
|
29
|
+
return r instanceof Error ? (r.message = n(t, r.message, o), r) : n(a.red(`[${t}]`), r, o);
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
l as f,
|
|
33
|
+
f as l
|
|
34
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expect as p, afterEach as V } from "vitest";
|
|
2
2
|
import { toSystemPathSeparators as L, isPosix as S } from "@arcgis/components-build-utils";
|
|
3
3
|
import { p as T, i as h } from "../types-C3YmWTVv.js";
|
|
4
|
-
import { l as y } from "../logger-
|
|
4
|
+
import { l as y } from "../logger-hJvg0JOj.js";
|
|
5
5
|
async function D(s) {
|
|
6
6
|
await s.exposeFunction("puppeteerOnEvent", (e, t) => {
|
|
7
7
|
j(s._e2eEvents, e, t);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CompilerContext } from '../context';
|
|
2
|
-
import {
|
|
3
|
-
export declare
|
|
2
|
+
import { Plugin } from 'vite';
|
|
3
|
+
export declare const injectRuntimeOptions: (context: CompilerContext) => Plugin;
|
|
4
4
|
/**
|
|
5
5
|
* Add to chunks/runtime.js import statement for the global CSS file.
|
|
6
6
|
* This way CSS is injected automatically, simplifying get started instructions.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as ts } from 'typescript';
|
|
2
|
-
import { FileTransformer } from '../publicTypes';
|
|
2
|
+
import { FileTransformContext, FileTransformer } from '../publicTypes';
|
|
3
3
|
import { CompilerContext } from '../context';
|
|
4
4
|
/**
|
|
5
5
|
* Run a chain of transformers on a TypeScript .tsx or .d.ts file and return
|
|
6
6
|
* the resulting source file
|
|
7
7
|
*/
|
|
8
8
|
export declare function runTransformers(context: CompilerContext, transformationContext: ts.TransformationContext, sourceFile: ts.SourceFile, transformers: readonly FileTransformer[]): ts.SourceFile;
|
|
9
|
+
export declare function removeComments(node: ts.Node, context: FileTransformContext): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina-compiler",
|
|
3
|
-
"version": "4.34.0-next.
|
|
3
|
+
"version": "4.34.0-next.129",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcgis/api-extractor": "4.34.0-next.
|
|
22
|
-
"@arcgis/components-build-utils": "4.34.0-next.
|
|
23
|
-
"@arcgis/toolkit": "~4.34.0-next.
|
|
21
|
+
"@arcgis/api-extractor": "4.34.0-next.129",
|
|
22
|
+
"@arcgis/components-build-utils": "4.34.0-next.129",
|
|
23
|
+
"@arcgis/toolkit": "~4.34.0-next.129",
|
|
24
24
|
"chalk": "^5.4.1",
|
|
25
25
|
"esbuild": "^0.25.5",
|
|
26
26
|
"glob": "^11.0.3",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vite-plugin-dts": "^4.5.4"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@arcgis/lumina": "~4.34.0-next.
|
|
33
|
+
"@arcgis/lumina": "~4.34.0-next.129",
|
|
34
34
|
"lit": "^3.3.0",
|
|
35
35
|
"typescript": "~5.8.3",
|
|
36
36
|
"vite": "^7.0.0",
|
package/dist/logger-KpGU2b3R.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { toSystemPathSeparators as i, path as c } from "@arcgis/components-build-utils";
|
|
2
|
-
import a from "chalk";
|
|
3
|
-
import { createLogger as g } from "vite";
|
|
4
|
-
let n = g(), s = process.cwd();
|
|
5
|
-
function e(r, o, t) {
|
|
6
|
-
return typeof t == "string" ? (t = t.startsWith(s) ? i(c.relative(s, t)) : t, t = `${t}: `) : t = "", `${r} ${t}${o}`;
|
|
7
|
-
}
|
|
8
|
-
const f = {
|
|
9
|
-
initialize(r, o) {
|
|
10
|
-
n = r, s = o;
|
|
11
|
-
},
|
|
12
|
-
info(r, o, t) {
|
|
13
|
-
n.info(e(a.cyan(`[${r}]`), o, t));
|
|
14
|
-
},
|
|
15
|
-
warn(r, o, t) {
|
|
16
|
-
n.warn(e(a.yellow(`[${r}]`), o, t));
|
|
17
|
-
},
|
|
18
|
-
error(r, o, t) {
|
|
19
|
-
n.error(e(a.red(`[${r}]`), o, t)), process.exitCode = 1;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
function u(r, o, t) {
|
|
23
|
-
return o instanceof Error ? (o.message = e(r, o.message, t), o) : e(a.red(`[${r}]`), o, t);
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
u as f,
|
|
27
|
-
f as l
|
|
28
|
-
};
|