Change build system
Lint / lint (push) Failing after 40s

This commit is contained in:
Julien Valverdé
2026-07-25 23:47:16 +02:00
parent 3533fa0c84
commit 65e90325d0
26 changed files with 78 additions and 48 deletions
+1 -1
View File
@@ -3,6 +3,6 @@
"root": false,
"extends": "//",
"files": {
"includes": ["./src/**", "./test/**"]
"includes": ["./src/**"]
}
}
+2 -2
View File
@@ -26,9 +26,9 @@
"lint:tsc": "tsc --noEmit",
"lint:biome": "biome lint",
"test": "vitest run",
"build": "tsc",
"build": "tsc -b tsconfig.build.json",
"pack": "npm pack",
"clean:cache": "rm -rf .turbo tsconfig.tsbuildinfo",
"clean:cache": "rm -rf .turbo *.tsbuildinfo",
"clean:dist": "rm -rf dist",
"clean:modules": "rm -rf node_modules"
},
@@ -1,7 +1,7 @@
import path from "node:path"
import type { Plugin, TransformPluginContext } from "vite"
import { describe, expect, it } from "vitest"
import { effectViewPlugin } from "../src/index.js"
import { effectViewPlugin } from "./index.js"
const runTransform = async (
@@ -1,7 +1,7 @@
import type * as Component from "effect-fc-next/Component"
import * as Refreshable from "effect-fc-next/Refreshable"
import { describe, expect, it, vi } from "vitest"
import { accept, register } from "../src/runtime.js"
import { accept, register } from "./runtime.js"
describe("refresh runtime", () => {
+4
View File
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["**/setup-tests.ts", "**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"]
}
+23 -3
View File
@@ -1,19 +1,39 @@
{
"compilerOptions": {
"lib": ["ESNext"],
// Enable latest features
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"module": "NodeNext",
"moduleDetection": "force",
"jsx": "react-jsx",
// "allowJs": true,
// Bundler mode
"moduleResolution": "NodeNext",
// "allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
// "noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false,
// Build
"rootDir": "./src",
"outDir": "./dist",
"declaration": true,
"sourceMap": true
"sourceMap": true,
"plugins": [
{ "name": "@effect/language-service" }
]
},
"include": ["./src"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"]
}
+1 -1
View File
@@ -3,6 +3,6 @@ import { defineConfig } from "vitest/config"
export default defineConfig({
test: {
include: ["test/**/*.test.ts"],
include: ["./src/**/*.test.ts?(x)"],
},
})