@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 +3 -0
- package/dist/cli.mjs +1 -1
- package/env.d.ts +7 -2
- package/package.json +1 -1
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.
|
|
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
|
-
*
|
|
3
|
+
* Whether the code is running in a development context.
|
|
4
4
|
*
|
|
5
|
-
* @remarks
|
|
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
|
|