Remove index export (#98)
* Remove index export * Add export of saleor-app * Add export of infer webhooks
This commit is contained in:
parent
f90bb0eb1d
commit
399102375a
2 changed files with 15 additions and 9 deletions
13
package.json
13
package.json
|
@ -116,10 +116,15 @@
|
||||||
"import": "./handlers/next/index.mjs",
|
"import": "./handlers/next/index.mjs",
|
||||||
"require": "./handlers/next/index.js"
|
"require": "./handlers/next/index.js"
|
||||||
},
|
},
|
||||||
".": {
|
"./saleor-app": {
|
||||||
"types": "./index.d.ts",
|
"types": "./saleor-app.d.ts",
|
||||||
"import": "./index.mjs",
|
"import": "./saleor-app.mjs",
|
||||||
"require": "./index.js"
|
"require": "./saleor-app.js"
|
||||||
|
},
|
||||||
|
"./infer-webhooks": {
|
||||||
|
"types": "./infer-webhooks.d.ts",
|
||||||
|
"import": "./infer-webhooks.mjs",
|
||||||
|
"require": "./infer-webhooks.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
|
|
@ -2,11 +2,12 @@ import { defineConfig } from "tsup";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
entry: [
|
entry: [
|
||||||
/**
|
"src/const.ts",
|
||||||
* TODO Introduce breaking change and remove exporting from paths, merge everything to index
|
"src/types.ts",
|
||||||
*/
|
"src/urls.ts",
|
||||||
"src/*",
|
"src/headers.ts",
|
||||||
"src/index.ts",
|
"src/saleor-app.ts",
|
||||||
|
"src/infer-webhooks.ts",
|
||||||
"src/APL/index.ts",
|
"src/APL/index.ts",
|
||||||
"src/app-bridge/index.ts",
|
"src/app-bridge/index.ts",
|
||||||
"src/handlers/next/index.ts",
|
"src/handlers/next/index.ts",
|
||||||
|
|
Loading…
Reference in a new issue