robuild 0.0.18 → 0.0.19

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,80 @@
1
+ //#region package.json
2
+ var package_default = {
3
+ name: "robuild",
4
+ type: "module",
5
+ version: "0.0.19",
6
+ packageManager: "pnpm@10.11.1",
7
+ description: "Zero-config ESM/TS package builder. Powered by Rolldown and Oxc",
8
+ license: "MIT",
9
+ repository: "Sunny-117/robuild",
10
+ sideEffects: false,
11
+ exports: {
12
+ ".": "./dist/index.mjs",
13
+ "./config": "./dist/config.mjs"
14
+ },
15
+ types: "./dist/index.d.mts",
16
+ bin: "./dist/cli.mjs",
17
+ files: ["dist"],
18
+ scripts: {
19
+ "build": "turbo build:raw --filter=robuild",
20
+ "build:raw": "pnpm test:types && pnpm robuild",
21
+ "dev": "pnpm test:raw",
22
+ "lint": "turbo lint:raw --filter=robuild",
23
+ "lint:raw": "eslint .",
24
+ "lint:fix": "automd && eslint . --fix",
25
+ "robuild": "esno src/cli.ts",
26
+ "prepack": "pnpm build",
27
+ "release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
28
+ "test": "turbo test:raw --filter=robuild",
29
+ "test:raw": "vitest run",
30
+ "test:watch": "vitest",
31
+ "test:coverage": "turbo test:coverage:raw --filter=robuild",
32
+ "test:coverage:raw": "vitest run --coverage",
33
+ "test:coverage:watch": "vitest --coverage",
34
+ "test:ui": "vitest --ui",
35
+ "test:types": "tsc --noEmit --skipLibCheck src/**/*.ts",
36
+ "docs:dev": "vitepress dev docs",
37
+ "docs:build": "turbo docs:build:raw --filter=robuild",
38
+ "docs:build:raw": "vitepress build docs",
39
+ "docs:preview": "vitepress preview docs",
40
+ "commit": "git-cz",
41
+ "clean": "rm -rf .turbo dist coverage"
42
+ },
43
+ dependencies: {
44
+ "c12": "^3.0.4",
45
+ "cac": "^6.7.14",
46
+ "chokidar": "^3.0.3",
47
+ "consola": "^3.4.2",
48
+ "exsolve": "^1.0.5",
49
+ "glob": "^11.0.3",
50
+ "js-yaml": "^4.1.0",
51
+ "magic-string": "^0.30.17",
52
+ "minimatch": "^10.0.3",
53
+ "oxc-minify": "^0.98.0",
54
+ "oxc-parser": "^0.98.0",
55
+ "oxc-transform": "^0.98.0",
56
+ "pretty-bytes": "^7.0.1",
57
+ "rolldown": "1.0.0-rc.3",
58
+ "rolldown-plugin-dts": "^0.16.5",
59
+ "tinyglobby": "^0.2.14",
60
+ "typescript": "^5.8.3"
61
+ },
62
+ devDependencies: {
63
+ "@antfu/eslint-config": "^5.3.0",
64
+ "@types/js-yaml": "^4.0.9",
65
+ "@types/node": "^24.4.0",
66
+ "@vitest/coverage-v8": "^3.2.2",
67
+ "automd": "^0.4.0",
68
+ "changelogen": "^0.6.1",
69
+ "eslint": "^9.28.0",
70
+ "esno": "^4.8.0",
71
+ "git-cz": "^4.9.0",
72
+ "prettier": "^3.5.3",
73
+ "turbo": "^2.8.7",
74
+ "vitepress": "^1.6.3",
75
+ "vitest": "^3.2.2"
76
+ }
77
+ };
78
+
79
+ //#endregion
80
+ export { package_default as default };
@@ -130,7 +130,7 @@ var RobuildPluginManager = class {
130
130
  */
131
131
  getRolldownPlugins() {
132
132
  return this.plugins.map((plugin) => {
133
- const { robuildSetup, robuildBuildStart, robuildBuildEnd,...rolldownPlugin } = plugin;
133
+ const { robuildSetup, robuildBuildStart, robuildBuildEnd, ...rolldownPlugin } = plugin;
134
134
  return rolldownPlugin;
135
135
  });
136
136
  }
@@ -152,4 +152,4 @@ var RobuildPluginManager = class {
152
152
  };
153
153
 
154
154
  //#endregion
155
- export { RobuildPluginManager };
155
+ export { RobuildPluginManager as t };
@@ -0,0 +1,3 @@
1
+ import { t as RobuildPluginManager } from "./plugin-manager-CwMXjVtp.mjs";
2
+
3
+ export { RobuildPluginManager };
package/dist/cli.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { build } from "./_chunks/build-omZA_xD-.mjs";
3
- import "./_chunks/plugin-manager-w5yRGJRn.mjs";
2
+ import { t as build } from "./_chunks/build-snxBrML1.mjs";
4
3
  import { colors } from "consola/utils";
5
4
  import { consola } from "consola";
6
5
  import process from "node:process";
@@ -63,8 +62,7 @@ async function runBuild(entries, flags) {
63
62
  else {
64
63
  const { existsSync } = await import("node:fs");
65
64
  const { resolve } = await import("node:path");
66
- const defaultEntry = resolve(flags.dir || ".", "src/index.ts");
67
- if (existsSync(defaultEntry)) rawEntries = ["src/index.ts"];
65
+ if (existsSync(resolve(flags.dir || ".", "src/index.ts"))) rawEntries = ["src/index.ts"];
68
66
  else rawEntries = [];
69
67
  }
70
68
  const processedEntries = rawEntries.map((entry) => {
@@ -108,7 +106,7 @@ async function runBuild(entries, flags) {
108
106
  consola.info("Run `robuild --help` for usage information.");
109
107
  process.exit(1);
110
108
  }
111
- const buildConfig = {
109
+ await build({
112
110
  cwd: flags.dir,
113
111
  ...config,
114
112
  entries: processedEntries,
@@ -126,8 +124,7 @@ async function runBuild(entries, flags) {
126
124
  enabled: true,
127
125
  ...config.exports
128
126
  } : config.exports
129
- };
130
- await build(buildConfig);
127
+ });
131
128
  }
132
129
  cli.parse(process.argv, { run: false });
133
130
  try {
@@ -137,4 +134,5 @@ try {
137
134
  process.exit(1);
138
135
  }
139
136
 
140
- //#endregion
137
+ //#endregion
138
+ export { };