Skip to content

Commit

Permalink
chore: fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmpinto committed Oct 4, 2024
1 parent f73b5f5 commit c68eee1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions packages/next-on-fleek/bin/index.js

This file was deleted.

10 changes: 5 additions & 5 deletions packages/next-on-fleek/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@fleek-platform/next-on-fleek",
"version": "1.14.1",
"version": "1.14.2",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/src/index.d.ts",
"exports": {
".": {
"import": "./dist/api/index.js",
"types": "./dist/api/index.d.ts"
"import": "./dist/index.js",
"types": "./dist/src/index.d.ts"
},
"./fetch-handler": {
"import": "./dist/fetch-handler/index.js",
Expand All @@ -24,10 +24,10 @@
"types-check": "tsc --noEmit",
"build:types:index": "tsc -p tsconfig.index.json",
"build:types": "npm run build:types:index",
"build": "esbuild --bundle --platform=node ./src/index.ts ./src/api/index.ts --external:esbuild --external:chokidar --external:server-only --outdir=./dist",
"build": "esbuild --bundle --platform=node ./src/index.ts ./src/api/index.ts --external:esbuild --external:chokidar --outdir=./dist",
"build:watch": "npm run build -- --watch=forever",
"build:no-nodejs-compat-error-page": "node ./build-no-nodejs-compat-flag-static-error-page.mjs",
"build:fetch-handler": "esbuild --bundle --platform=browser ./src/fetch-handler/index.ts --external:server-only --outdir=./dist/fetch-handler",
"build:fetch-handler": "esbuild --bundle --platform=browser ./src/fetch-handler/index.ts --outdir=./dist/fetch-handler",
"postbuild": "npm run build:types && npm run build:no-nodejs-compat-error-page && npm run build:fetch-handler",
"prepare": "npm run build",
"test:unit": "npx vitest --config vitest.config.ts"
Expand Down
1 change: 0 additions & 1 deletion packages/next-on-fleek/src/api/getRequestContext.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'server-only';
import dedent from 'dedent-tabs';

declare global {
Expand Down
2 changes: 0 additions & 2 deletions packages/next-on-fleek/src/fetch-handler/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'server-only';

export default {
async fetch() {
throw new Error(
Expand Down

0 comments on commit c68eee1

Please sign in to comment.