Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,10 @@ jobs:
- name: Bump version to prerelease targets
run: pnpm chronus version --prerelease "{nextVersion}-pr.${{ github.event.pull_request.number }}.${{ github.run_number }}"

# `chronus version --prerelease` rewrites package.json specifiers (e.g. workspace:^ ->
# a concrete prerelease range) without updating the lockfile. pnpm 11's verifyDepsBeforeRun
# check then fails the next `pnpm` invocation with ERR_PNPM_OUTDATED_LOCKFILE. Disable it
# for the remainder of the job since the mismatch is expected here.
- run: pnpm config set verifyDepsBeforeRun false --location project

- run: pnpm tsx eng/tsp-core/pkg-pr-new.ts
7 changes: 7 additions & 0 deletions eng/tsp-core/pipelines/jobs/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ jobs:
- script: pnpm chronus version --prerelease
displayName: Bump version to prerelease targets

# `chronus version --prerelease` rewrites package.json specifiers (e.g. workspace:^ -> a
# concrete range) without updating pnpm-lock.yaml. Disable pnpm's pre-run deps check for
# the rest of this job so the subsequent pnpm commands (gen-manifest, chronus pack) don't
# fail with ERR_PNPM_OUTDATED_LOCKFILE.
- script: pnpm config set verifyDepsBeforeRun false --location project
displayName: Disable deps check after prerelease version bump

- script: pnpm run gen-manifest
displayName: Regen manifest for compiler
workingDirectory: ./packages/compiler
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@typespec/monorepo",
"version": "0.0.1",
"private": true,
"packageManager": "pnpm@10.30.2",
"packageManager": "pnpm@11.10.0",
"type": "module",
"scripts": {
"build": "turbo build && pnpm check:eng && pnpm gen-compiler-extern-signature",
Expand Down
12 changes: 9 additions & 3 deletions packages/compiler/src/testing/test-server-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,16 @@ export async function createTestServerHost(options?: TestHostOptions & { workspa
const clientConfigProvider = createClientConfigProvider();
const server = createServer(serverHost, clientConfigProvider);
await server.initialize({
rootUri: options?.caseInsensitiveFileSystem ? rootUri.toUpperCase() : rootUri,
capabilities: {},
capabilities: { workspace: { workspaceFolders: true } },
processId: null,
workspaceFolders: null,
// eslint-disable-next-line @typescript-eslint/no-deprecated
rootUri: null,
workspaceFolders: [
{
name: "<root>",
uri: options?.caseInsensitiveFileSystem ? rootUri.toUpperCase() : rootUri,
},
],
});
server.initialized({});
const serverCompile = server.compile;
Expand Down
1 change: 1 addition & 0 deletions packages/emitter-framework/src/testing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createTestLibrary, type TypeSpecTestLibrary } from "@typespec/compiler/
import { fileURLToPath } from "url";

/** @deprecated Use `createTester` from `@typespec/compiler/testing` instead */
// eslint-disable-next-line @typescript-eslint/no-deprecated
export const EmitterFrameworkTestLibrary: TypeSpecTestLibrary = createTestLibrary({
name: "@typespec/emitter-framework",
packageRoot: resolvePath(fileURLToPath(import.meta.url), "../../../"),
Expand Down
2 changes: 2 additions & 0 deletions packages/http-canonicalization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"devDependencies": {
"@alloy-js/rollup-plugin": "catalog:",
"@types/node": "catalog:",
"@typespec/compiler": "workspace:^",
"@typespec/http": "workspace:^",
"concurrently": "catalog:",
"prettier": "catalog:"
}
Expand Down
1 change: 1 addition & 0 deletions packages/http-client-js/src/testing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createTestLibrary, TypeSpecTestLibrary } from "@typespec/compiler/testi
import { fileURLToPath } from "url";

/** @deprecated Use `createTester` from `@typespec/compiler/testing` instead */
// eslint-disable-next-line @typescript-eslint/no-deprecated
export const HttpClientJavascriptEmitterTestLibrary: TypeSpecTestLibrary = createTestLibrary({
name: "@typespec/http-client-js",
packageRoot: resolvePath(fileURLToPath(import.meta.url), "../../../"),
Expand Down
1 change: 1 addition & 0 deletions packages/http-client/src/testing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createTestLibrary, TypeSpecTestLibrary } from "@typespec/compiler/testi
import { fileURLToPath } from "url";

/** @deprecated Use `createTester` from `@typespec/compiler/testing` instead */
// eslint-disable-next-line @typescript-eslint/no-deprecated
export const HttpClientTestLibrary: TypeSpecTestLibrary = createTestLibrary({
name: "@typespec/http-client",
packageRoot: resolvePath(fileURLToPath(import.meta.url), "../../../../"),
Expand Down
7 changes: 4 additions & 3 deletions packages/playground/src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,11 @@ export async function registerMonacoLanguage(host: BrowserHost) {
const { createServer } = host.compiler;
const serverLib = createServer(serverHost);
const lsConfig = await serverLib.initialize({
capabilities: {},
capabilities: { workspace: { workspaceFolders: true } },
processId: 1,
workspaceFolders: [],
rootUri: "inmemory://",
// eslint-disable-next-line @typescript-eslint/no-deprecated
rootUri: null,
workspaceFolders: [{ name: "<root>", uri: "inmemory://" }],
});
serverLib.initialized({});

Expand Down
3 changes: 1 addition & 2 deletions packages/tsp-integration/src/find-packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ async function extractPackageNameFromTgzFile(tgzFilePath: string): Promise<strin

await tar.t({
file: tgzFilePath,
// cspell:ignore onentry
onentry: (entry) => {
onReadEntry: (entry) => {
if (entry.path === "package/package.json") {
entry.on("data", (chunk) => {
if (packageJsonContent === null) {
Expand Down
3 changes: 2 additions & 1 deletion packages/tspd/src/ref-doc/api-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { stringify } from "yaml";
export async function generateJsApiDocs(libraryPath: string, outputDir: string) {
const markdownPluginOptions: Partial<PluginOptions> = {
entryFileName: "index.md",
propertiesFormat: "table",
interfacePropertiesFormat: "table",
classPropertiesFormat: "table",
parametersFormat: "table",
enumMembersFormat: "table",
typeDeclarationFormat: "table",
Expand Down
4 changes: 2 additions & 2 deletions packages/typespec-vscode/ThirdPartyNotices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ granted herein, whether by implication, estoppel or otherwise.
2. @babel/helper-validator-identifier version 7.29.7 (https://github.com/babel/babel)
3. ajv version 8.20.0 (ajv-validator/ajv)
4. balanced-match version 4.0.4 (https://github.com/juliangruber/balanced-match)
5. brace-expansion version 5.0.6 (ssh://git@github.com/juliangruber/brace-expansion)
5. brace-expansion version 5.0.7 (https://github.com/juliangruber/brace-expansion)
6. change-case version 5.4.4 (https://github.com/blakeembrey/change-case)
7. cross-spawn version 7.0.6 (git@github.com:moxystudio/node-cross-spawn)
8. fast-deep-equal version 3.1.3 (https://github.com/epoberezkin/fast-deep-equal)
9. fast-uri version 3.1.2 (https://github.com/fastify/fast-uri)
9. fast-uri version 3.1.3 (https://github.com/fastify/fast-uri)
10. is-unicode-supported version 2.1.0 (sindresorhus/is-unicode-supported)
11. isexe version 2.0.0 (https://github.com/isaacs/isexe)
12. isexe version 4.0.0 (https://github.com/isaacs/isexe)
Expand Down
Loading
Loading