From 4b3094808ea2a41424c3c0ca1612db53c6fae416 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Mon, 26 Oct 2026 10:52:12 +0000 Subject: [PATCH] fix: default export condition for CommonJS/test loaders (0.1.4) Found adopting brisk.news: only an import condition, so tools resolving with require conditions could not load it. Node 22+ require(esm) then works. Co-Authored-By: Claude Opus 5.5 --- package-lock.json | 4 ++-- package.json | 14 +++++++++----- src/cli.js | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 61a1a1c..b3f379b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@profullstack/profile", - "version": "0.1.3", + "version": "0.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@profullstack/profile", - "version": "0.1.3", + "version": "0.1.4", "license": "MIT", "bin": { "profile": "src/cli.js" diff --git a/package.json b/package.json index 949d85c..5257552 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@profullstack/profile", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "description": "One user profile for every property: email, first_name, last_name, company_domain, job_title, linkedin_url. Validation, signup form fields, storage on Postgres/Turso/Supabase, HTTP handlers, CSV export, CLI and MCP.", "keywords": [ @@ -23,15 +23,19 @@ "exports": { ".": { "types": "./index.d.ts", - "import": "./src/index.js" + "import": "./src/index.js", + "default": "./src/index.js" }, "./react": { "types": "./react.d.ts", - "import": "./src/react.js" + "import": "./src/react.js", + "default": "./src/react.js" }, "./cli": { - "import": "./src/cli.js" - } + "import": "./src/cli.js", + "default": "./src/cli.js" + }, + "./package.json": "./package.json" }, "bin": { "profile": "./src/cli.js" diff --git a/src/cli.js b/src/cli.js index 959f025..41f564b 100644 --- a/src/cli.js +++ b/src/cli.js @@ -20,7 +20,7 @@ import { csvRow, } from "./index.js"; -const VERSION = "0.1.3"; +const VERSION = "0.1.4"; const USAGE = `profile - signup profile fields (${COLUMNS.join(", ")})