@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.
Files changed (3) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/env.d.ts +24 -21
  3. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { i as getWorkspace, t as generateWorkspace } from "./workspace-DLEx84dZ.mjs";
2
2
  import { cac } from "cac";
3
3
  //#region package.json
4
- var version = "1.2.0";
4
+ var version = "1.2.1";
5
5
  //#endregion
6
6
  //#region src/cli.ts
7
7
  async function main() {
package/env.d.ts CHANGED
@@ -1,23 +1,28 @@
1
- declare global {
2
- /**
3
- * Whether the code is running in a development context.
4
- *
5
- * @remarks
6
- * - `stub`: always `true`.
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
- * The bundle is in stub mode.
16
- *
17
- * @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.
18
- */
19
- const __PLUGBOY_STUB__: boolean;
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/plugboy",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "repository": {