Remove index export (#98)

* Remove index export

* Add export of saleor-app

* Add export of infer webhooks
This commit is contained in:
Lukasz Ostrowski 2022-10-26 10:54:18 +02:00 committed by GitHub
parent f90bb0eb1d
commit 399102375a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 9 deletions

View file

@ -116,10 +116,15 @@
"import": "./handlers/next/index.mjs",
"require": "./handlers/next/index.js"
},
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./index.js"
"./saleor-app": {
"types": "./saleor-app.d.ts",
"import": "./saleor-app.mjs",
"require": "./saleor-app.js"
},
"./infer-webhooks": {
"types": "./infer-webhooks.d.ts",
"import": "./infer-webhooks.mjs",
"require": "./infer-webhooks.js"
}
},
"publishConfig": {

View file

@ -2,11 +2,12 @@ import { defineConfig } from "tsup";
export default defineConfig({
entry: [
/**
* TODO Introduce breaking change and remove exporting from paths, merge everything to index
*/
"src/*",
"src/index.ts",
"src/const.ts",
"src/types.ts",
"src/urls.ts",
"src/headers.ts",
"src/saleor-app.ts",
"src/infer-webhooks.ts",
"src/APL/index.ts",
"src/app-bridge/index.ts",
"src/handlers/next/index.ts",