Skip to content
Open
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
33 changes: 33 additions & 0 deletions .chronus/changes/no-build-test-2026-0-12-16-21-29.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: internal
packages:
- "@typespec/asset-emitter"
- "@typespec/bundler"
- "@typespec/compiler"
- "@typespec/eslint-plugin"
- "@typespec/events"
- "@typespec/html-program-viewer"
- "@typespec/http-canonicalization"
- "@typespec/http-server-csharp"
- "@typespec/http-server-js"
- "@typespec/http"
- "@typespec/internal-build-utils"
- "@typespec/json-schema"
- "@typespec/library-linter"
- "@typespec/mutator-framework"
- "@typespec/openapi"
- "@typespec/openapi3"
- "@typespec/playground"
- "@typespec/protobuf"
- "@typespec/rest"
- "@typespec/sse"
- "@typespec/streams"
- tmlanguage-generator
- "@typespec/tspd"
- typespec-vscode
- "@typespec/versioning"
- "@typespec/xml"
---

Stop building test files
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
node-version:
required: false
description: Node version for setup-node
default: 20.x
default: 24.x

runs:
using: composite
Expand Down
12 changes: 7 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import eslint from "@eslint/js";
import vitest from "@vitest/eslint-plugin";
import reactHooks from "eslint-plugin-react-hooks";
import unicorn from "eslint-plugin-unicorn";
import { defineConfig } from "eslint/config";
import tsEslint from "typescript-eslint";

/** Config that will apply to all files */
const allFilesConfig = tsEslint.config({
const allFilesConfig = defineConfig({
plugins: {
unicorn,
},
Expand Down Expand Up @@ -71,7 +72,7 @@ const allFilesConfig = tsEslint.config({
* @param {string} root
*/
export function getTypeScriptProjectRules(root) {
return tsEslint.config({
return defineConfig({
files: [
"**/packages/*/src/**/*.ts",
"**/packages/*/src/**/*.tsx",
Expand All @@ -96,7 +97,7 @@ export function getTypeScriptProjectRules(root) {
}

/** Config that will apply to all test files only */
const testFilesConfig = tsEslint.config({
const testFilesConfig = defineConfig({
/**
* Test files specific rules
*/
Expand All @@ -117,8 +118,9 @@ const testFilesConfig = tsEslint.config({
},
});

const jsxFilesConfig = tsEslint.config({
const jsxFilesConfig = defineConfig({
files: ["**/*.tsx"],
// @ts-expect-error --- plugins typing issue
plugins: { "react-hooks": reactHooks },
// Exclude need **/ to make sure this can be reused in typespec-azure
ignores: ["**/packages/emitter-framework/src/**/*", "**/packages/http-client-js/**/*"],
Expand All @@ -136,7 +138,7 @@ export const TypeSpecCommonEslintConfigs = [
...testFilesConfig,
];

export default tsEslint.config(
export default defineConfig(
{
ignores: [
"**/dist/**/*",
Expand Down
4 changes: 2 additions & 2 deletions packages/asset-emitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
},
"scripts": {
"clean": "rimraf ./dist ./temp",
"build": "tsc -p .",
"watch": "tsc -p . --watch",
"build": "tsc -p tsconfig.build.json",
"watch": "tsc -p tsconfig.build.json --watch",
"test": "vitest run",
"test:watch": "vitest -w",
"test:ui": "vitest --ui",
Expand Down
4 changes: 4 additions & 0 deletions packages/asset-emitter/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "test/**/*.ts"]
}
4 changes: 0 additions & 4 deletions packages/asset-emitter/tsconfig.config.json

This file was deleted.

3 changes: 1 addition & 2 deletions packages/asset-emitter/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
"rootDir": ".",
"tsBuildInfoFile": "temp/tsconfig.tsbuildinfo",
"verbatimModuleSyntax": true
},
"include": ["src/**/*.ts", "test/**/*.ts"]
}
}
4 changes: 2 additions & 2 deletions packages/best-practices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
},
"scripts": {
"clean": "rimraf ./dist ./temp",
"build": "tsc -p .",
"watch": "tsc -p . --watch",
"build": "tsc -p tsconfig.build.json",
"watch": "tsc -p tsconfig.build.json --watch",
"test": "vitest run",
"test:ui": "vitest --ui",
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
Expand Down
4 changes: 4 additions & 0 deletions packages/best-practices/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "test/**/*.ts"]
}
4 changes: 0 additions & 4 deletions packages/best-practices/tsconfig.config.json

This file was deleted.

3 changes: 1 addition & 2 deletions packages/best-practices/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
"outDir": "dist",
"rootDir": ".",
"tsBuildInfoFile": "temp/tsconfig.tsbuildinfo"
},
"include": ["src/**/*.ts", "test/**/*.ts"]
}
}
4 changes: 2 additions & 2 deletions packages/bundle-uploader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
},
"scripts": {
"clean": "rimraf ./dist ./temp",
"build": "tsc -p .",
"watch": "tsc -p . --watch",
"build": "tsc -p tsconfig.build.json",
"watch": "tsc -p tsconfig.build.json --watch",
"test": "echo 'no test'",
"test:ci": "echo 'no test'",
"lint": "eslint . --max-warnings=0",
Expand Down
4 changes: 4 additions & 0 deletions packages/bundle-uploader/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "test/**/*.ts"]
}
4 changes: 0 additions & 4 deletions packages/bundle-uploader/tsconfig.config.json

This file was deleted.

3 changes: 1 addition & 2 deletions packages/bundle-uploader/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"outDir": "dist",
"rootDir": ".",
"tsBuildInfoFile": "temp/tsconfig.tsbuildinfo"
},
"include": ["src/**/*.ts", "test/**/*.ts"]
}
}
4 changes: 2 additions & 2 deletions packages/bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"scripts": {
"bundle": "node ./dist/src/cli.js",
"clean": "rimraf ./dist ./temp",
"build": "tsc -p .",
"watch": "tsc -p . --watch",
"build": "tsc -p tsconfig.build.json",
"watch": "tsc -p tsconfig.build.json --watch",
"test": "vitest run",
"test:ui": "vitest --ui",
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
Expand Down
4 changes: 4 additions & 0 deletions packages/bundler/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "test/**/*.ts"]
}
4 changes: 0 additions & 4 deletions packages/bundler/tsconfig.config.json

This file was deleted.

3 changes: 1 addition & 2 deletions packages/bundler/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
"rootDir": ".",
"tsBuildInfoFile": "temp/tsconfig.tsbuildinfo",
"skipLibCheck": true
},
"include": ["src/**/*.ts", "test/**/*.ts"]
}
}
4 changes: 2 additions & 2 deletions packages/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
"build:init-templates-index": "tsx ./.scripts/build-init-templates.ts",
"build": "pnpm gen-manifest && pnpm build:init-templates-index && pnpm compile && pnpm generate-tmlanguage",
"api-extractor": "api-extractor run --local --verbose",
"compile": "tsc -p .",
"watch": "tsc -p . --watch",
"compile": "tsc -p tsconfig.build.json",
"watch": "tsc -p tsconfig.build.json --watch",
"watch-tmlanguage": "node scripts/watch-tmlanguage.js",
"generate-tmlanguage": "node scripts/generate-tmlanguage.js",
"gen-extern-signature": "tsx ./.scripts/gen-extern-signature.ts",
Expand Down
10 changes: 10 additions & 0 deletions packages/compiler/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*.ts",
"test/**/*.ts",
"generated-defs/**/*.ts",
"templates/index.ts",
"templates/*.e2e.ts"
]
}
4 changes: 0 additions & 4 deletions packages/compiler/tsconfig.config.json

This file was deleted.

9 changes: 1 addition & 8 deletions packages/compiler/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,5 @@
"outDir": "dist",
"rootDir": ".",
"tsBuildInfoFile": "temp/tsconfig.tsbuildinfo"
},
"include": [
"src/**/*.ts",
"test/**/*.ts",
"generated-defs/**/*.ts",
"templates/index.ts",
"templates/*.e2e.ts"
]
}
}
4 changes: 2 additions & 2 deletions packages/eslint-plugin-typespec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
},
"scripts": {
"clean": "rimraf ./dist ./temp",
"build": "tsc -p .",
"watch": "tsc -p . --watch",
"build": "tsc -p tsconfig.build.json",
"watch": "tsc -p tsconfig.build.json --watch",
"test": "vitest run",
"test:ui": "vitest --ui",
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
Expand Down
4 changes: 4 additions & 0 deletions packages/eslint-plugin-typespec/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "test/**/*.ts"]
}
4 changes: 0 additions & 4 deletions packages/eslint-plugin-typespec/tsconfig.config.json

This file was deleted.

3 changes: 1 addition & 2 deletions packages/eslint-plugin-typespec/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
"rootDir": ".",
"tsBuildInfoFile": "temp/tsconfig.tsbuildinfo",
"skipLibCheck": true
},
"include": ["src/**/*.ts", "test/**/*.ts"]
}
}
4 changes: 2 additions & 2 deletions packages/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
},
"scripts": {
"clean": "rimraf ./dist ./temp",
"build": "pnpm gen-extern-signature && tsc -p . && pnpm lint-typespec-library",
"watch": "tsc -p . --watch",
"build": "pnpm gen-extern-signature && tsc -p tsconfig.build.json && pnpm lint-typespec-library",
"watch": "tsc -p tsconfig.build.json --watch",
"gen-extern-signature": "tspd --enable-experimental gen-extern-signature .",
"lint-typespec-library": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
"test": "vitest run",
Expand Down
4 changes: 4 additions & 0 deletions packages/events/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"]
}
4 changes: 0 additions & 4 deletions packages/events/tsconfig.config.json

This file was deleted.

3 changes: 1 addition & 2 deletions packages/events/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
"rootDir": ".",
"tsBuildInfoFile": "temp/tsconfig.tsbuildinfo",
"verbatimModuleSyntax": true
},
"include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"]
}
}
3 changes: 0 additions & 3 deletions packages/html-program-viewer/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "src"
},
"include": ["src"],
"exclude": ["src/index.ts", "src/emitter.ts", "**/*.test.ts", "**/*.test.tsx"]
}
4 changes: 2 additions & 2 deletions packages/http-canonicalization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"url": "git+https://github.com/microsoft/typespec.git"
},
"scripts": {
"build": "tsc -p .",
"build": "tsc -p tsconfig.build.json",
"clean": "rimraf ./dist",
"format": "prettier . --write",
"watch": "tsc -p . --watch",
"watch": "tsc -p tsconfig.build.json --watch",
"test": "vitest run",
"test:ui": "vitest --ui",
"test:watch": "vitest -w",
Expand Down
5 changes: 5 additions & 0 deletions packages/http-canonicalization/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "test/**/*.ts", "test/**/*.tsx"],
"exclude": ["node_modules", "dist"]
}
1 change: 0 additions & 1 deletion packages/http-canonicalization/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
"rootDir": "./",
"verbatimModuleSyntax": true
},
"include": ["src/**/*.ts", "src/**/*.tsx", "test/**/*.ts", "test/**/*.tsx"],
"exclude": ["node_modules", "dist"]
}
4 changes: 2 additions & 2 deletions packages/http-server-csharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
},
"scripts": {
"clean": "rimraf ./dist ./temp",
"build": "tsc -p .",
"watch": "tsc -p . --watch",
"build": "tsc -p tsconfig.build.json",
"watch": "tsc -p tsconfig.build.json --watch",
"test": "vitest run",
"test:watch": "vitest -w",
"test:ui": "vitest --ui",
Expand Down
4 changes: 4 additions & 0 deletions packages/http-server-csharp/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"]
}
4 changes: 0 additions & 4 deletions packages/http-server-csharp/tsconfig.config.json

This file was deleted.

3 changes: 1 addition & 2 deletions packages/http-server-csharp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
"outDir": "dist",
"rootDir": ".",
"tsBuildInfoFile": "temp/tsconfig.tsbuildinfo"
},
"include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"]
}
}
2 changes: 1 addition & 1 deletion packages/http-server-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"build": "pnpm build:helpers && pnpm build:src",
"build:src": "tsc -p ./tsconfig.json",
"build:helpers": "tsx ./build-helpers.ts",
"watch": "tsc -p . --watch",
"watch": "tsc -p tsconfig.build.json --watch",
"test": "vitest run",
"test:watch": "vitest -w",
"test:ui": "vitest --ui",
Expand Down
4 changes: 2 additions & 2 deletions packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
},
"scripts": {
"clean": "rimraf ./dist ./temp",
"build": "pnpm gen-extern-signature && tsc -p . && pnpm lint-typespec-library",
"build": "pnpm gen-extern-signature && tsc -p tsconfig.build.json && pnpm lint-typespec-library",
"api-extractor": "api-extractor run --local --verbose",
"watch": "tsc -p . --watch",
"watch": "tsc -p tsconfig.build.json --watch",
"gen-extern-signature": "tspd --enable-experimental gen-extern-signature .",
"lint-typespec-library": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
"test": "vitest run",
Expand Down
5 changes: 5 additions & 0 deletions packages/http/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "generated-defs/**/*.ts"],
"exclude": ["**/*.test.*"]
}
Loading
Loading