@rrlab/ts-plugin 1.1.0 → 1.1.1-git-4903a88.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/dist/index.d.mts CHANGED
@@ -19,7 +19,7 @@ declare class TscService extends ToolService implements TypeChecker {
19
19
  declare function install(ctx: InstallContext): Promise<InstallResult>;
20
20
  declare function uninstall(ctx: UninstallContext): Promise<UninstallResult>;
21
21
  declare const ts: (options?: {
22
- only?: readonly "tsc"[] | undefined;
22
+ only?: readonly "typecheck"[] | undefined;
23
23
  } | undefined) => import("@rrlab/cli/plugin").Plugin;
24
24
  //#endregion
25
25
  export { TOOL_VERSIONS, TscService, ts as default, install, uninstall };
package/dist/index.mjs CHANGED
@@ -11,14 +11,14 @@ const TOOL_VERSIONS = {
11
11
  //#endregion
12
12
  //#region src/index.ts
13
13
  const FROM = import.meta.url;
14
- const UI = colorize("#3178C6")("tsc");
15
14
  const TSCONFIG = "tsconfig.json";
15
+ const tsColor = colorize("#3178C6");
16
16
  var TscService = class extends ToolService {
17
17
  constructor(shellService) {
18
18
  super({
19
19
  pkg: "typescript",
20
20
  bin: "tsc",
21
- ui: UI,
21
+ color: tsColor,
22
22
  shellService,
23
23
  from: FROM
24
24
  });
@@ -133,12 +133,13 @@ async function pathExists(p) {
133
133
  return false;
134
134
  }
135
135
  }
136
- const ts = definePlugin(() => ({
137
- name: "ts",
136
+ const ts = definePlugin({
138
137
  apiVersion: 1,
138
+ name: "ts",
139
+ color: tsColor,
139
140
  install,
140
141
  uninstall,
141
- capabilities: ({ shell }) => ({ tsc: new TscService(shell) })
142
- }));
142
+ services: ({ shell }) => ({ typecheck: new TscService(shell) })
143
+ });
143
144
  //#endregion
144
145
  export { TOOL_VERSIONS, TscService, ts as default, install, uninstall };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rrlab/ts-plugin",
3
- "version": "1.1.0",
3
+ "version": "1.1.1-git-4903a88.0",
4
4
  "description": "TypeScript plugin for @rrlab/cli — provides the tsc capability.",
5
5
  "homepage": "https://github.com/variableland/dx/tree/main/run-run/ts-plugin#readme",
6
6
  "bugs": {
@@ -34,17 +34,17 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "comment-json": "4.2.5",
37
- "@vlandoss/clibuddy": "0.7.0"
37
+ "@vlandoss/clibuddy": "0.7.1-git-4903a88.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "typescript": ">=5.0.0",
41
- "@rrlab/cli": "^1.1.0"
41
+ "@rrlab/cli": "^1.1.1-git-4903a88.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/semver": "^7.7.1",
45
45
  "semver": "^7.8.1",
46
46
  "typescript": "6.0.3",
47
- "@rrlab/cli": "1.1.0",
47
+ "@rrlab/cli": "1.1.1-git-4903a88.0",
48
48
  "@rrlab/tsdown-config": "^0.1.0"
49
49
  },
50
50
  "scripts": {
package/src/index.ts CHANGED
@@ -21,12 +21,12 @@ import { TOOL_VERSIONS } from "./tool-versions.ts";
21
21
  export { TOOL_VERSIONS } from "./tool-versions.ts";
22
22
 
23
23
  const FROM = import.meta.url;
24
- const UI = colorize("#3178C6")("tsc");
25
24
  const TSCONFIG = "tsconfig.json";
25
+ const tsColor = colorize("#3178C6");
26
26
 
27
27
  export class TscService extends ToolService implements TypeChecker {
28
28
  constructor(shellService: ShellService) {
29
- super({ pkg: "typescript", bin: "tsc", ui: UI, shellService, from: FROM });
29
+ super({ pkg: "typescript", bin: "tsc", color: tsColor, shellService, from: FROM });
30
30
  }
31
31
 
32
32
  async check(options: TypeCheckOptions = {}): Promise<RunReport> {
@@ -138,12 +138,13 @@ async function pathExists(p: string): Promise<boolean> {
138
138
  }
139
139
  }
140
140
 
141
- const ts = definePlugin(() => ({
142
- name: "ts",
141
+ const ts = definePlugin({
143
142
  apiVersion: 1,
143
+ name: "ts",
144
+ color: tsColor,
144
145
  install,
145
146
  uninstall,
146
- capabilities: ({ shell }) => ({ tsc: new TscService(shell) }),
147
- }));
147
+ services: ({ shell }) => ({ typecheck: new TscService(shell) }),
148
+ });
148
149
 
149
150
  export default ts;