@typespec/compiler 1.2.0-dev.0 → 1.2.0-dev.10

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.
Files changed (77) hide show
  1. package/dist/manifest.js +2 -2
  2. package/dist/src/config/config-interpolation.d.ts.map +1 -1
  3. package/dist/src/config/config-interpolation.js +23 -52
  4. package/dist/src/config/config-interpolation.js.map +1 -1
  5. package/dist/src/experimental/realm.d.ts +4 -4
  6. package/dist/src/experimental/realm.d.ts.map +1 -1
  7. package/dist/src/lib/decorators.d.ts.map +1 -1
  8. package/dist/src/lib/decorators.js +5 -2
  9. package/dist/src/lib/decorators.js.map +1 -1
  10. package/dist/src/lib/visibility.d.ts.map +1 -1
  11. package/dist/src/lib/visibility.js +11 -0
  12. package/dist/src/lib/visibility.js.map +1 -1
  13. package/dist/src/server/client-config-provider.d.ts +24 -0
  14. package/dist/src/server/client-config-provider.d.ts.map +1 -0
  15. package/dist/src/server/client-config-provider.js +40 -0
  16. package/dist/src/server/client-config-provider.js.map +1 -0
  17. package/dist/src/server/compile-service.d.ts +3 -1
  18. package/dist/src/server/compile-service.d.ts.map +1 -1
  19. package/dist/src/server/compile-service.js +9 -1
  20. package/dist/src/server/compile-service.js.map +1 -1
  21. package/dist/src/server/server.js +6 -2
  22. package/dist/src/server/server.js.map +1 -1
  23. package/dist/src/server/serverlib.d.ts +2 -1
  24. package/dist/src/server/serverlib.d.ts.map +1 -1
  25. package/dist/src/server/serverlib.js +2 -1
  26. package/dist/src/server/serverlib.js.map +1 -1
  27. package/dist/src/testing/fourslash.d.ts +16 -0
  28. package/dist/src/testing/fourslash.d.ts.map +1 -0
  29. package/dist/src/testing/fourslash.js +17 -0
  30. package/dist/src/testing/fourslash.js.map +1 -0
  31. package/dist/src/testing/fs.d.ts +12 -0
  32. package/dist/src/testing/fs.d.ts.map +1 -0
  33. package/dist/src/testing/fs.js +133 -0
  34. package/dist/src/testing/fs.js.map +1 -0
  35. package/dist/src/testing/index.d.ts +9 -2
  36. package/dist/src/testing/index.d.ts.map +1 -1
  37. package/dist/src/testing/index.js +7 -1
  38. package/dist/src/testing/index.js.map +1 -1
  39. package/dist/src/testing/marked-template.d.ts +96 -0
  40. package/dist/src/testing/marked-template.d.ts.map +1 -0
  41. package/dist/src/testing/marked-template.js +107 -0
  42. package/dist/src/testing/marked-template.js.map +1 -0
  43. package/dist/src/testing/rule-tester.d.ts +2 -2
  44. package/dist/src/testing/rule-tester.d.ts.map +1 -1
  45. package/dist/src/testing/rule-tester.js +2 -1
  46. package/dist/src/testing/rule-tester.js.map +1 -1
  47. package/dist/src/testing/test-compiler-host.d.ts +11 -0
  48. package/dist/src/testing/test-compiler-host.d.ts.map +1 -0
  49. package/dist/src/testing/test-compiler-host.js +138 -0
  50. package/dist/src/testing/test-compiler-host.js.map +1 -0
  51. package/dist/src/testing/test-host.d.ts +3 -9
  52. package/dist/src/testing/test-host.d.ts.map +1 -1
  53. package/dist/src/testing/test-host.js +6 -218
  54. package/dist/src/testing/test-host.js.map +1 -1
  55. package/dist/src/testing/test-server-host.d.ts +1 -1
  56. package/dist/src/testing/test-server-host.d.ts.map +1 -1
  57. package/dist/src/testing/test-server-host.js +5 -2
  58. package/dist/src/testing/test-server-host.js.map +1 -1
  59. package/dist/src/testing/tester.d.ts +12 -0
  60. package/dist/src/testing/tester.d.ts.map +1 -0
  61. package/dist/src/testing/tester.js +341 -0
  62. package/dist/src/testing/tester.js.map +1 -0
  63. package/dist/src/testing/types.d.ts +146 -3
  64. package/dist/src/testing/types.d.ts.map +1 -1
  65. package/dist/src/testing/types.js +1 -0
  66. package/dist/src/testing/types.js.map +1 -1
  67. package/dist/src/typekit/kits/literal.d.ts.map +1 -1
  68. package/dist/src/typekit/kits/literal.js +4 -25
  69. package/dist/src/typekit/kits/literal.js.map +1 -1
  70. package/lib/intrinsics.tsp +1 -1
  71. package/package.json +4 -4
  72. package/templates/__snapshots__/emitter-ts/package.json +1 -1
  73. package/templates/__snapshots__/library-ts/package.json +1 -1
  74. package/templates/__snapshots__/library-ts/test/decorators.test.ts +1 -1
  75. package/templates/emitter-ts/package.json +1 -1
  76. package/templates/library-ts/package.json +1 -1
  77. package/templates/library-ts/test/decorators.test.ts.mu +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/compiler",
3
- "version": "1.2.0-dev.0",
3
+ "version": "1.2.0-dev.10",
4
4
  "description": "TypeSpec Compiler Preview",
5
5
  "author": "Microsoft Corporation",
6
6
  "license": "MIT",
@@ -98,13 +98,13 @@
98
98
  "temporal-polyfill": "^0.3.0",
99
99
  "vscode-languageserver": "~9.0.1",
100
100
  "vscode-languageserver-textdocument": "~1.0.12",
101
- "yaml": "~2.7.0",
102
- "yargs": "~17.7.2"
101
+ "yaml": "~2.8.0",
102
+ "yargs": "~18.0.0"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@types/babel__code-frame": "~7.0.6",
106
106
  "@types/mustache": "~4.2.5",
107
- "@types/node": "~22.13.11",
107
+ "@types/node": "~24.0.3",
108
108
  "@types/semver": "^7.5.8",
109
109
  "@types/yargs": "~17.0.33",
110
110
  "@typespec/internal-build-utils": "^0.71.0 || >=0.72.0-dev <0.72.0",
@@ -28,7 +28,7 @@
28
28
  "scripts": {
29
29
  "build": "tsc",
30
30
  "watch": "tsc --watch",
31
- "test": "node --test",
31
+ "test": "node --test 'dist/test**/*.test.js'",
32
32
  "lint": "eslint src/ test/ --report-unused-disable-directives --max-warnings=0",
33
33
  "lint:fix": "eslint . --report-unused-disable-directives --fix",
34
34
  "format": "prettier . --write",
@@ -31,7 +31,7 @@
31
31
  "build": "tsc && npm run build:tsp",
32
32
  "watch": "tsc --watch",
33
33
  "build:tsp": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
34
- "test": "node --test",
34
+ "test": "node --test 'dist/test/**/*.test.js'",
35
35
  "lint": "eslint src/ test/ --report-unused-disable-directives --max-warnings=0",
36
36
  "lint:fix": "eslint . --report-unused-disable-directives --fix",
37
37
  "format": "prettier . --write",
@@ -1,6 +1,6 @@
1
1
  import { strictEqual } from "node:assert";
2
2
  import { describe, it, beforeEach } from "node:test";
3
- import { Operation } from "@typespec/compiler";
3
+ import type { Operation } from "@typespec/compiler";
4
4
  import { BasicTestRunner, expectDiagnostics, extractCursor } from "@typespec/compiler/testing";
5
5
  import { getAlternateName } from "../src/decorators.js";
6
6
  import { createLibraryTsTestRunner } from "./test-host.js";
@@ -28,7 +28,7 @@
28
28
  "scripts": {
29
29
  "build": "tsc",
30
30
  "watch": "tsc --watch",
31
- "test": "node --test",
31
+ "test": "node --test 'dist/test**/*.test.js'",
32
32
  "lint": "eslint src/ test/ --report-unused-disable-directives --max-warnings=0",
33
33
  "lint:fix": "eslint . --report-unused-disable-directives --fix",
34
34
  "format": "prettier . --write",
@@ -31,7 +31,7 @@
31
31
  "build": "tsc && npm run build:tsp",
32
32
  "watch": "tsc --watch",
33
33
  "build:tsp": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
34
- "test": "node --test",
34
+ "test": "node --test 'dist/test/**/*.test.js'",
35
35
  "lint": "eslint src/ test/ --report-unused-disable-directives --max-warnings=0",
36
36
  "lint:fix": "eslint . --report-unused-disable-directives --fix",
37
37
  "format": "prettier . --write",
@@ -1,6 +1,6 @@
1
1
  import { strictEqual } from "node:assert";
2
2
  import { describe, it, beforeEach } from "node:test";
3
- import { Operation } from "@typespec/compiler";
3
+ import type { Operation } from "@typespec/compiler";
4
4
  import { BasicTestRunner, expectDiagnostics, extractCursor } from "@typespec/compiler/testing";
5
5
  import { getAlternateName } from "../src/decorators.js";
6
6
  import { create{{#casing.pascalCase}}{{name}}{{/casing.pascalCase}}TestRunner } from "./test-host.js";