@open-pioneer/build-package-cli 2.1.1 → 3.0.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.
- package/CHANGELOG.md +83 -57
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,54 @@
|
|
|
1
1
|
# Changelog @open-pioneer/build-package-cli
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 67ba039: Bump dependencies
|
|
8
|
+
- Updated dependencies [23c031a]
|
|
9
|
+
- Updated dependencies [23c031a]
|
|
10
|
+
- Updated dependencies [67ba039]
|
|
11
|
+
- @open-pioneer/build-package@4.0.1
|
|
12
|
+
|
|
13
|
+
## 3.0.0
|
|
14
|
+
|
|
15
|
+
### Major Changes
|
|
16
|
+
|
|
17
|
+
- 798ef0b: Requires minimum node version 20.
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 798ef0b: Update dependencies
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [798ef0b]
|
|
26
|
+
- Updated dependencies [798ef0b]
|
|
27
|
+
- @open-pioneer/build-package@4.0.0
|
|
28
|
+
|
|
3
29
|
## 2.1.1
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
6
32
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
33
|
+
- Updated dependencies [2526935]
|
|
34
|
+
- Updated dependencies [7668cd9]
|
|
35
|
+
- Updated dependencies [7668cd9]
|
|
36
|
+
- @open-pioneer/build-package@3.1.0
|
|
11
37
|
|
|
12
38
|
## 2.1.0
|
|
13
39
|
|
|
14
40
|
### Minor Changes
|
|
15
41
|
|
|
16
|
-
-
|
|
17
|
-
-
|
|
42
|
+
- e4ae880: Switch to `type: module`
|
|
43
|
+
- e4ae880: Implement additional validations when importing modules from other packages.
|
|
18
44
|
|
|
19
|
-
-
|
|
20
|
-
-
|
|
45
|
+
- When importing modules from normal node packages, `build-package` will now check that the imported module actually exists.
|
|
46
|
+
- 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`).
|
|
21
47
|
|
|
22
48
|
These validations are designed to errors where a package would run locally (in Vite's development mode)
|
|
23
49
|
but end up broken when published (see also https://github.com/open-pioneer/trails-core-packages/issues/42).
|
|
24
50
|
|
|
25
|
-
-
|
|
51
|
+
- e4ae880: Introduce an option to configure the root directory (`-r` for the CLI, `rootDirectory` for the JavaScript API).
|
|
26
52
|
|
|
27
53
|
The root directory is used to detect which packages are local to the project.
|
|
28
54
|
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.
|
|
@@ -30,130 +56,130 @@
|
|
|
30
56
|
|
|
31
57
|
### Patch Changes
|
|
32
58
|
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
59
|
+
- 3550ca8: Update dependencies
|
|
60
|
+
- Updated dependencies [e4ae880]
|
|
61
|
+
- Updated dependencies [e4ae880]
|
|
62
|
+
- Updated dependencies [3550ca8]
|
|
63
|
+
- Updated dependencies [e4ae880]
|
|
64
|
+
- Updated dependencies [e4ae880]
|
|
65
|
+
- @open-pioneer/build-package@3.0.0
|
|
40
66
|
|
|
41
67
|
## 2.0.3
|
|
42
68
|
|
|
43
69
|
### Patch Changes
|
|
44
70
|
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
71
|
+
- 017b8f3: Harmonize naming of Open Pioneer Trails in READMEs, package.json files and error messages.
|
|
72
|
+
- Updated dependencies [017b8f3]
|
|
73
|
+
- @open-pioneer/build-package@2.0.3
|
|
48
74
|
|
|
49
75
|
## 2.0.2
|
|
50
76
|
|
|
51
77
|
### Patch Changes
|
|
52
78
|
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
79
|
+
- c08520d: Update dependencies
|
|
80
|
+
- Updated dependencies [c08520d]
|
|
81
|
+
- Updated dependencies [c08520d]
|
|
82
|
+
- @open-pioneer/build-package@2.0.2
|
|
57
83
|
|
|
58
84
|
## 2.0.1
|
|
59
85
|
|
|
60
86
|
### Patch Changes
|
|
61
87
|
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
88
|
+
- 715b45e: Update package.json metadata
|
|
89
|
+
- Updated dependencies [9d4a9d5]
|
|
90
|
+
- Updated dependencies [715b45e]
|
|
91
|
+
- @open-pioneer/build-package@2.0.1
|
|
66
92
|
|
|
67
93
|
## 2.0.0
|
|
68
94
|
|
|
69
95
|
### Major Changes
|
|
70
96
|
|
|
71
|
-
-
|
|
97
|
+
- 5601a5e: **Breaking Change:** Require Node >= 18
|
|
72
98
|
|
|
73
99
|
### Patch Changes
|
|
74
100
|
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
101
|
+
- 5601a5e: Bump dependencies
|
|
102
|
+
- Updated dependencies [5601a5e]
|
|
103
|
+
- Updated dependencies [5601a5e]
|
|
104
|
+
- @open-pioneer/build-package@2.0.0
|
|
79
105
|
|
|
80
106
|
## 1.0.4
|
|
81
107
|
|
|
82
108
|
### Patch Changes
|
|
83
109
|
|
|
84
|
-
-
|
|
85
|
-
-
|
|
110
|
+
- Updated dependencies [c62a32b]
|
|
111
|
+
- @open-pioneer/build-package@1.0.4
|
|
86
112
|
|
|
87
113
|
## 1.0.3
|
|
88
114
|
|
|
89
115
|
### Patch Changes
|
|
90
116
|
|
|
91
|
-
-
|
|
92
|
-
-
|
|
117
|
+
- Updated dependencies [adcd8b9]
|
|
118
|
+
- @open-pioneer/build-package@1.0.3
|
|
93
119
|
|
|
94
120
|
## 1.0.2
|
|
95
121
|
|
|
96
122
|
### Patch Changes
|
|
97
123
|
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
124
|
+
- 146743d: Bump dependencies
|
|
125
|
+
- Updated dependencies [146743d]
|
|
126
|
+
- @open-pioneer/build-package@1.0.2
|
|
101
127
|
|
|
102
128
|
## 1.0.1
|
|
103
129
|
|
|
104
130
|
### Patch Changes
|
|
105
131
|
|
|
106
|
-
-
|
|
132
|
+
- @open-pioneer/build-package@1.0.1
|
|
107
133
|
|
|
108
134
|
## 1.0.0
|
|
109
135
|
|
|
110
136
|
### Major Changes
|
|
111
137
|
|
|
112
|
-
-
|
|
138
|
+
- 991be0f: Initial release
|
|
113
139
|
|
|
114
140
|
### Patch Changes
|
|
115
141
|
|
|
116
|
-
-
|
|
117
|
-
-
|
|
142
|
+
- Updated dependencies [991be0f]
|
|
143
|
+
- @open-pioneer/build-package@1.0.0
|
|
118
144
|
|
|
119
145
|
## 0.2.3
|
|
120
146
|
|
|
121
147
|
### Patch Changes
|
|
122
148
|
|
|
123
|
-
-
|
|
124
|
-
-
|
|
149
|
+
- Updated dependencies [763acf3]
|
|
150
|
+
- @open-pioneer/build-package@0.7.3
|
|
125
151
|
|
|
126
152
|
## 0.2.2
|
|
127
153
|
|
|
128
154
|
### Patch Changes
|
|
129
155
|
|
|
130
|
-
-
|
|
131
|
-
-
|
|
156
|
+
- Updated dependencies [766bcb8]
|
|
157
|
+
- @open-pioneer/build-package@0.7.2
|
|
132
158
|
|
|
133
159
|
## 0.2.1
|
|
134
160
|
|
|
135
161
|
### Patch Changes
|
|
136
162
|
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
163
|
+
- f0cd283: Add package.json metadata
|
|
164
|
+
- Updated dependencies [f0cd283]
|
|
165
|
+
- @open-pioneer/build-package@0.7.1
|
|
140
166
|
|
|
141
167
|
## 0.2.0
|
|
142
168
|
|
|
143
169
|
### Minor Changes
|
|
144
170
|
|
|
145
|
-
-
|
|
171
|
+
- 8c6e72d: Rename to build-pioneer-package
|
|
146
172
|
|
|
147
173
|
## 0.1.0
|
|
148
174
|
|
|
149
175
|
### Minor Changes
|
|
150
176
|
|
|
151
|
-
-
|
|
177
|
+
- e6bbbfb: Create package
|
|
152
178
|
|
|
153
179
|
### Patch Changes
|
|
154
180
|
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
181
|
+
- e6bbbfb: Simplify license comment in README
|
|
182
|
+
- Updated dependencies [b6f55fe]
|
|
183
|
+
- Updated dependencies [e6bbbfb]
|
|
184
|
+
- Updated dependencies [e6bbbfb]
|
|
185
|
+
- @open-pioneer/build-package@0.7.0
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts", "../package.json"],
|
|
4
|
-
"sourcesContent": ["// SPDX-FileCopyrightText: 2023 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { Command } from \"commander\";\nimport { cwd, exit } from \"node:process\";\nimport { version } from \"../package.json\";\nimport { build } from \"@open-pioneer/build-package\";\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 console.error(chalk.red((e as Error).message ?? String(e)));\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\": \"
|
|
4
|
+
"sourcesContent": ["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { Command } from \"commander\";\nimport { cwd, exit } from \"node:process\";\nimport { version } from \"../package.json\";\nimport { build } from \"@open-pioneer/build-package\";\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 console.error(chalk.red((e as Error).message ?? String(e)));\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.0.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
5
|
"mappings": ";AAEA,SAAS,eAAe;AACxB,SAAS,KAAK,YAAY;;;ACAtB,cAAW;;;ADEf,SAAS,aAAa;AAEtB,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,cAAQ,MAAM,MAAM,IAAK,EAAY,WAAW,OAAO,CAAC,CAAC,CAAC;AAAA,IAC9D;AACA,SAAK,CAAC;AAAA,EACV;AACJ;AAEA,KAAK,EAAE,MAAM,CAAC,MAAM;AAChB,UAAQ,MAAM,eAAe,CAAC;AAC9B,OAAK,CAAC;AACV,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-pioneer/build-package-cli",
|
|
3
3
|
"description": "Provides a CLI tool to compile Open Pioneer Trails packages.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"LICENSE"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"chalk": "^5.
|
|
28
|
-
"commander": "^
|
|
29
|
-
"@open-pioneer/build-package": "^
|
|
27
|
+
"chalk": "^5.4.1",
|
|
28
|
+
"commander": "^13.1.0",
|
|
29
|
+
"@open-pioneer/build-package": "^4.0.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"build-tools": "0.0.1"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
|
-
"node": ">=
|
|
35
|
+
"node": ">= 20"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"clean": "rimraf dist",
|