From 35dfbc3cb8cfe5e90819ef09cc31b8e7e8f555b4 Mon Sep 17 00:00:00 2001 From: Thomas Clark Date: Fri, 8 Dec 2023 19:06:35 +1100 Subject: [PATCH] fix outdated pipe package --- packages/function-pipe/{index.js => index.cjs} | 0 packages/function-pipe/package.json | 12 +++++++----- packages/function-pipe/rollup.config.js | 3 +++ 3 files changed, 10 insertions(+), 5 deletions(-) rename packages/function-pipe/{index.js => index.cjs} (100%) create mode 100644 packages/function-pipe/rollup.config.js 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);