@typespec/json-schema 0.52.0-dev.2 → 0.52.0-dev.3
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
|
@@ -69,7 +69,7 @@ export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
|
69
69
|
"unknown-scalar": {
|
|
70
70
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
71
71
|
};
|
|
72
|
-
}, JSONSchemaEmitterOptions>;
|
|
72
|
+
}, JSONSchemaEmitterOptions, never>;
|
|
73
73
|
export declare const reportDiagnostic: <C extends "invalid-default" | "duplicate-id" | "unknown-scalar", M extends keyof {
|
|
74
74
|
"invalid-default": {
|
|
75
75
|
readonly default: import("@typespec/compiler").CallableMessage<["type"]>;
|
package/dist/src/lib.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,cAAc,EAAgB,MAAM,oBAAoB,CAAC;AAEzF,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEhD,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEvB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,aAAa,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,wBAAwB,CAuCzE,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CAyBT,CAAC;AAEX,eAAO,MAAM,IAAI;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,cAAc,EAAgB,MAAM,oBAAoB,CAAC;AAEzF,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEhD,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEvB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,aAAa,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,wBAAwB,CAuCzE,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CAyBT,CAAC;AAEX,eAAO,MAAM,IAAI;;;;;;;;;;mCAAgC,CAAC;AAElD,eAAO,MAAQ,gBAAgB;;;;;;;;;;;;;;;;;;;;mBAAE,iBAAiB,0BAAS,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,OAAO,IAAI,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,qBAAqB,EAAE,mBAGlC,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 JsonSchemaTestLibrary = createTestLibrary({
|
|
5
3
|
name: "@typespec/json-schema",
|
|
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,qBAAqB,GAAwB,iBAAiB,CAAC;IAC1E,IAAI,EAAE,uBAAuB;IAC7B,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/json-schema",
|
|
3
|
-
"version": "0.52.0-dev.
|
|
3
|
+
"version": "0.52.0-dev.3",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting TypeSpec to JSON Schema and converting JSON Schema to TypeSpec",
|
|
6
6
|
"homepage": "https://github.com/microsoft/typespec",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"@typespec/compiler": "~0.51.0 || >=0.52.0-dev <0.52.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/mocha": "~10.0.6",
|
|
39
38
|
"@types/node": "~18.11.9",
|
|
40
39
|
"@typespec/compiler": "~0.51.0 || >=0.52.0-dev <0.52.0",
|
|
41
40
|
"@typespec/library-linter": "~0.51.0 || >=0.52.0-dev <0.52.0",
|
|
@@ -43,9 +42,8 @@
|
|
|
43
42
|
"@typespec/eslint-config-typespec": "~0.51.0 || >=0.52.0-dev <0.52.0",
|
|
44
43
|
"@typespec/tspd": "~0.46.0 || >=0.47.0-dev <0.47.0",
|
|
45
44
|
"eslint": "^8.55.0",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"mocha-multi-reporters": "~1.5.1",
|
|
45
|
+
"vitest": "^1.1.0",
|
|
46
|
+
"@vitest/coverage-v8": "^1.1.0",
|
|
49
47
|
"c8": "~8.0.1",
|
|
50
48
|
"rimraf": "~5.0.1",
|
|
51
49
|
"typescript": "~5.3.3",
|
|
@@ -61,8 +59,9 @@
|
|
|
61
59
|
"build": "tsc -p . && npm run lint-typespec-library",
|
|
62
60
|
"watch": "tsc -p . --watch",
|
|
63
61
|
"lint-typespec-library": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
|
|
64
|
-
"test": "
|
|
65
|
-
"test
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"test:watch": "vitest -w",
|
|
64
|
+
"test-official": "vitest run --coverage --reporter=junit --reporter=default --no-file-parallelism",
|
|
66
65
|
"lint": "eslint . --ext .ts --max-warnings=0",
|
|
67
66
|
"lint:fix": "eslint . --fix --ext .ts",
|
|
68
67
|
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/libraries/json-schema/reference"
|