From 6e0fd4023eb0ddf7f49edbd18b6bf44dea1e946f Mon Sep 17 00:00:00 2001 From: Anton Stoychev Date: Sat, 8 Jul 2023 20:46:45 +0300 Subject: [PATCH] Fix npm package exports --- package.json | 9 +++++++-- src/prerenderer/index.ts | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/prerenderer/index.ts diff --git a/package.json b/package.json index 8dd5bb4..09fecec 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,17 @@ { "name": "prerender-spa-ultra", "license": "MIT", - "version": "1.0.0", + "version": "1.0.1", "description": "Crawls & Pre-renders a site", "main": "dist/prerenderer/prerender.js", "exports": { - ".": "./dist/prerenderer/*" + ".": "./dist/prerenderer/index.js", + "./*": "./dist/prerenderer/*.js" }, + "files": [ + "dist/*", + "src/*" + ], "engines": { "node": ">=16.x <19" }, diff --git a/src/prerenderer/index.ts b/src/prerenderer/index.ts new file mode 100644 index 0000000..0005779 --- /dev/null +++ b/src/prerenderer/index.ts @@ -0,0 +1 @@ +export * from './prerender';