@open-pioneer/build-package-cli 3.2.1 → 3.2.2

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,5 +1,13 @@
1
1
  # Changelog @open-pioneer/build-package-cli
2
2
 
3
+ ## 3.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 3b1f9cf: Migrate from eslint to oxlint and from prettier to oxfmt
8
+ - Updated dependencies [3b1f9cf]
9
+ - @open-pioneer/build-package@4.3.2
10
+
3
11
  ## 3.2.1
4
12
 
5
13
  ### Patch Changes
@@ -143,6 +151,7 @@
143
151
 
144
152
  - e4ae880: Switch to `type: module`
145
153
  - e4ae880: Implement additional validations when importing modules from other packages.
154
+
146
155
  - When importing modules from normal node packages, `build-package` will now check that the imported module actually exists.
147
156
  - 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
157
 
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  // src/index.ts
2
+ import { cwd, exit } from "node:process";
2
3
  import { build } from "@open-pioneer/build-package";
3
4
  import { Command } from "commander";
4
- import { cwd, exit } from "node:process";
5
5
 
6
6
  // package.json
7
- var version = "3.2.1";
7
+ var version = "3.2.2";
8
8
 
9
9
  // src/index.ts
10
10
  var program = new Command();
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-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;",
4
+ "sourcesContent": ["// 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", "{\n \"name\": \"@open-pioneer/build-package-cli\",\n \"version\": \"3.2.2\",\n \"description\": \"Provides a CLI tool to compile Open Pioneer Trails packages.\",\n \"keywords\": [\n \"open-pioneer-trails\"\n ],\n \"homepage\": \"https://github.com/open-pioneer\",\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 \"bin\": {\n \"build-pioneer-package\": \"./dist/index.js\"\n },\n \"files\": [\n \"dist/**/*.js\",\n \"dist/**/*.js.map\",\n \"CHANGELOG.md\",\n \"README.md\",\n \"LICENSE\"\n ],\n \"type\": \"module\",\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 \"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": ";AAGA,SAAS,KAAK,YAAY;AAC1B,SAAS,aAAa;AACtB,SAAS,eAAe;;;ACHpB,cAAW;;;ADMf,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
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@open-pioneer/build-package-cli",
3
+ "version": "3.2.2",
3
4
  "description": "Provides a CLI tool to compile Open Pioneer Trails packages.",
4
- "version": "3.2.1",
5
- "type": "module",
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
12
  "url": "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
  },
@@ -23,10 +22,11 @@
23
22
  "README.md",
24
23
  "LICENSE"
25
24
  ],
25
+ "type": "module",
26
26
  "dependencies": {
27
27
  "chalk": "^5.6.2",
28
28
  "commander": "^15.0.0",
29
- "@open-pioneer/build-package": "^4.3.1"
29
+ "@open-pioneer/build-package": "^4.3.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "build-tools": "0.0.1"