@fastkit/plugboy 1.2.0 → 1.2.1
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/cli.mjs +1 -1
- package/env.d.ts +24 -21
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
package/env.d.ts
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* - published `build`: replaced with a runtime check of the consumer's
|
|
8
|
-
* environment (`process.env.NODE_ENV === 'development'` or
|
|
9
|
-
* `import.meta.env.DEV === true`), so the branch is evaluated at the
|
|
10
|
-
* consumer's runtime rather than eliminated.
|
|
11
|
-
*/
|
|
12
|
-
const __PLUGBOY_DEV__: boolean;
|
|
1
|
+
// This file must remain a SCRIPT (no top-level `import`/`export`). A trailing
|
|
2
|
+
// `export {}` would make it a module, and top-level wildcard `declare module
|
|
3
|
+
// '*.svg'` declarations in a module file are NOT registered as global ambient
|
|
4
|
+
// modules — they would silently fail to apply on the consumer side. Keeping the
|
|
5
|
+
// file a script (plain top-level `declare const` / `declare module`) is what
|
|
6
|
+
// makes both the constants and the module declarations below globally visible.
|
|
13
7
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Whether the code is running in a development context.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* - `stub`: always `true`.
|
|
13
|
+
* - published `build`: replaced with a runtime check of the consumer's
|
|
14
|
+
* environment (`process.env.NODE_ENV === 'development'` or
|
|
15
|
+
* `import.meta.env.DEV === true`), so the branch is evaluated at the
|
|
16
|
+
* consumer's runtime rather than eliminated.
|
|
17
|
+
*/
|
|
18
|
+
declare const __PLUGBOY_DEV__: boolean;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The bundle is in stub mode.
|
|
22
|
+
*
|
|
23
|
+
* @remarks In stub mode, source code is executed in the source directory. This flag is available because of the different way of loading files in relative paths.
|
|
24
|
+
*/
|
|
25
|
+
declare const __PLUGBOY_STUB__: boolean;
|
|
21
26
|
|
|
22
27
|
// The declarations below mirror the subset of Vite's `vite/client` module
|
|
23
28
|
// declarations that Plugboy is compatible with, so that source that already
|
|
@@ -231,5 +236,3 @@ declare module '*?raw' {
|
|
|
231
236
|
const src: string;
|
|
232
237
|
export default src;
|
|
233
238
|
}
|
|
234
|
-
|
|
235
|
-
export {};
|