build: switch default to ESM
[poolifier.git] / benchmarks / internal / cluster-worker.cjs
similarity index 67%
rename from benchmarks/internal/cluster-worker.js
rename to benchmarks/internal/cluster-worker.cjs
index 18bd648c72ce73d454b3503b038719aeade6bd11..94980725624e9897db66b55b0fda6a3392776b38 100644 (file)
@@ -1,7 +1,7 @@
 const { isPrimary } = require('node:cluster')
-const { ClusterWorker } = require('../../lib')
-const { executeTaskFunction } = require('../benchmarks-utils.js')
-const { TaskFunctions } = require('../benchmarks-types.js')
+const { ClusterWorker } = require('../../lib/index.cjs')
+const { executeTaskFunction } = require('../benchmarks-utils.cjs')
+const { TaskFunctions } = require('../benchmarks-types.cjs')
 
 const taskFunction = data => {
   data = data || {}