From 57c2edd087dd91e8072200ac04bc48ecdf05665a Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Sat, 11 Jan 2025 12:36:55 +0100 Subject: [PATCH] fix exports --- index.cjs => builder.cjs | 0 index.mjs => builder.mjs | 0 package.json | 31 ++++++++++++++++--------------- 3 files changed, 16 insertions(+), 15 deletions(-) rename index.cjs => builder.cjs (100%) rename index.mjs => builder.mjs (100%) diff --git a/index.cjs b/builder.cjs similarity index 100% rename from index.cjs rename to builder.cjs diff --git a/index.mjs b/builder.mjs similarity index 100% rename from index.mjs rename to builder.mjs diff --git a/package.json b/package.json index 15e5547..ade2ebd 100644 --- a/package.json +++ b/package.json @@ -2,22 +2,33 @@ "name": "hyperschema", "version": "1.5.0", "description": "Create registries of declarative compact-encoding schemas", - "main": "index.js", "files": [ - "lib/**", - "index.js", + "lib/*.js", + "builder.js", + "builder.cjs", + "runtime.cjs", "runtime.js" ], "exports": { ".": { - "import": "./index.mjs", - "default": "./index.cjs" + "import": "./builder.mjs", + "default": "./builder.cjs" }, "./runtime": { "import": "./runtime.mjs", "default": "./runtime.cjs" } }, + "imports": { + "fs": { + "bare": "bare-fs", + "default": "fs" + }, + "path": { + "bare": "bare-path", + "default": "path" + } + }, "scripts": { "test": "standard && brittle test/index.js", "test:bare": "standard && bare test/index.js" @@ -38,16 +49,6 @@ "generate-object-property": "^2.0.0", "generate-string": "^1.0.1" }, - "imports": { - "fs": { - "bare": "bare-fs", - "default": "fs" - }, - "path": { - "bare": "bare-path", - "default": "path" - } - }, "devDependencies": { "brittle": "^3.7.0", "standard": "^17.1.0",