@oxog/dockcraft 1.1.1 → 1.2.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 +14 -0
- package/dist/cli/index.js +7 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +11 -7
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [1.2.0] - 2026-12-02
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- `"sideEffects": false` is declared, so bundlers can drop unused exports. Importing
|
|
14
|
+
the library has no side effects (the CLI is a separate `bin` file).
|
|
15
|
+
|
|
16
|
+
### Internal
|
|
17
|
+
- Tooling: adopted oxog-standard. Lint is ESLint 10 with typescript-eslint
|
|
18
|
+
recommended-type-checked; managed CI (Node 18 to 26) and Trusted Publishing release
|
|
19
|
+
workflow; packed-archive checks with publint and Are The Types Wrong.
|
|
20
|
+
|
|
8
21
|
## [1.1.1] - 2026-12-01
|
|
9
22
|
|
|
10
23
|
### Fixed
|
|
@@ -215,6 +228,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
215
228
|
|
|
216
229
|
---
|
|
217
230
|
|
|
231
|
+
[1.2.0]: https://github.com/ersinkoc/DockCraft/releases/tag/v1.2.0
|
|
218
232
|
[1.1.1]: https://github.com/ersinkoc/DockCraft/releases/tag/v1.1.1
|
|
219
233
|
[1.1.0]: https://github.com/ersinkoc/DockCraft/releases/tag/v1.1.0
|
|
220
234
|
[1.0.0]: https://github.com/ersinkoc/DockCraft/releases/tag/v1.0.0
|
package/dist/cli/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = "1.
|
|
9
|
+
var VERSION = "1.2.0";
|
|
10
10
|
|
|
11
11
|
// src/cli/parser.ts
|
|
12
12
|
function parseArgs(args) {
|
|
@@ -673,7 +673,7 @@ async function init(args) {
|
|
|
673
673
|
const name = getOption(args, "name") || await ask("Project name", defaultProjectName(process.cwd()));
|
|
674
674
|
if (!isProjectName(name)) {
|
|
675
675
|
throw new Error(
|
|
676
|
-
`Invalid project name '${name}'. Must start with a letter and contain only letters, numbers, hyphens, and underscores.`
|
|
676
|
+
`Invalid project name '${String(name)}'. Must start with a letter and contain only letters, numbers, hyphens, and underscores.`
|
|
677
677
|
);
|
|
678
678
|
}
|
|
679
679
|
const preset = getOption(args, "preset");
|
|
@@ -952,6 +952,7 @@ async function resolvePort(options = {}) {
|
|
|
952
952
|
return preferred;
|
|
953
953
|
}
|
|
954
954
|
throw new PortConflictError(preferred);
|
|
955
|
+
// @ts-expect-error -- TS7029: the fall-through to 'auto' (no range given) is intended
|
|
955
956
|
case "range":
|
|
956
957
|
if (range) {
|
|
957
958
|
const [start, end = start + 100] = range;
|
|
@@ -1324,8 +1325,8 @@ function validateServiceConfig(name, config) {
|
|
|
1324
1325
|
if (!isComposeServiceName(name)) {
|
|
1325
1326
|
errors.push({
|
|
1326
1327
|
code: "INVALID_SERVICE_NAME",
|
|
1327
|
-
message: `Invalid service name '${name}'. Must start with a letter or digit and contain only letters, digits, '.', '_' and '-'.`,
|
|
1328
|
-
path: `services.${name}`,
|
|
1328
|
+
message: `Invalid service name '${String(name)}'. Must start with a letter or digit and contain only letters, digits, '.', '_' and '-'.`,
|
|
1329
|
+
path: `services.${String(name)}`,
|
|
1329
1330
|
value: name
|
|
1330
1331
|
});
|
|
1331
1332
|
}
|
|
@@ -1342,6 +1343,7 @@ function validateServiceConfig(name, config) {
|
|
|
1342
1343
|
if (svc.version !== void 0 && !isVersion(svc.version)) {
|
|
1343
1344
|
errors.push({
|
|
1344
1345
|
code: "INVALID_VERSION",
|
|
1346
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string -- echoes whatever invalid value was given
|
|
1345
1347
|
message: `Invalid version '${String(svc.version)}' for service '${name}'. Must be a valid Docker image tag.`,
|
|
1346
1348
|
path: `services.${name}.version`,
|
|
1347
1349
|
value: svc.version
|
|
@@ -1350,6 +1352,7 @@ function validateServiceConfig(name, config) {
|
|
|
1350
1352
|
if (svc.image !== void 0 && !isDockerImage(svc.image)) {
|
|
1351
1353
|
errors.push({
|
|
1352
1354
|
code: "INVALID_IMAGE",
|
|
1355
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string -- echoes whatever invalid value was given
|
|
1353
1356
|
message: `Invalid image '${String(svc.image)}' for service '${name}'. Must be a Docker image reference such as 'elasticsearch:8.11.0'.`,
|
|
1354
1357
|
path: `services.${name}.image`,
|
|
1355
1358
|
value: svc.image
|