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