diff --git a/packages/php-wasm/fs-journal/vite.config.ts b/packages/php-wasm/fs-journal/vite.config.ts index fd0065f6fa..23144abf1b 100644 --- a/packages/php-wasm/fs-journal/vite.config.ts +++ b/packages/php-wasm/fs-journal/vite.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), viteTsConfigPaths({ diff --git a/packages/php-wasm/logger/src/lib/collectors/collect-php-logs.ts b/packages/php-wasm/logger/src/lib/collectors/collect-php-logs.ts index 7a4b6d5aea..a8223a1046 100644 --- a/packages/php-wasm/logger/src/lib/collectors/collect-php-logs.ts +++ b/packages/php-wasm/logger/src/lib/collectors/collect-php-logs.ts @@ -1,4 +1,4 @@ -import { UniversalPHP, PHPRequestErrorEvent } from '../../universal'; +import type { UniversalPHP, PHPRequestErrorEvent } from '../types'; import { Logger } from '../logger'; let lastPHPLogLength = 0; diff --git a/packages/php-wasm/logger/src/universal.d.ts b/packages/php-wasm/logger/src/lib/types.ts similarity index 88% rename from packages/php-wasm/logger/src/universal.d.ts rename to packages/php-wasm/logger/src/lib/types.ts index f454787335..bca355e7a9 100644 --- a/packages/php-wasm/logger/src/universal.d.ts +++ b/packages/php-wasm/logger/src/lib/types.ts @@ -16,7 +16,7 @@ export interface UniversalPHP { addEventListener( event: string, - listener: (event: PHPRequestEndEvent | PHPRequestErrorEvent) => void + listener: (event: PHPRequestErrorEvent) => void ): void; } diff --git a/packages/php-wasm/logger/tsconfig.spec.json b/packages/php-wasm/logger/tsconfig.spec.json index eb23daacbc..afdf3056c0 100644 --- a/packages/php-wasm/logger/tsconfig.spec.json +++ b/packages/php-wasm/logger/tsconfig.spec.json @@ -14,6 +14,7 @@ "src/**/*.spec.js", "src/**/*.test.jsx", "src/**/*.spec.jsx", - "src/**/*.d.ts" + "src/**/*.d.ts", + "src/types.ts" ] } diff --git a/packages/php-wasm/logger/vite.config.ts b/packages/php-wasm/logger/vite.config.ts index 3d71cc14d7..ef523308fa 100644 --- a/packages/php-wasm/logger/vite.config.ts +++ b/packages/php-wasm/logger/vite.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), viteTsConfigPaths({ diff --git a/packages/php-wasm/node-polyfills/vite.config.ts b/packages/php-wasm/node-polyfills/vite.config.ts index f5b3d6d660..476448d6f4 100644 --- a/packages/php-wasm/node-polyfills/vite.config.ts +++ b/packages/php-wasm/node-polyfills/vite.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), ], diff --git a/packages/php-wasm/progress/vite.config.ts b/packages/php-wasm/progress/vite.config.ts index 69e5006fa8..747b5beb99 100644 --- a/packages/php-wasm/progress/vite.config.ts +++ b/packages/php-wasm/progress/vite.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), viteTsConfigPaths({ diff --git a/packages/php-wasm/scopes/vite.config.ts b/packages/php-wasm/scopes/vite.config.ts index 020d692275..63f0fa757b 100644 --- a/packages/php-wasm/scopes/vite.config.ts +++ b/packages/php-wasm/scopes/vite.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), viteTsConfigPaths({ diff --git a/packages/php-wasm/stream-compression/vite.config.ts b/packages/php-wasm/stream-compression/vite.config.ts index 9079ffc9a3..8644a778ca 100644 --- a/packages/php-wasm/stream-compression/vite.config.ts +++ b/packages/php-wasm/stream-compression/vite.config.ts @@ -14,6 +14,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), viteTsConfigPaths({ root: '../../../', diff --git a/packages/php-wasm/universal/vite.config.ts b/packages/php-wasm/universal/vite.config.ts index b799340e6e..b7c64ad708 100644 --- a/packages/php-wasm/universal/vite.config.ts +++ b/packages/php-wasm/universal/vite.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), viteTsConfigPaths({ diff --git a/packages/php-wasm/util/vite.config.ts b/packages/php-wasm/util/vite.config.ts index 836b2c0470..59d0e3dd1b 100644 --- a/packages/php-wasm/util/vite.config.ts +++ b/packages/php-wasm/util/vite.config.ts @@ -15,6 +15,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), viteTsConfigPaths({ diff --git a/packages/php-wasm/web-service-worker/vite.config.ts b/packages/php-wasm/web-service-worker/vite.config.ts index aca24d3350..d5df5f4767 100644 --- a/packages/php-wasm/web-service-worker/vite.config.ts +++ b/packages/php-wasm/web-service-worker/vite.config.ts @@ -14,6 +14,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), viteTsConfigPaths({ diff --git a/packages/php-wasm/web/vite.config.ts b/packages/php-wasm/web/vite.config.ts index ea41ec1aa8..5f7035e947 100644 --- a/packages/php-wasm/web/vite.config.ts +++ b/packages/php-wasm/web/vite.config.ts @@ -19,6 +19,7 @@ export default defineConfig(({ command }) => { dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), { name: 'ignore-wasm-imports', diff --git a/packages/playground/blueprints/vite.config.ts b/packages/playground/blueprints/vite.config.ts index 82993570fe..50cc8d70d4 100644 --- a/packages/playground/blueprints/vite.config.ts +++ b/packages/playground/blueprints/vite.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), viteTsConfigPaths({ diff --git a/packages/playground/client/vite.config.ts b/packages/playground/client/vite.config.ts index d9004a866b..1831eb2f0a 100644 --- a/packages/playground/client/vite.config.ts +++ b/packages/playground/client/vite.config.ts @@ -18,6 +18,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), ignoreWasmImports(), diff --git a/packages/playground/common/vite.config.ts b/packages/playground/common/vite.config.ts index 652fa02889..f7854f9f82 100644 --- a/packages/playground/common/vite.config.ts +++ b/packages/playground/common/vite.config.ts @@ -15,6 +15,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: path('tsconfig.lib.json'), + pathsToAliases: false, }), ], diff --git a/packages/playground/remote/vite.config.ts b/packages/playground/remote/vite.config.ts index 7bd75a0339..9823bd9ec9 100644 --- a/packages/playground/remote/vite.config.ts +++ b/packages/playground/remote/vite.config.ts @@ -18,6 +18,7 @@ const plugins = [ dts({ entryRoot: 'src', tsconfigPath: join(__dirname, 'tsconfig.lib.json'), + pathsToAliases: false, }), /** * Copy the `.htaccess` file to the `dist` directory. diff --git a/packages/playground/wordpress-builds/vite.config.ts b/packages/playground/wordpress-builds/vite.config.ts index 3e7846a1b7..1385087e4e 100644 --- a/packages/playground/wordpress-builds/vite.config.ts +++ b/packages/playground/wordpress-builds/vite.config.ts @@ -18,6 +18,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: path('tsconfig.lib.json'), + pathsToAliases: false, }), { name: 'use-correct-wp-data-file-url-in-vitest-environment', diff --git a/packages/playground/wordpress/vite.config.ts b/packages/playground/wordpress/vite.config.ts index d8a36b4bc4..d1b04510c4 100644 --- a/packages/playground/wordpress/vite.config.ts +++ b/packages/playground/wordpress/vite.config.ts @@ -18,6 +18,7 @@ export default defineConfig({ dts({ entryRoot: 'src', tsconfigPath: path('tsconfig.lib.json'), + pathsToAliases: false, }), { name: 'use-correct-wp-data-file-url-in-vitest-environment',