Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-worker_thr...
[poolifier.git] / rollup.config.mjs
index eb6226303a45726ce05b2916742298f9a7a0afd9..29cc1f96e86610346dc42757afe07c73fae0b560 100644 (file)
@@ -5,6 +5,7 @@ import typescript from '@rollup/plugin-typescript'
 import analyze from 'rollup-plugin-analyzer'
 import command from 'rollup-plugin-command'
 import del from 'rollup-plugin-delete'
+import { defineConfig } from 'rollup'
 
 const availableParallelism = () => {
   let availableParallelism = 1
@@ -25,7 +26,7 @@ const isDocumentationBuild = process.env.DOCUMENTATION
 
 const maxWorkers = Math.floor(availableParallelism() / 2)
 
-export default [
+export default defineConfig([
   {
     input: './src/index.ts',
     strictDeprecations: true,
@@ -71,8 +72,8 @@ export default [
     plugins: [
       typescript({
         tsconfig: isDevelopmentBuild
-          ? 'tsconfig.development.json'
-          : 'tsconfig.production.json'
+          ? './tsconfig.development.json'
+          : './tsconfig.production.json'
       }),
       del({
         targets: ['./lib/*']
@@ -100,4 +101,4 @@ export default [
       isAnalyzeBuild && analyze()
     ]
   }
-]
+])