@simplix-boot/cli 1.3.0 → 2.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/README.md CHANGED
@@ -28,8 +28,6 @@ npm install -g @simplix-boot/cli
28
28
  simplix-boot help
29
29
  ```
30
30
 
31
- Spring Boot 3 기반의 SimpliX 1.x 프로젝트에서는 `@simplix-boot/cli@spring-boot-3x`를 설치하세요. 릴리스 라인별 설치 방법은 [개요](docs/ko/overview.md#릴리스-라인)에 있습니다.
32
-
33
31
  SimpliX 프레임워크 체크아웃이 있으면 그 안의 `simplix-cli`를 전역 명령으로 연결해 사용할 수 있습니다. 게시된 버전을 기다리지 않고 체크아웃의 현재 소스로 실행합니다. 확인과 해제 방법은 [개요](docs/ko/overview.md#설치와-실행)에 있습니다.
34
32
 
35
33
  ```bash
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  import { main } from '../src/cli.js';
3
- import { tolerateClosedReader } from '../src/lib/console.js';
4
3
 
5
- tolerateClosedReader(process.stdout);
6
4
  process.exitCode = main(process.argv.slice(2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplix-boot/cli",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "Command line tool that generates SimpliX Spring Boot code (services, controllers, DTOs, tests) from JPA entities",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,7 +41,6 @@
41
41
  },
42
42
  "license": "SEE LICENSE IN LICENSE",
43
43
  "publishConfig": {
44
- "access": "public",
45
- "tag": "spring-boot-3x"
44
+ "access": "public"
46
45
  }
47
46
  }
@@ -52,19 +52,6 @@ export const symbols = {
52
52
  },
53
53
  };
54
54
 
55
- /**
56
- * Lets the process finish when the reader of a stream has gone, as in
57
- * `simplix-boot generate Book | head`. A command has done its work by the time the failed write is
58
- * reported, so the work and the exit code stand; any other stream error is still fatal.
59
- *
60
- * @param {import('node:stream').Writable} stream
61
- */
62
- export function tolerateClosedReader(stream) {
63
- stream.on('error', error => {
64
- if (error.code !== 'EPIPE') throw error;
65
- });
66
- }
67
-
68
55
  /**
69
56
  * Where a command writes: progress and reports as lines, and a machine-readable result as the one
70
57
  * line a script reads.
@@ -7,7 +7,6 @@ import {
7
7
  compareReleaseVersions,
8
8
  getGeneratorPackageName,
9
9
  getGeneratorVersion,
10
- getReleaseTag,
11
10
  isSnapshotVersion,
12
11
  toReleaseVersion,
13
12
  } from './version-utils.js';
@@ -58,13 +57,13 @@ export function recordGeneratorVersion(configPath, version) {
58
57
  }
59
58
 
60
59
  /**
61
- * Latest version of this build's release line published to the npm registry, or null when the
62
- * registry cannot be reached or the line has never been published.
60
+ * Latest version published to the npm registry, or null when the registry
61
+ * cannot be reached or the package has never been published.
63
62
  */
64
- export function fetchLatestPublishedVersion(packageName = getGeneratorPackageName(), releaseTag = getReleaseTag()) {
63
+ export function fetchLatestPublishedVersion(packageName = getGeneratorPackageName()) {
65
64
  let output;
66
65
  try {
67
- output = execFileSync(NPM_BIN, ['view', `${packageName}@${releaseTag}`, 'version'], {
66
+ output = execFileSync(NPM_BIN, ['view', packageName, 'version'], {
68
67
  encoding: 'utf8',
69
68
  stdio: ['ignore', 'pipe', 'ignore'],
70
69
  timeout: NPM_LOOKUP_TIMEOUT_MS,
@@ -29,14 +29,6 @@ export function getGeneratorPackageName() {
29
29
  return readOwnPackageJson().name || '@simplix-boot/cli';
30
30
  }
31
31
 
32
- /**
33
- * The npm dist-tag this build's release line is published under. Each release line publishes
34
- * under its own tag, so the newest version of one line is never offered to a project on another.
35
- */
36
- export function getReleaseTag() {
37
- return readOwnPackageJson().publishConfig?.tag || 'latest';
38
- }
39
-
40
32
  /**
41
33
  * Development builds carry a -SNAPSHOT suffix; released builds never do.
42
34
  */