From 9e28f8355a345f3eb46fddd0e856e5cbe2131a02 Mon Sep 17 00:00:00 2001 From: Marco Link Date: Wed, 28 Feb 2024 08:20:19 +0100 Subject: [PATCH 1/2] fix: exporting modules --- src/{stories => components}/ContentfulDebugComponent.tsx | 0 src/index.ts | 9 ++++++++- src/stories/DebugComponent.stories.tsx | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) rename src/{stories => components}/ContentfulDebugComponent.tsx (100%) diff --git a/src/stories/ContentfulDebugComponent.tsx b/src/components/ContentfulDebugComponent.tsx similarity index 100% rename from src/stories/ContentfulDebugComponent.tsx rename to src/components/ContentfulDebugComponent.tsx diff --git a/src/index.ts b/src/index.ts index a65711c..96fd10a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,9 @@ // make it work with --isolatedModules -export default {}; \ No newline at end of file +export default {}; + +export {withLivePreview} from './withLivePreview' +export {withContentful} from './withContentful' +export {withEntryArgMutator} from './withEntryArgMutator' +export {ContentfulDebugComponent} from './components/ContentfulDebugComponent' +export * from './manager' +export * from './preview' \ No newline at end of file diff --git a/src/stories/DebugComponent.stories.tsx b/src/stories/DebugComponent.stories.tsx index 359db20..6f76245 100644 --- a/src/stories/DebugComponent.stories.tsx +++ b/src/stories/DebugComponent.stories.tsx @@ -1,6 +1,6 @@ import type {Meta} from '@storybook/react'; import {StoryObj} from "@storybook/react"; -import {ContentfulDebugComponent} from "./ContentfulDebugComponent"; +import {ContentfulDebugComponent} from "../components/ContentfulDebugComponent"; import {withEntryArgMutator} from "../withEntryArgMutator"; const meta = { From be55892eb37f96359ad44461bbcc3ffbbca4aa24 Mon Sep 17 00:00:00 2001 From: Marco Link Date: Wed, 28 Feb 2024 08:26:06 +0100 Subject: [PATCH 2/2] fix: remove default export --- package-lock.json | 64 +++++++++++++++++++++++------------------------ package.json | 2 +- src/index.ts | 2 +- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/package-lock.json b/package-lock.json index 983cfd9..701528d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@types/react": "^17.0.75", "@types/react-dom": "^17.0.25", "@vitejs/plugin-react": "^4.2.1", - "auto": "^11.0.4", + "auto": "^11.0.5", "boxen": "^7.1.1", "dedent": "^1.5.1", "npm-run-all": "^4.1.5", @@ -63,21 +63,21 @@ } }, "node_modules/@auto-it/bot-list": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/@auto-it/bot-list/-/bot-list-11.0.4.tgz", - "integrity": "sha512-f3w9UZ655MLiELUQP28K9Gceptf2vvKdKVRzh2b2ST+PG/srmoxCnHgE/TO9afW7NiuUA1h+hQVyIb0eQ9VSfQ==", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/@auto-it/bot-list/-/bot-list-11.1.1.tgz", + "integrity": "sha512-uKZ08KC9FUjMBYqiizZ3VlXyEAeRHEAJaeNMqQFPi0jFKRtX/Dm4tAhDXqfQeuOuAsUHNh5Pp+4zOX2RmTPZaA==", "dev": true, "engines": { "node": ">=10.x" } }, "node_modules/@auto-it/core": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/@auto-it/core/-/core-11.0.4.tgz", - "integrity": "sha512-oYIByeGeuiM0MhWibbj3Y4Vj8p5Kt1n4g0hKL7Zu7oFlKmAjsZlwbH4z0wEjVTdK2+Eqg2/I1Dj/GgkiSriXgg==", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/@auto-it/core/-/core-11.1.1.tgz", + "integrity": "sha512-CIQYqJG/pXmWsQjgbjMF6qnwAu7Klrpm5fWHrXpzIEq/3qQfgGmTkauuJRSz9bM5z6pHHCjT1eypVV/EDj9ijg==", "dev": true, "dependencies": { - "@auto-it/bot-list": "11.0.4", + "@auto-it/bot-list": "11.1.1", "@endemolshinegroup/cosmiconfig-typescript-loader": "^3.0.2", "@octokit/core": "^3.5.1", "@octokit/plugin-enterprise-compatibility": "1.3.0", @@ -199,13 +199,13 @@ "dev": true }, "node_modules/@auto-it/npm": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/@auto-it/npm/-/npm-11.0.4.tgz", - "integrity": "sha512-7sKGswdhQZ0/EryFhMU8DZV/hKZSZTOhJnNTXBtCGRk7oLjRHjt6XVOWCMOMOCNO/wVn5k5r52DbhAy5V4i0GQ==", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/@auto-it/npm/-/npm-11.1.1.tgz", + "integrity": "sha512-I7qWPdU2goCmqdvAEpa6yGwQmzx5YXEsZywqs6uTQXIDuGbFzNt/7jwJNt8p/MNE8M0ra8FJ05eHavBLFZuEfg==", "dev": true, "dependencies": { - "@auto-it/core": "11.0.4", - "@auto-it/package-json-utils": "11.0.4", + "@auto-it/core": "11.1.1", + "@auto-it/package-json-utils": "11.1.1", "await-to-js": "^3.0.0", "endent": "^2.1.0", "env-ci": "^5.0.1", @@ -260,9 +260,9 @@ "dev": true }, "node_modules/@auto-it/package-json-utils": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/@auto-it/package-json-utils/-/package-json-utils-11.0.4.tgz", - "integrity": "sha512-Y84CW2QSL1TXkc4cVajODhRFFixDhOGX4JBS/ic3TgeJ94h6QH0Q8so+FxzPwBDWGXmUdLsj8fY/A3n0X09lqA==", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/@auto-it/package-json-utils/-/package-json-utils-11.1.1.tgz", + "integrity": "sha512-hk6wKuP7fPonXnP/blPHYS4iQaKZ6s+dVBRPSW7pjWZv6H/A131mWVSQC59nhe8lqZhbQ2MrDH4xxfhYnq21sA==", "dev": true, "dependencies": { "parse-author": "^2.0.0", @@ -273,13 +273,13 @@ } }, "node_modules/@auto-it/released": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/@auto-it/released/-/released-11.0.4.tgz", - "integrity": "sha512-BfzCr+rJvONgw5EtsmTfoPtjm7C6Yo+vKDiXtI82EctLfUuADV/wCE/zj5e1nACsELpqhqWfgLySvDu1n6bn6g==", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/@auto-it/released/-/released-11.1.1.tgz", + "integrity": "sha512-iRUebl2q5V7hFEgScGVUMUVoOXrFFi5O280hUCpZxmd6kkG2v7Kl+Weii5zKpd7YSqG0HibJCD+LVwPClAfrCA==", "dev": true, "dependencies": { - "@auto-it/bot-list": "11.0.4", - "@auto-it/core": "11.0.4", + "@auto-it/bot-list": "11.1.1", + "@auto-it/core": "11.1.1", "deepmerge": "^4.0.0", "fp-ts": "^2.5.3", "io-ts": "^2.1.2", @@ -293,12 +293,12 @@ "dev": true }, "node_modules/@auto-it/version-file": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/@auto-it/version-file/-/version-file-11.0.4.tgz", - "integrity": "sha512-esKwslQPsPjFC96m0lI/MJI12OFjH92KXtVaQEguGIIXAhs7iop9+y5vLXjOtgNOFVBvk/FKTFItq2mV587aiA==", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/@auto-it/version-file/-/version-file-11.1.1.tgz", + "integrity": "sha512-KHKunip2nXWKd7zJ0hdALojY+E6sTdmxuq9SXYgTMXUcZw2BtxunVSK1hb2wmS6iUH4CCILk12dHksAO5BFzeQ==", "dev": true, "dependencies": { - "@auto-it/core": "11.0.4", + "@auto-it/core": "11.1.1", "fp-ts": "^2.5.3", "io-ts": "^2.1.2", "semver": "^7.0.0", @@ -6496,15 +6496,15 @@ } }, "node_modules/auto": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/auto/-/auto-11.0.4.tgz", - "integrity": "sha512-jDe95fpOHZXRDe0HJMH1FvTrU0f3rXbee0eqNIAR2mB9EcdiWQTj1aF56R/xPyGLxF9y3WXzu38DgiIX9sjoDg==", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/auto/-/auto-11.1.1.tgz", + "integrity": "sha512-mOucdDWMjtuBDH8phH9Z0s1dD4uFrFIhYQ/Zh4wCH2uB3eEf8qZbu20DLOWCfj1zEUU2gxqVAuqJD4OyLWvaSQ==", "dev": true, "dependencies": { - "@auto-it/core": "11.0.4", - "@auto-it/npm": "11.0.4", - "@auto-it/released": "11.0.4", - "@auto-it/version-file": "11.0.4", + "@auto-it/core": "11.1.1", + "@auto-it/npm": "11.1.1", + "@auto-it/released": "11.1.1", + "@auto-it/version-file": "11.1.1", "await-to-js": "^3.0.0", "chalk": "^4.0.0", "command-line-application": "^0.10.1", diff --git a/package.json b/package.json index 3f77664..8f0a615 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "@types/react": "^17.0.75", "@types/react-dom": "^17.0.25", "@vitejs/plugin-react": "^4.2.1", - "auto": "^11.0.4", + "auto": "^11.0.5", "boxen": "^7.1.1", "dedent": "^1.5.1", "npm-run-all": "^4.1.5", diff --git a/src/index.ts b/src/index.ts index 96fd10a..b6a467f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ // make it work with --isolatedModules -export default {}; +// export default {}; export {withLivePreview} from './withLivePreview' export {withContentful} from './withContentful'