@ankhorage/devtools 1.1.0 → 1.1.1

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.
@@ -4,12 +4,12 @@ declare const provider: {
4
4
  version: string;
5
5
  capabilities: ("devtools.format" | "devtools.knip" | "devtools.lint")[];
6
6
  commands: {
7
- path: [import("./internal/devtoolsCommands.js").DevtoolsToolName];
7
+ path: [import("../internal/devtoolsCommands.js").DevtoolsToolName];
8
8
  capability: "devtools.format" | "devtools.knip" | "devtools.lint";
9
9
  summary: string;
10
10
  }[];
11
11
  handlers: {
12
- path: [import("./internal/devtoolsCommands.js").DevtoolsToolName];
12
+ path: [import("../internal/devtoolsCommands.js").DevtoolsToolName];
13
13
  handler: (request: import("@ankhorage/ankh").AnkhCommandExecutionRequest) => Promise<{
14
14
  exitCode: number;
15
15
  }>;
@@ -1,6 +1,6 @@
1
1
  import { readFileSync } from 'node:fs';
2
- import { getDevtoolsCommands } from './internal/devtoolsCommands.js';
3
- import { runDevtoolsCommand } from './internal/runDevtoolsCommand.js';
2
+ import { getDevtoolsCommands } from '../internal/devtoolsCommands.js';
3
+ import { runDevtoolsCommand } from '../internal/runDevtoolsCommand.js';
4
4
  const packageVersion = readPackageVersion();
5
5
  const commands = getDevtoolsCommands();
6
6
  const provider = {
@@ -23,7 +23,7 @@ const provider = {
23
23
  };
24
24
  export default provider;
25
25
  function readPackageVersion() {
26
- const packageJson = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
26
+ const packageJson = JSON.parse(readFileSync(new URL('../../package.json', import.meta.url), 'utf8'));
27
27
  if (!isRecord(packageJson) || !isNonEmptyString(packageJson.version)) {
28
28
  throw new Error('package.json must define a non-empty version string.');
29
29
  }
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@ankhorage/devtools",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Shared Lint and Format Configuration for Ankhorage",
5
+ "license": "MIT",
5
6
  "homepage": "https://github.com/ankhorage/devtools#readme",
6
7
  "bugs": {
7
8
  "url": "https://github.com/ankhorage/devtools/issues"
@@ -16,7 +17,7 @@
16
17
  },
17
18
  "ankh": {
18
19
  "category": "devtools",
19
- "provider": "./dist/ankh.provider.js",
20
+ "provider": "./dist/cli/index.js",
20
21
  "capabilities": [
21
22
  "devtools.lint",
22
23
  "devtools.format",
@@ -39,6 +40,10 @@
39
40
  "ankhorage-prettier": "./dist/prettier-cli.js"
40
41
  },
41
42
  "exports": {
43
+ "./cli": {
44
+ "types": "./dist/cli/index.d.ts",
45
+ "import": "./dist/cli/index.js"
46
+ },
42
47
  "./eslint": {
43
48
  "types": "./dist/eslint.d.ts",
44
49
  "import": "./dist/eslint.js"
@@ -60,6 +65,7 @@
60
65
  "scripts": {
61
66
  "build": "rm -rf dist tsconfig.tsbuildinfo && tsc && cp src/prettier.cjs dist/prettier.cjs",
62
67
  "typecheck": "bun x tsc --noEmit -p tsconfig.test.json",
68
+ "doctor": "ankhorage-doctor validate .",
63
69
  "knip": "knip",
64
70
  "lint": "eslint .",
65
71
  "lint:fix": "eslint . --fix --max-warnings=0",
@@ -86,6 +92,7 @@
86
92
  },
87
93
  "devDependencies": {
88
94
  "@ankhorage/ankh": "^0.4.0",
95
+ "@ankhorage/doctor": "0.3.0",
89
96
  "@changesets/cli": "^2.30.0",
90
97
  "@types/bun": "^1.3.13",
91
98
  "@types/node": "^25.2.3",