@fastkit/plugboy 1.0.0-next.8 → 1.0.0-next.9

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/README.md CHANGED
@@ -5,6 +5,8 @@
5
5
 
6
6
  A monorepo-compatible module bundler and project management tool. Provides a high-speed build system based on tsdown, and other tools.
7
7
 
8
+ > **Upgrading from v0.x?** See the [v1 migration guide](./docs/migrations/v1.md) (tsdown migration).
9
+
8
10
  ## Features
9
11
 
10
12
  - **High-Speed Build**: Ultra-fast bundling based on tsdown
@@ -14,6 +16,7 @@ A monorepo-compatible module bundler and project management tool. Provides a hig
14
16
  - **CSS Integration**: Sass, Vanilla Extract, and CSS optimization support
15
17
  - **Development Efficiency**: Fast development cycle with stub functionality
16
18
  - **Automation**: Automatic generation of package.json and exports
19
+ - **Env Constants**: `__PLUGBOY_DEV__` / `__PLUGBOY_STUB__` for guarding dev-only code ([docs](./docs/env-constants.md))
17
20
 
18
21
  ## Installation
19
22
 
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { i as getWorkspace, t as generateWorkspace } from "./workspace-yGCJgfi1.mjs";
2
2
  import { cac } from "cac";
3
3
  //#region package.json
4
- var version = "1.0.0-next.8";
4
+ var version = "1.0.0-next.9";
5
5
  //#endregion
6
6
  //#region src/cli.ts
7
7
  async function main() {
package/env.d.ts CHANGED
@@ -1,8 +1,13 @@
1
1
  declare global {
2
2
  /**
3
- * Development bundle or not
3
+ * Whether the code is running in a development context.
4
4
  *
5
- * @remarks This feature is still under development and is currently only `true` in stub mode.
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.
6
11
  */
7
12
  const __PLUGBOY_DEV__: boolean;
8
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/plugboy",
3
- "version": "1.0.0-next.8",
3
+ "version": "1.0.0-next.9",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "repository": {