From 7a58630cdaf69e9830a03ca7c2bc6fecd188a2f0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 25 Jun 2023 16:53:58 -0400 Subject: [PATCH] fix: switch to hybrid building --- .presetterrc.json | 3 ++- npm-shrinkwrap.json | 17 ++++++++++++++--- package.json | 11 ++++++++++- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.presetterrc.json b/.presetterrc.json index 790bbc4..867de34 100644 --- a/.presetterrc.json +++ b/.presetterrc.json @@ -1,6 +1,7 @@ { "preset": [ - "presetter-preset-strict" + "presetter-preset-strict", + "presetter-preset-hybrid" ], "config": { "prettier": { diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index fda1670..cb804c9 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -14,11 +14,9 @@ "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "presetter": "^4.0.1", + "presetter-preset-hybrid": "^4.0.1", "presetter-preset-strict": "^4.0.1", "semantic-release": "^21.0.5" - }, - "peerDependencies": { - "presetter-preset-strict": "workspace:*" } }, "node_modules/@ampproject/remapping": { @@ -15130,6 +15128,19 @@ "typescript": ">=4.7.0" } }, + "node_modules/presetter-preset-hybrid": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/presetter-preset-hybrid/-/presetter-preset-hybrid-4.0.1.tgz", + "integrity": "sha512-0GxC2QrR3cTcRQsP+PwQ+X1O2Fd/rGH2llNqI2CKePbsWZQxRT5YIsW4YsLsC82tkxhyeyrSjzjLS6hsrYf3WA==", + "dev": true, + "dependencies": { + "presetter-types": "4.0.1" + }, + "peerDependencies": { + "presetter": "4.0.1", + "presetter-preset-esm": "4.0.1" + } + }, "node_modules/presetter-preset-strict": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/presetter-preset-strict/-/presetter-preset-strict-4.0.1.tgz", diff --git a/package.json b/package.json index 218e358..0a8549f 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,16 @@ { "name": "@lumeweb/node-library-preset", "version": "0.1.0", - "type": "module", "main": "lib/index.js", + "module": "lib/index.mjs", + "types": "lib/index.d.ts", + "exports": { + ".": { + "require": "./lib/index.js", + "import": "./lib/index.mjs" + }, + "./package.json": "./package.json" + }, "repository": { "type": "git", "url": "gitea@git.lumeweb.com:LumeWeb/node-library-preset.git" @@ -11,6 +19,7 @@ "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "presetter": "^4.0.1", + "presetter-preset-hybrid": "^4.0.1", "presetter-preset-strict": "^4.0.1", "semantic-release": "^21.0.5" },