@open-pioneer/build-package-cli 3.2.1 → 4.0.0-dev.20260729122223
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/CHANGELOG.md +57 -35
- package/dist/index.js +39 -40
- package/dist/index.js.map +1 -7
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
# Changelog @open-pioneer/build-package-cli
|
|
2
2
|
|
|
3
|
+
## 4.0.0-dev.20260729122223
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 8e38b33: Switch this package from legacy `main` / `types` fields to the modern `exports` field in `package.json`
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 8e38b33: Change build setup: now uses tsdown instead of esbuild.
|
|
12
|
+
- Updated dependencies [8e38b33]
|
|
13
|
+
- Updated dependencies [8e38b33]
|
|
14
|
+
- @open-pioneer/build-package@5.0.0-dev.20260729122223
|
|
15
|
+
|
|
16
|
+
## 3.2.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 3b1f9cf: Migrate from eslint to oxlint and from prettier to oxfmt
|
|
21
|
+
- Updated dependencies [3b1f9cf]
|
|
22
|
+
- @open-pioneer/build-package@4.3.2
|
|
23
|
+
|
|
3
24
|
## 3.2.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
6
27
|
|
|
7
28
|
- 1a78924: Bump dependencies
|
|
8
29
|
- Updated dependencies [1a78924]
|
|
9
|
-
|
|
30
|
+
- @open-pioneer/build-package@4.3.1
|
|
10
31
|
|
|
11
32
|
## 3.2.0
|
|
12
33
|
|
|
@@ -20,7 +41,7 @@
|
|
|
20
41
|
- Updated dependencies [78e38e2]
|
|
21
42
|
- Updated dependencies [f7e6e6a]
|
|
22
43
|
- Updated dependencies [7d706a3]
|
|
23
|
-
|
|
44
|
+
- @open-pioneer/build-package@4.3.0
|
|
24
45
|
|
|
25
46
|
## 3.1.0
|
|
26
47
|
|
|
@@ -29,8 +50,8 @@
|
|
|
29
50
|
- 9dda91c: Support `publishConfig.validation: false` to disable validation entirely.
|
|
30
51
|
- 9dda91c: Add support for the new `open-pioneer:deployment` import when building packages.
|
|
31
52
|
|
|
32
|
-
|
|
33
|
-
|
|
53
|
+
When compiling packages that make use of this new module, you must set the package format target (`--target` via CLI) to `1.1` or later.
|
|
54
|
+
Trails projects that consume such a package need an updated versions of the Open Pioneer Trails Vite plugin that supports the new target version.
|
|
34
55
|
|
|
35
56
|
### Patch Changes
|
|
36
57
|
|
|
@@ -38,14 +59,14 @@
|
|
|
38
59
|
- Updated dependencies [b49be74]
|
|
39
60
|
- Updated dependencies [9dda91c]
|
|
40
61
|
- Updated dependencies [9dda91c]
|
|
41
|
-
|
|
62
|
+
- @open-pioneer/build-package@4.2.0
|
|
42
63
|
|
|
43
64
|
## 3.0.9
|
|
44
65
|
|
|
45
66
|
### Patch Changes
|
|
46
67
|
|
|
47
68
|
- Updated dependencies [50ddcbd]
|
|
48
|
-
|
|
69
|
+
- @open-pioneer/build-package@4.1.2
|
|
49
70
|
|
|
50
71
|
## 3.0.8
|
|
51
72
|
|
|
@@ -53,7 +74,7 @@
|
|
|
53
74
|
|
|
54
75
|
- fa84b0e: Bump dependencies
|
|
55
76
|
- Updated dependencies [fa84b0e]
|
|
56
|
-
|
|
77
|
+
- @open-pioneer/build-package@4.1.1
|
|
57
78
|
|
|
58
79
|
## 3.0.7
|
|
59
80
|
|
|
@@ -61,7 +82,7 @@
|
|
|
61
82
|
|
|
62
83
|
- Updated dependencies [eac3ef4]
|
|
63
84
|
- Updated dependencies [19aa36f]
|
|
64
|
-
|
|
85
|
+
- @open-pioneer/build-package@4.1.0
|
|
65
86
|
|
|
66
87
|
## 3.0.6
|
|
67
88
|
|
|
@@ -70,7 +91,7 @@
|
|
|
70
91
|
- 2c45a18: Bump dependencies
|
|
71
92
|
- Updated dependencies [2c45a18]
|
|
72
93
|
- Updated dependencies [1d5852a]
|
|
73
|
-
|
|
94
|
+
- @open-pioneer/build-package@4.0.6
|
|
74
95
|
|
|
75
96
|
## 3.0.5
|
|
76
97
|
|
|
@@ -78,7 +99,7 @@
|
|
|
78
99
|
|
|
79
100
|
- f229f63: Bump dependencies
|
|
80
101
|
- Updated dependencies [f229f63]
|
|
81
|
-
|
|
102
|
+
- @open-pioneer/build-package@4.0.5
|
|
82
103
|
|
|
83
104
|
## 3.0.4
|
|
84
105
|
|
|
@@ -92,7 +113,7 @@
|
|
|
92
113
|
|
|
93
114
|
- 340c415: Update dependencies
|
|
94
115
|
- Updated dependencies [340c415]
|
|
95
|
-
|
|
116
|
+
- @open-pioneer/build-package@4.0.3
|
|
96
117
|
|
|
97
118
|
## 3.0.2
|
|
98
119
|
|
|
@@ -100,7 +121,7 @@
|
|
|
100
121
|
|
|
101
122
|
- 26cb9d8: Bump dependencies
|
|
102
123
|
- Updated dependencies [26cb9d8]
|
|
103
|
-
|
|
124
|
+
- @open-pioneer/build-package@4.0.2
|
|
104
125
|
|
|
105
126
|
## 3.0.1
|
|
106
127
|
|
|
@@ -110,7 +131,7 @@
|
|
|
110
131
|
- Updated dependencies [23c031a]
|
|
111
132
|
- Updated dependencies [23c031a]
|
|
112
133
|
- Updated dependencies [67ba039]
|
|
113
|
-
|
|
134
|
+
- @open-pioneer/build-package@4.0.1
|
|
114
135
|
|
|
115
136
|
## 3.0.0
|
|
116
137
|
|
|
@@ -126,7 +147,7 @@
|
|
|
126
147
|
|
|
127
148
|
- Updated dependencies [798ef0b]
|
|
128
149
|
- Updated dependencies [798ef0b]
|
|
129
|
-
|
|
150
|
+
- @open-pioneer/build-package@4.0.0
|
|
130
151
|
|
|
131
152
|
## 2.1.1
|
|
132
153
|
|
|
@@ -135,7 +156,7 @@
|
|
|
135
156
|
- Updated dependencies [2526935]
|
|
136
157
|
- Updated dependencies [7668cd9]
|
|
137
158
|
- Updated dependencies [7668cd9]
|
|
138
|
-
|
|
159
|
+
- @open-pioneer/build-package@3.1.0
|
|
139
160
|
|
|
140
161
|
## 2.1.0
|
|
141
162
|
|
|
@@ -143,17 +164,18 @@
|
|
|
143
164
|
|
|
144
165
|
- e4ae880: Switch to `type: module`
|
|
145
166
|
- e4ae880: Implement additional validations when importing modules from other packages.
|
|
146
|
-
- When importing modules from normal node packages, `build-package` will now check that the imported module actually exists.
|
|
147
|
-
- When importing modules from another trails package in the same repository, `build-package` now verifies that the imported module is an actual entry point of that package (declared in the `build.config.mjs`).
|
|
148
167
|
|
|
149
|
-
|
|
150
|
-
|
|
168
|
+
- When importing modules from normal node packages, `build-package` will now check that the imported module actually exists.
|
|
169
|
+
- When importing modules from another trails package in the same repository, `build-package` now verifies that the imported module is an actual entry point of that package (declared in the `build.config.mjs`).
|
|
170
|
+
|
|
171
|
+
These validations are designed to errors where a package would run locally (in Vite's development mode)
|
|
172
|
+
but end up broken when published (see also https://github.com/open-pioneer/trails-core-packages/issues/42).
|
|
151
173
|
|
|
152
174
|
- e4ae880: Introduce an option to configure the root directory (`-r` for the CLI, `rootDirectory` for the JavaScript API).
|
|
153
175
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
176
|
+
The root directory is used to detect which packages are local to the project.
|
|
177
|
+
The option defaults to the root of the current workspace (e.g. the PNPM workspace root), or, if that doesn't work, to the root of the current git repository.
|
|
178
|
+
However, it can also be configured manually.
|
|
157
179
|
|
|
158
180
|
### Patch Changes
|
|
159
181
|
|
|
@@ -163,7 +185,7 @@
|
|
|
163
185
|
- Updated dependencies [3550ca8]
|
|
164
186
|
- Updated dependencies [e4ae880]
|
|
165
187
|
- Updated dependencies [e4ae880]
|
|
166
|
-
|
|
188
|
+
- @open-pioneer/build-package@3.0.0
|
|
167
189
|
|
|
168
190
|
## 2.0.3
|
|
169
191
|
|
|
@@ -171,7 +193,7 @@
|
|
|
171
193
|
|
|
172
194
|
- 017b8f3: Harmonize naming of Open Pioneer Trails in READMEs, package.json files and error messages.
|
|
173
195
|
- Updated dependencies [017b8f3]
|
|
174
|
-
|
|
196
|
+
- @open-pioneer/build-package@2.0.3
|
|
175
197
|
|
|
176
198
|
## 2.0.2
|
|
177
199
|
|
|
@@ -180,7 +202,7 @@
|
|
|
180
202
|
- c08520d: Update dependencies
|
|
181
203
|
- Updated dependencies [c08520d]
|
|
182
204
|
- Updated dependencies [c08520d]
|
|
183
|
-
|
|
205
|
+
- @open-pioneer/build-package@2.0.2
|
|
184
206
|
|
|
185
207
|
## 2.0.1
|
|
186
208
|
|
|
@@ -189,7 +211,7 @@
|
|
|
189
211
|
- 715b45e: Update package.json metadata
|
|
190
212
|
- Updated dependencies [9d4a9d5]
|
|
191
213
|
- Updated dependencies [715b45e]
|
|
192
|
-
|
|
214
|
+
- @open-pioneer/build-package@2.0.1
|
|
193
215
|
|
|
194
216
|
## 2.0.0
|
|
195
217
|
|
|
@@ -202,21 +224,21 @@
|
|
|
202
224
|
- 5601a5e: Bump dependencies
|
|
203
225
|
- Updated dependencies [5601a5e]
|
|
204
226
|
- Updated dependencies [5601a5e]
|
|
205
|
-
|
|
227
|
+
- @open-pioneer/build-package@2.0.0
|
|
206
228
|
|
|
207
229
|
## 1.0.4
|
|
208
230
|
|
|
209
231
|
### Patch Changes
|
|
210
232
|
|
|
211
233
|
- Updated dependencies [c62a32b]
|
|
212
|
-
|
|
234
|
+
- @open-pioneer/build-package@1.0.4
|
|
213
235
|
|
|
214
236
|
## 1.0.3
|
|
215
237
|
|
|
216
238
|
### Patch Changes
|
|
217
239
|
|
|
218
240
|
- Updated dependencies [adcd8b9]
|
|
219
|
-
|
|
241
|
+
- @open-pioneer/build-package@1.0.3
|
|
220
242
|
|
|
221
243
|
## 1.0.2
|
|
222
244
|
|
|
@@ -224,7 +246,7 @@
|
|
|
224
246
|
|
|
225
247
|
- 146743d: Bump dependencies
|
|
226
248
|
- Updated dependencies [146743d]
|
|
227
|
-
|
|
249
|
+
- @open-pioneer/build-package@1.0.2
|
|
228
250
|
|
|
229
251
|
## 1.0.1
|
|
230
252
|
|
|
@@ -241,21 +263,21 @@
|
|
|
241
263
|
### Patch Changes
|
|
242
264
|
|
|
243
265
|
- Updated dependencies [991be0f]
|
|
244
|
-
|
|
266
|
+
- @open-pioneer/build-package@1.0.0
|
|
245
267
|
|
|
246
268
|
## 0.2.3
|
|
247
269
|
|
|
248
270
|
### Patch Changes
|
|
249
271
|
|
|
250
272
|
- Updated dependencies [763acf3]
|
|
251
|
-
|
|
273
|
+
- @open-pioneer/build-package@0.7.3
|
|
252
274
|
|
|
253
275
|
## 0.2.2
|
|
254
276
|
|
|
255
277
|
### Patch Changes
|
|
256
278
|
|
|
257
279
|
- Updated dependencies [766bcb8]
|
|
258
|
-
|
|
280
|
+
- @open-pioneer/build-package@0.7.2
|
|
259
281
|
|
|
260
282
|
## 0.2.1
|
|
261
283
|
|
|
@@ -263,7 +285,7 @@
|
|
|
263
285
|
|
|
264
286
|
- f0cd283: Add package.json metadata
|
|
265
287
|
- Updated dependencies [f0cd283]
|
|
266
|
-
|
|
288
|
+
- @open-pioneer/build-package@0.7.1
|
|
267
289
|
|
|
268
290
|
## 0.2.0
|
|
269
291
|
|
|
@@ -283,4 +305,4 @@
|
|
|
283
305
|
- Updated dependencies [b6f55fe]
|
|
284
306
|
- Updated dependencies [e6bbbfb]
|
|
285
307
|
- Updated dependencies [e6bbbfb]
|
|
286
|
-
|
|
308
|
+
- @open-pioneer/build-package@0.7.0
|
package/dist/index.js
CHANGED
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { cwd, exit } from "node:process";
|
|
2
3
|
import { build } from "@open-pioneer/build-package";
|
|
3
4
|
import { Command } from "commander";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// src/index.ts
|
|
10
|
-
var program = new Command();
|
|
5
|
+
//#region package.json
|
|
6
|
+
var version = "4.0.0-dev.20260729122223";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/index.ts
|
|
9
|
+
const program = new Command();
|
|
11
10
|
program.name("build-pioneer-package").description("Builds an Open Pioneer Trails package for publishing.").option("-p, --package <path>", "package directory (defaults to current directory)").option("-r, --root <path>", "the root directory (optional, defaults to the workspace root)").option("-q, --silent", "disable logging").option("-d, --debug", "show exception stack traces").version(version);
|
|
12
11
|
program.parse();
|
|
13
12
|
async function main() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
exit(1);
|
|
42
|
-
}
|
|
13
|
+
const chalk = (await import("chalk")).default;
|
|
14
|
+
const opts = program.opts();
|
|
15
|
+
const debug = opts.debug ?? false;
|
|
16
|
+
const silent = opts.silent ?? false;
|
|
17
|
+
const packagePath = opts.package ?? cwd();
|
|
18
|
+
const rootDirectory = opts.root;
|
|
19
|
+
try {
|
|
20
|
+
await build({
|
|
21
|
+
packageDirectory: packagePath,
|
|
22
|
+
rootDirectory,
|
|
23
|
+
logger: silent ? null : console
|
|
24
|
+
});
|
|
25
|
+
exit(0);
|
|
26
|
+
} catch (e) {
|
|
27
|
+
if (debug) console.error(e);
|
|
28
|
+
else {
|
|
29
|
+
let current = e;
|
|
30
|
+
let prefix = "";
|
|
31
|
+
while (current != null) {
|
|
32
|
+
console.error(chalk.red(`${prefix}${current.message ?? String(current)}`));
|
|
33
|
+
current = current.cause;
|
|
34
|
+
prefix = "Caused by: ";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exit(1);
|
|
38
|
+
}
|
|
43
39
|
}
|
|
44
40
|
main().catch((e) => {
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
console.error("Fatal error", e);
|
|
42
|
+
exit(1);
|
|
47
43
|
});
|
|
48
|
-
//#
|
|
44
|
+
//#endregion
|
|
45
|
+
export {};
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/index.ts", "../package.json"],
|
|
4
|
-
"sourcesContent": ["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { build } from \"@open-pioneer/build-package\";\nimport { Command } from \"commander\";\nimport { cwd, exit } from \"node:process\";\nimport { version } from \"../package.json\";\n\nconst program = new Command();\nprogram\n .name(\"build-pioneer-package\")\n .description(\"Builds an Open Pioneer Trails package for publishing.\")\n .option(\"-p, --package <path>\", \"package directory (defaults to current directory)\")\n .option(\"-r, --root <path>\", \"the root directory (optional, defaults to the workspace root)\")\n .option(\"-q, --silent\", \"disable logging\")\n .option(\"-d, --debug\", \"show exception stack traces\")\n .version(version);\nprogram.parse();\n\nasync function main() {\n const chalk = (await import(\"chalk\")).default;\n const opts = program.opts();\n const debug = opts.debug ?? false;\n const silent = opts.silent ?? false;\n const packagePath = opts.package ?? cwd();\n const rootDirectory = opts.root;\n try {\n await build({\n packageDirectory: packagePath,\n rootDirectory,\n logger: silent ? null : console\n });\n exit(0);\n } catch (e) {\n if (debug) {\n console.error(e);\n } else {\n let current: unknown = e;\n let prefix = \"\";\n while (current != null) {\n console.error(\n chalk.red(`${prefix}${(current as Error).message ?? String(current)}`)\n );\n current = (current as Error).cause;\n prefix = \"Caused by: \";\n }\n }\n exit(1);\n }\n}\n\nmain().catch((e) => {\n console.error(\"Fatal error\", e);\n exit(1);\n});\n", "{\n \"name\": \"@open-pioneer/build-package-cli\",\n \"description\": \"Provides a CLI tool to compile Open Pioneer Trails packages.\",\n \"version\": \"3.2.1\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/open-pioneer/trails-build-tools.git\",\n \"directory\": \"packages/build-package-cli\"\n },\n \"homepage\": \"https://github.com/open-pioneer\",\n \"keywords\": [\n \"open-pioneer-trails\"\n ],\n \"bin\": {\n \"build-pioneer-package\": \"./dist/index.js\"\n },\n \"scripts\": {\n \"clean\": \"rimraf dist\",\n \"build\": \"node build.mjs build\",\n \"build-dev\": \"node build.mjs buildDev\",\n \"dev\": \"node build.mjs watch\"\n },\n \"files\": [\n \"dist/**/*.js\",\n \"dist/**/*.js.map\",\n \"CHANGELOG.md\",\n \"README.md\",\n \"LICENSE\"\n ],\n \"dependencies\": {\n \"@open-pioneer/build-package\": \"workspace:^\",\n \"chalk\": \"catalog:\",\n \"commander\": \"catalog:\"\n },\n \"devDependencies\": {\n \"build-tools\": \"workspace:*\"\n },\n \"engines\": {\n \"node\": \">= 20\"\n }\n}\n"],
|
|
5
|
-
"mappings": ";AAEA,SAAS,aAAa;AACtB,SAAS,eAAe;AACxB,SAAS,KAAK,YAAY;;;ACDtB,cAAW;;;ADIf,IAAM,UAAU,IAAI,QAAQ;AAC5B,QACK,KAAK,uBAAuB,EAC5B,YAAY,uDAAuD,EACnE,OAAO,wBAAwB,mDAAmD,EAClF,OAAO,qBAAqB,+DAA+D,EAC3F,OAAO,gBAAgB,iBAAiB,EACxC,OAAO,eAAe,6BAA6B,EACnD,QAAQ,OAAO;AACpB,QAAQ,MAAM;AAEd,eAAe,OAAO;AAClB,QAAM,SAAS,MAAM,OAAO,OAAO,GAAG;AACtC,QAAM,OAAO,QAAQ,KAAK;AAC1B,QAAM,QAAQ,KAAK,SAAS;AAC5B,QAAM,SAAS,KAAK,UAAU;AAC9B,QAAM,cAAc,KAAK,WAAW,IAAI;AACxC,QAAM,gBAAgB,KAAK;AAC3B,MAAI;AACA,UAAM,MAAM;AAAA,MACR,kBAAkB;AAAA,MAClB;AAAA,MACA,QAAQ,SAAS,OAAO;AAAA,IAC5B,CAAC;AACD,SAAK,CAAC;AAAA,EACV,SAAS,GAAG;AACR,QAAI,OAAO;AACP,cAAQ,MAAM,CAAC;AAAA,IACnB,OAAO;AACH,UAAI,UAAmB;AACvB,UAAI,SAAS;AACb,aAAO,WAAW,MAAM;AACpB,gBAAQ;AAAA,UACJ,MAAM,IAAI,GAAG,MAAM,GAAI,QAAkB,WAAW,OAAO,OAAO,CAAC,EAAE;AAAA,QACzE;AACA,kBAAW,QAAkB;AAC7B,iBAAS;AAAA,MACb;AAAA,IACJ;AACA,SAAK,CAAC;AAAA,EACV;AACJ;AAEA,KAAK,EAAE,MAAM,CAAC,MAAM;AAChB,UAAQ,MAAM,eAAe,CAAC;AAC9B,OAAK,CAAC;AACV,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../package.json","../src/index.ts"],"sourcesContent":["","#!/usr/bin/env node\n// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\nimport { cwd, exit } from \"node:process\";\nimport { build } from \"@open-pioneer/build-package\";\nimport { Command } from \"commander\";\nimport { version } from \"../package.json\";\n\nconst program = new Command();\nprogram\n .name(\"build-pioneer-package\")\n .description(\"Builds an Open Pioneer Trails package for publishing.\")\n .option(\"-p, --package <path>\", \"package directory (defaults to current directory)\")\n .option(\"-r, --root <path>\", \"the root directory (optional, defaults to the workspace root)\")\n .option(\"-q, --silent\", \"disable logging\")\n .option(\"-d, --debug\", \"show exception stack traces\")\n .version(version);\nprogram.parse();\n\nasync function main() {\n const chalk = (await import(\"chalk\")).default;\n const opts = program.opts();\n const debug = opts.debug ?? false;\n const silent = opts.silent ?? false;\n const packagePath = opts.package ?? cwd();\n const rootDirectory = opts.root;\n try {\n await build({\n packageDirectory: packagePath,\n rootDirectory,\n logger: silent ? null : console\n });\n exit(0);\n } catch (e) {\n if (debug) {\n console.error(e);\n } else {\n let current: unknown = e;\n let prefix = \"\";\n while (current != null) {\n console.error(\n chalk.red(`${prefix}${(current as Error).message ?? String(current)}`)\n );\n current = (current as Error).cause;\n prefix = \"Caused by: \";\n }\n }\n exit(1);\n }\n}\n\nmain().catch((e) => {\n console.error(\"Fatal error\", e);\n exit(1);\n});\n"],"mappings":";;;;;;;;ACSA,MAAM,UAAU,IAAI,QAAQ;AAC5B,QACK,KAAK,uBAAuB,CAAC,CAC7B,YAAY,uDAAuD,CAAC,CACpE,OAAO,wBAAwB,mDAAmD,CAAC,CACnF,OAAO,qBAAqB,+DAA+D,CAAC,CAC5F,OAAO,gBAAgB,iBAAiB,CAAC,CACzC,OAAO,eAAe,6BAA6B,CAAC,CACpD,QAAQ,OAAO;AACpB,QAAQ,MAAM;AAEd,eAAe,OAAO;CAClB,MAAM,SAAS,MAAM,OAAO,SAAA,CAAU;CACtC,MAAM,OAAO,QAAQ,KAAK;CAC1B,MAAM,QAAQ,KAAK,SAAS;CAC5B,MAAM,SAAS,KAAK,UAAU;CAC9B,MAAM,cAAc,KAAK,WAAW,IAAI;CACxC,MAAM,gBAAgB,KAAK;CAC3B,IAAI;EACA,MAAM,MAAM;GACR,kBAAkB;GAClB;GACA,QAAQ,SAAS,OAAO;EAC5B,CAAC;EACD,KAAK,CAAC;CACV,SAAS,GAAG;EACR,IAAI,OACA,QAAQ,MAAM,CAAC;OACZ;GACH,IAAI,UAAmB;GACvB,IAAI,SAAS;GACb,OAAO,WAAW,MAAM;IACpB,QAAQ,MACJ,MAAM,IAAI,GAAG,SAAU,QAAkB,WAAW,OAAO,OAAO,GAAG,CACzE;IACA,UAAW,QAAkB;IAC7B,SAAS;GACb;EACJ;EACA,KAAK,CAAC;CACV;AACJ;AAEA,KAAK,CAAC,CAAC,OAAO,MAAM;CAChB,QAAQ,MAAM,eAAe,CAAC;CAC9B,KAAK,CAAC;AACV,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-pioneer/build-package-cli",
|
|
3
|
+
"version": "4.0.0-dev.20260729122223",
|
|
3
4
|
"description": "Provides a CLI tool to compile Open Pioneer Trails packages.",
|
|
4
|
-
"
|
|
5
|
-
|
|
5
|
+
"keywords": [
|
|
6
|
+
"open-pioneer-trails"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://github.com/open-pioneer",
|
|
6
9
|
"license": "Apache-2.0",
|
|
7
10
|
"repository": {
|
|
8
11
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/open-pioneer/trails-build-tools.git",
|
|
12
|
+
"url": "git+https://github.com/open-pioneer/trails-build-tools.git",
|
|
10
13
|
"directory": "packages/build-package-cli"
|
|
11
14
|
},
|
|
12
|
-
"homepage": "https://github.com/open-pioneer",
|
|
13
|
-
"keywords": [
|
|
14
|
-
"open-pioneer-trails"
|
|
15
|
-
],
|
|
16
15
|
"bin": {
|
|
17
16
|
"build-pioneer-package": "./dist/index.js"
|
|
18
17
|
},
|
|
19
18
|
"files": [
|
|
20
|
-
"dist
|
|
21
|
-
"dist/**/*.js.map",
|
|
19
|
+
"dist",
|
|
22
20
|
"CHANGELOG.md",
|
|
23
21
|
"README.md",
|
|
24
22
|
"LICENSE"
|
|
25
23
|
],
|
|
24
|
+
"type": "module",
|
|
26
25
|
"dependencies": {
|
|
27
26
|
"chalk": "^5.6.2",
|
|
28
27
|
"commander": "^15.0.0",
|
|
29
|
-
"@open-pioneer/build-package": "^
|
|
28
|
+
"@open-pioneer/build-package": "^5.0.0-dev.20260729122223"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
|
-
"
|
|
31
|
+
"publint": "^0.3.22",
|
|
32
|
+
"tsdown": "^0.22.14",
|
|
33
|
+
"shared-configs": "0.0.1"
|
|
33
34
|
},
|
|
34
35
|
"engines": {
|
|
35
36
|
"node": ">= 20"
|
|
36
37
|
},
|
|
37
38
|
"scripts": {
|
|
38
39
|
"clean": "rimraf dist",
|
|
39
|
-
"build": "
|
|
40
|
-
"
|
|
41
|
-
"dev": "node build.mjs watch"
|
|
40
|
+
"build": "tsdown",
|
|
41
|
+
"dev": "tsdown --watch"
|
|
42
42
|
}
|
|
43
43
|
}
|