mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 06:10:47 -04:00
Replace __dirname with import.meta.dirname in the plugins workspace vite configs (root paths and the plugins-runtime tsconfigPath) and in frontend/vite.config.js, dropping the fileURLToPath fallback. Import vite.config.iife with the explicit .ts extension in the plugin-api-test-suite headless/tests configs and allow it in tsconfig.node.json (moduleResolution Bundler + noEmit), matching the mcp/packages/plugin precedent. Remove .storybook/vitest.setup.ts and its setupFiles entry; @storybook/addon-vitest 10.3+ provisions preview annotations automatically. These clear the Vite `configLoader: 'native'` warnings ahead of that loader becoming the default. AI-assisted-by: omen-alpha
21 lines
446 B
JSON
21 lines
446 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"outDir": "../../dist/out-tsc",
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"types": ["node"],
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true
|
|
},
|
|
"include": [
|
|
"tools/**/*.ts",
|
|
"ci/**/*.ts",
|
|
"vite.config.ts",
|
|
"vite.config.headless.ts",
|
|
"vite.config.tests.ts",
|
|
"vite.config.iife.ts"
|
|
]
|
|
}
|