diff --git a/packages/function-pipe/index.js b/packages/function-pipe/index.cjs similarity index 100% rename from packages/function-pipe/index.js rename to packages/function-pipe/index.cjs diff --git a/packages/function-pipe/package.json b/packages/function-pipe/package.json index 4e57294ec..672408462 100644 --- a/packages/function-pipe/package.json +++ b/packages/function-pipe/package.json @@ -2,14 +2,16 @@ "name": "just-pipe", "version": "1.0.0", "description": "Pass a value through a pipeline of functions", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", - "default": "./index.mjs" - } + "types": "./index.d.ts", + "require": "./index.cjs", + "import": "./index.mjs" + }, + "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/function-pipe/rollup.config.js b/packages/function-pipe/rollup.config.js new file mode 100644 index 000000000..fb9d24a3d --- /dev/null +++ b/packages/function-pipe/rollup.config.js @@ -0,0 +1,3 @@ +const createRollupConfig = require('../../config/createRollupConfig'); + +module.exports = createRollupConfig(__dirname);