@typespec/library-linter 0.52.0-dev.1 → 0.52.0-dev.2
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/src/lib.d.ts +1 -1
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/testing/index.d.ts.map +1 -1
- package/dist/src/testing/index.js +2 -4
- package/dist/src/testing/index.js.map +1 -1
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/vitest.config.js +14 -0
- package/dist/vitest.config.js.map +1 -0
- package/package.json +6 -7
package/dist/src/lib.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ declare const lib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
|
22
22
|
"missing-signature": {
|
|
23
23
|
readonly default: import("@typespec/compiler").CallableMessage<["decName", "decName"]>;
|
|
24
24
|
};
|
|
25
|
-
}, Record<string, any
|
|
25
|
+
}, Record<string, any>, never>;
|
|
26
26
|
export declare const reportDiagnostic: <C extends "missing-namespace" | "missing-signature", M extends keyof {
|
|
27
27
|
"missing-namespace": {
|
|
28
28
|
readonly default: import("@typespec/compiler").CallableMessage<["type", "name"]>;
|
package/dist/src/lib.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAgBT,CAAC;AACX,QAAA,MAAM,GAAG;;;;;;;
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAgBT,CAAC;AACX,QAAA,MAAM,GAAG;;;;;;;8BAAgC,CAAC;AAC1C,eAAO,MAAQ,gBAAgB;;;;;;;;;;;;;;iBAAQ,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,wBAAwB,EAAE,mBAGrC,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createTestLibrary } from "@typespec/compiler/testing";
|
|
3
|
-
import { fileURLToPath } from "url";
|
|
1
|
+
import { createTestLibrary, findTestPackageRoot, } from "@typespec/compiler/testing";
|
|
4
2
|
export const LibraryLinterTestLibrary = createTestLibrary({
|
|
5
3
|
name: "@typespec/library-linter",
|
|
6
|
-
packageRoot:
|
|
4
|
+
packageRoot: await findTestPackageRoot(import.meta.url),
|
|
7
5
|
});
|
|
8
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,GAEpB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,MAAM,wBAAwB,GAAwB,iBAAiB,CAAC;IAC7E,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,MAAM,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;CACxD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":";AAEA,wBAWG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineConfig } from "vitest/config";
|
|
2
|
+
export default defineConfig({
|
|
3
|
+
test: {
|
|
4
|
+
environment: "node",
|
|
5
|
+
isolate: false,
|
|
6
|
+
coverage: {
|
|
7
|
+
reporter: ["cobertura", "json", "text"],
|
|
8
|
+
},
|
|
9
|
+
outputFile: {
|
|
10
|
+
junit: "./test-results.xml",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=vitest.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.js","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAe,YAAY,CAAC;IAC1B,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE;YACR,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC;SACxC;QACD,UAAU,EAAE;YACV,KAAK,EAAE,oBAAoB;SAC5B;KACF;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/library-linter",
|
|
3
|
-
"version": "0.52.0-dev.
|
|
3
|
+
"version": "0.52.0-dev.2",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for linting another library.",
|
|
6
6
|
"homepage": "https://microsoft.github.io/typespec",
|
|
@@ -41,14 +41,12 @@
|
|
|
41
41
|
"@typespec/compiler": "~0.51.0 || >=0.52.0-dev <0.52.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/mocha": "~10.0.6",
|
|
45
44
|
"@types/node": "~18.11.9",
|
|
46
45
|
"@typespec/compiler": "~0.51.0 || >=0.52.0-dev <0.52.0",
|
|
47
46
|
"@typespec/eslint-config-typespec": "~0.51.0 || >=0.52.0-dev <0.52.0",
|
|
48
47
|
"eslint": "^8.55.0",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"mocha-multi-reporters": "~1.5.1",
|
|
48
|
+
"vitest": "^1.1.0",
|
|
49
|
+
"@vitest/coverage-v8": "^1.1.0",
|
|
52
50
|
"c8": "~8.0.1",
|
|
53
51
|
"rimraf": "~5.0.1",
|
|
54
52
|
"typescript": "~5.3.3"
|
|
@@ -58,8 +56,9 @@
|
|
|
58
56
|
"clean": "rimraf ./dist ./temp",
|
|
59
57
|
"build": "tsc -p .",
|
|
60
58
|
"watch": "tsc -p . --watch",
|
|
61
|
-
"test": "
|
|
62
|
-
"test
|
|
59
|
+
"test": "vitest run",
|
|
60
|
+
"test:watch": "vitest -w",
|
|
61
|
+
"test-official": "vitest run --coverage --reporter=junit --reporter=default --no-file-parallelism",
|
|
63
62
|
"lint": "eslint . --ext .ts --max-warnings=0",
|
|
64
63
|
"lint:fix": "eslint . --fix --ext .ts"
|
|
65
64
|
}
|