@eclipse-glsp/cli 2.2.0-next.b5aff4f.157 → 2.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/README.md +24 -0
- package/bin/glsp +1 -1
- package/lib/app.d.ts +0 -1
- package/lib/app.d.ts.map +1 -1
- package/lib/app.js +4 -3
- package/lib/app.js.map +1 -1
- package/lib/commands/check-header.d.ts +2 -1
- package/lib/commands/check-header.d.ts.map +1 -1
- package/lib/commands/check-header.js +34 -21
- package/lib/commands/check-header.js.map +1 -1
- package/lib/commands/coverage-report.d.ts +1 -1
- package/lib/commands/coverage-report.js +12 -9
- package/lib/commands/coverage-report.js.map +1 -1
- package/lib/commands/generate-index.d.ts +46 -0
- package/lib/commands/generate-index.d.ts.map +1 -0
- package/lib/commands/generate-index.js +172 -0
- package/lib/commands/generate-index.js.map +1 -0
- package/lib/commands/release/common.d.ts +1 -1
- package/lib/commands/release/common.js +24 -24
- package/lib/commands/release/common.js.map +1 -1
- package/lib/commands/release/release-client.js +7 -27
- package/lib/commands/release/release-client.js.map +1 -1
- package/lib/commands/release/release-eclipse-integration.d.ts +2 -2
- package/lib/commands/release/release-eclipse-integration.d.ts.map +1 -1
- package/lib/commands/release/release-eclipse-integration.js +20 -40
- package/lib/commands/release/release-eclipse-integration.js.map +1 -1
- package/lib/commands/release/release-java-server.d.ts.map +1 -1
- package/lib/commands/release/release-java-server.js +9 -29
- package/lib/commands/release/release-java-server.js.map +1 -1
- package/lib/commands/release/release-server-node.d.ts +2 -2
- package/lib/commands/release/release-server-node.d.ts.map +1 -1
- package/lib/commands/release/release-server-node.js +13 -33
- package/lib/commands/release/release-server-node.js.map +1 -1
- package/lib/commands/release/release-theia-integration.d.ts +2 -2
- package/lib/commands/release/release-theia-integration.d.ts.map +1 -1
- package/lib/commands/release/release-theia-integration.js +13 -33
- package/lib/commands/release/release-theia-integration.js.map +1 -1
- package/lib/commands/release/release-vscode-integration.d.ts +2 -2
- package/lib/commands/release/release-vscode-integration.d.ts.map +1 -1
- package/lib/commands/release/release-vscode-integration.js +13 -33
- package/lib/commands/release/release-vscode-integration.js.map +1 -1
- package/lib/commands/release/release.d.ts +1 -1
- package/lib/commands/release/release.d.ts.map +1 -1
- package/lib/commands/release/release.js +19 -16
- package/lib/commands/release/release.js.map +1 -1
- package/lib/commands/update-next.d.ts.map +1 -1
- package/lib/commands/update-next.js +9 -6
- package/lib/commands/update-next.js.map +1 -1
- package/lib/util/command-util.d.ts +2 -2
- package/lib/util/command-util.d.ts.map +1 -1
- package/lib/util/command-util.js +6 -26
- package/lib/util/command-util.js.map +1 -1
- package/lib/util/git-util.d.ts +1 -1
- package/lib/util/git-util.js +15 -35
- package/lib/util/git-util.js.map +1 -1
- package/lib/util/logger.d.ts +1 -1
- package/lib/util/logger.js +4 -4
- package/lib/util/logger.js.map +1 -1
- package/lib/util/validation-util.d.ts +0 -1
- package/lib/util/validation-util.d.ts.map +1 -1
- package/lib/util/validation-util.js +2 -3
- package/lib/util/validation-util.js.map +1 -1
- package/package.json +4 -4
- package/src/app.ts +4 -3
- package/src/commands/check-header.ts +28 -18
- package/src/commands/coverage-report.ts +2 -2
- package/src/commands/generate-index.ts +169 -0
- package/src/commands/release/common.ts +2 -2
- package/src/commands/release/release-client.ts +2 -2
- package/src/commands/release/release-eclipse-integration.ts +5 -5
- package/src/commands/release/release-java-server.ts +3 -3
- package/src/commands/release/release-server-node.ts +3 -3
- package/src/commands/release/release-theia-integration.ts +3 -3
- package/src/commands/release/release-vscode-integration.ts +3 -3
- package/src/commands/release/release.ts +3 -3
- package/src/commands/update-next.ts +3 -2
- package/src/util/command-util.ts +2 -2
- package/src/util/git-util.ts +2 -2
- package/src/util/logger.ts +1 -1
- package/src/util/validation-util.ts +1 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import
|
|
16
|
+
import sh from 'shelljs';
|
|
17
17
|
import { fatalExec, getShellConfig } from '../../util/command-util';
|
|
18
18
|
import { LOGGER } from '../../util/logger';
|
|
19
|
-
import { asMvnVersion, checkoutAndCd, commitAndTag, publish
|
|
19
|
+
import { ReleaseOptions, asMvnVersion, checkoutAndCd, commitAndTag, publish } from './common';
|
|
20
20
|
|
|
21
21
|
let REPO_ROOT: string;
|
|
22
22
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
|
-
import
|
|
17
|
+
import sh from 'shelljs';
|
|
18
18
|
import { LOGGER } from '../../util/logger';
|
|
19
19
|
import {
|
|
20
20
|
checkoutAndCd,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
updateLernaForDryRun,
|
|
26
26
|
updateVersion,
|
|
27
27
|
yarnInstall
|
|
28
|
-
} from './common';
|
|
28
|
+
} from './common.js';
|
|
29
29
|
|
|
30
30
|
let REPO_ROOT: string;
|
|
31
31
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
|
-
import
|
|
17
|
+
import sh from 'shelljs';
|
|
18
18
|
import { LOGGER } from '../../util/logger';
|
|
19
19
|
import {
|
|
20
20
|
checkoutAndCd,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
updateLernaForDryRun,
|
|
26
26
|
updateVersion,
|
|
27
27
|
yarnInstall
|
|
28
|
-
} from './common';
|
|
28
|
+
} from './common.js';
|
|
29
29
|
|
|
30
30
|
let REPO_ROOT: string;
|
|
31
31
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
|
-
import
|
|
17
|
+
import sh from 'shelljs';
|
|
18
18
|
import { LOGGER } from '../../util/logger';
|
|
19
19
|
import {
|
|
20
20
|
checkoutAndCd,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
updateLernaForDryRun,
|
|
26
26
|
updateVersion,
|
|
27
27
|
yarnInstall
|
|
28
|
-
} from './common';
|
|
28
|
+
} from './common.js';
|
|
29
29
|
|
|
30
30
|
let REPO_ROOT: string;
|
|
31
31
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -19,7 +19,7 @@ import { exit } from 'process';
|
|
|
19
19
|
import { createInterface } from 'readline';
|
|
20
20
|
import * as readline from 'readline-sync';
|
|
21
21
|
import * as semver from 'semver';
|
|
22
|
-
import
|
|
22
|
+
import sh from 'shelljs';
|
|
23
23
|
import { baseCommand, configureShell, fatalExec, getShellConfig } from '../../util/command-util';
|
|
24
24
|
import { LOGGER, configureLogger } from '../../util/logger';
|
|
25
25
|
import { validateDirectory, validateVersion } from '../../util/validation-util';
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
asMvnVersion,
|
|
32
32
|
checkIfMavenVersionExists,
|
|
33
33
|
checkIfNpmVersionIsNew
|
|
34
|
-
} from './common';
|
|
34
|
+
} from './common.js';
|
|
35
35
|
import { releaseClient } from './release-client';
|
|
36
36
|
import { releaseEclipseIntegration } from './release-eclipse-integration';
|
|
37
37
|
import { releaseJavaServer } from './release-java-server';
|
|
@@ -18,12 +18,13 @@ import * as fs from 'fs';
|
|
|
18
18
|
import { glob } from 'glob';
|
|
19
19
|
import * as jq from 'node-jq';
|
|
20
20
|
import * as path from 'path';
|
|
21
|
-
import
|
|
21
|
+
import sh from 'shelljs';
|
|
22
22
|
import { baseCommand, configureShell } from '../util/command-util';
|
|
23
23
|
import { getUncommittedChanges } from '../util/git-util';
|
|
24
24
|
import { LOGGER, configureLogger } from '../util/logger';
|
|
25
25
|
import { validateGitDirectory } from '../util/validation-util';
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
export const UpdateNextCommand = baseCommand()
|
|
27
28
|
.name('updateNext')
|
|
28
29
|
.alias('u')
|
|
29
30
|
.description('Updates all `next` dependencies in GLSP project to the latest version')
|
package/src/util/command-util.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { Command } from 'commander';
|
|
17
|
-
import
|
|
17
|
+
import sh from 'shelljs';
|
|
18
18
|
|
|
19
19
|
// Commander.js utils
|
|
20
20
|
export function baseCommand(cmd = new Command()): Command {
|
package/src/util/git-util.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
17
|
import { resolve } from 'path';
|
|
18
|
-
import
|
|
18
|
+
import sh from 'shelljs';
|
|
19
19
|
import { getShellConfig } from './command-util';
|
|
20
20
|
|
|
21
21
|
export function isGitRepository(path?: string): boolean {
|
package/src/util/logger.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2022-2023 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -19,7 +19,6 @@ import { resolve } from 'path';
|
|
|
19
19
|
import * as semver from 'semver';
|
|
20
20
|
import { getGitRoot, isGitRepository } from './git-util';
|
|
21
21
|
import { LOGGER } from './logger';
|
|
22
|
-
export const COMMAND_VERSION = '1.1.0-next';
|
|
23
22
|
|
|
24
23
|
export function validateDirectory(rootDir: string): string {
|
|
25
24
|
const path = resolve(rootDir);
|