@open-pioneer/build-package-cli 2.1.1 → 3.0.0
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 +73 -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,44 @@
|
|
|
1
1
|
# Changelog @open-pioneer/build-package-cli
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 798ef0b: Requires minimum node version 20.
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- 798ef0b: Update dependencies
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [798ef0b]
|
|
16
|
+
- Updated dependencies [798ef0b]
|
|
17
|
+
- @open-pioneer/build-package@4.0.0
|
|
18
|
+
|
|
3
19
|
## 2.1.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
6
22
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
23
|
+
- Updated dependencies [2526935]
|
|
24
|
+
- Updated dependencies [7668cd9]
|
|
25
|
+
- Updated dependencies [7668cd9]
|
|
26
|
+
- @open-pioneer/build-package@3.1.0
|
|
11
27
|
|
|
12
28
|
## 2.1.0
|
|
13
29
|
|
|
14
30
|
### Minor Changes
|
|
15
31
|
|
|
16
|
-
-
|
|
17
|
-
-
|
|
32
|
+
- e4ae880: Switch to `type: module`
|
|
33
|
+
- e4ae880: Implement additional validations when importing modules from other packages.
|
|
18
34
|
|
|
19
|
-
-
|
|
20
|
-
-
|
|
35
|
+
- When importing modules from normal node packages, `build-package` will now check that the imported module actually exists.
|
|
36
|
+
- 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
37
|
|
|
22
38
|
These validations are designed to errors where a package would run locally (in Vite's development mode)
|
|
23
39
|
but end up broken when published (see also https://github.com/open-pioneer/trails-core-packages/issues/42).
|
|
24
40
|
|
|
25
|
-
-
|
|
41
|
+
- e4ae880: Introduce an option to configure the root directory (`-r` for the CLI, `rootDirectory` for the JavaScript API).
|
|
26
42
|
|
|
27
43
|
The root directory is used to detect which packages are local to the project.
|
|
28
44
|
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 +46,130 @@
|
|
|
30
46
|
|
|
31
47
|
### Patch Changes
|
|
32
48
|
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
49
|
+
- 3550ca8: Update dependencies
|
|
50
|
+
- Updated dependencies [e4ae880]
|
|
51
|
+
- Updated dependencies [e4ae880]
|
|
52
|
+
- Updated dependencies [3550ca8]
|
|
53
|
+
- Updated dependencies [e4ae880]
|
|
54
|
+
- Updated dependencies [e4ae880]
|
|
55
|
+
- @open-pioneer/build-package@3.0.0
|
|
40
56
|
|
|
41
57
|
## 2.0.3
|
|
42
58
|
|
|
43
59
|
### Patch Changes
|
|
44
60
|
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
61
|
+
- 017b8f3: Harmonize naming of Open Pioneer Trails in READMEs, package.json files and error messages.
|
|
62
|
+
- Updated dependencies [017b8f3]
|
|
63
|
+
- @open-pioneer/build-package@2.0.3
|
|
48
64
|
|
|
49
65
|
## 2.0.2
|
|
50
66
|
|
|
51
67
|
### Patch Changes
|
|
52
68
|
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
69
|
+
- c08520d: Update dependencies
|
|
70
|
+
- Updated dependencies [c08520d]
|
|
71
|
+
- Updated dependencies [c08520d]
|
|
72
|
+
- @open-pioneer/build-package@2.0.2
|
|
57
73
|
|
|
58
74
|
## 2.0.1
|
|
59
75
|
|
|
60
76
|
### Patch Changes
|
|
61
77
|
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
78
|
+
- 715b45e: Update package.json metadata
|
|
79
|
+
- Updated dependencies [9d4a9d5]
|
|
80
|
+
- Updated dependencies [715b45e]
|
|
81
|
+
- @open-pioneer/build-package@2.0.1
|
|
66
82
|
|
|
67
83
|
## 2.0.0
|
|
68
84
|
|
|
69
85
|
### Major Changes
|
|
70
86
|
|
|
71
|
-
-
|
|
87
|
+
- 5601a5e: **Breaking Change:** Require Node >= 18
|
|
72
88
|
|
|
73
89
|
### Patch Changes
|
|
74
90
|
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
91
|
+
- 5601a5e: Bump dependencies
|
|
92
|
+
- Updated dependencies [5601a5e]
|
|
93
|
+
- Updated dependencies [5601a5e]
|
|
94
|
+
- @open-pioneer/build-package@2.0.0
|
|
79
95
|
|
|
80
96
|
## 1.0.4
|
|
81
97
|
|
|
82
98
|
### Patch Changes
|
|
83
99
|
|
|
84
|
-
-
|
|
85
|
-
-
|
|
100
|
+
- Updated dependencies [c62a32b]
|
|
101
|
+
- @open-pioneer/build-package@1.0.4
|
|
86
102
|
|
|
87
103
|
## 1.0.3
|
|
88
104
|
|
|
89
105
|
### Patch Changes
|
|
90
106
|
|
|
91
|
-
-
|
|
92
|
-
-
|
|
107
|
+
- Updated dependencies [adcd8b9]
|
|
108
|
+
- @open-pioneer/build-package@1.0.3
|
|
93
109
|
|
|
94
110
|
## 1.0.2
|
|
95
111
|
|
|
96
112
|
### Patch Changes
|
|
97
113
|
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
114
|
+
- 146743d: Bump dependencies
|
|
115
|
+
- Updated dependencies [146743d]
|
|
116
|
+
- @open-pioneer/build-package@1.0.2
|
|
101
117
|
|
|
102
118
|
## 1.0.1
|
|
103
119
|
|
|
104
120
|
### Patch Changes
|
|
105
121
|
|
|
106
|
-
-
|
|
122
|
+
- @open-pioneer/build-package@1.0.1
|
|
107
123
|
|
|
108
124
|
## 1.0.0
|
|
109
125
|
|
|
110
126
|
### Major Changes
|
|
111
127
|
|
|
112
|
-
-
|
|
128
|
+
- 991be0f: Initial release
|
|
113
129
|
|
|
114
130
|
### Patch Changes
|
|
115
131
|
|
|
116
|
-
-
|
|
117
|
-
-
|
|
132
|
+
- Updated dependencies [991be0f]
|
|
133
|
+
- @open-pioneer/build-package@1.0.0
|
|
118
134
|
|
|
119
135
|
## 0.2.3
|
|
120
136
|
|
|
121
137
|
### Patch Changes
|
|
122
138
|
|
|
123
|
-
-
|
|
124
|
-
-
|
|
139
|
+
- Updated dependencies [763acf3]
|
|
140
|
+
- @open-pioneer/build-package@0.7.3
|
|
125
141
|
|
|
126
142
|
## 0.2.2
|
|
127
143
|
|
|
128
144
|
### Patch Changes
|
|
129
145
|
|
|
130
|
-
-
|
|
131
|
-
-
|
|
146
|
+
- Updated dependencies [766bcb8]
|
|
147
|
+
- @open-pioneer/build-package@0.7.2
|
|
132
148
|
|
|
133
149
|
## 0.2.1
|
|
134
150
|
|
|
135
151
|
### Patch Changes
|
|
136
152
|
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
153
|
+
- f0cd283: Add package.json metadata
|
|
154
|
+
- Updated dependencies [f0cd283]
|
|
155
|
+
- @open-pioneer/build-package@0.7.1
|
|
140
156
|
|
|
141
157
|
## 0.2.0
|
|
142
158
|
|
|
143
159
|
### Minor Changes
|
|
144
160
|
|
|
145
|
-
-
|
|
161
|
+
- 8c6e72d: Rename to build-pioneer-package
|
|
146
162
|
|
|
147
163
|
## 0.1.0
|
|
148
164
|
|
|
149
165
|
### Minor Changes
|
|
150
166
|
|
|
151
|
-
-
|
|
167
|
+
- e6bbbfb: Create package
|
|
152
168
|
|
|
153
169
|
### Patch Changes
|
|
154
170
|
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
171
|
+
- e6bbbfb: Simplify license comment in README
|
|
172
|
+
- Updated dependencies [b6f55fe]
|
|
173
|
+
- Updated dependencies [e6bbbfb]
|
|
174
|
+
- Updated dependencies [e6bbbfb]
|
|
175
|
+
- @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 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.0\",\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\": \"^5.4.1\",\n \"commander\": \"^13.1.0\"\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.0",
|
|
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.0"
|
|
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",
|