Skip to content

Commit a949690

Browse files
chore: remove sub-imports from the project
1 parent d9a420d commit a949690

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devgateway/wp-react-lib": patch
3+
---
4+
5+
Remove sub-imports to remain with the main import

wp-react-lib/package.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,6 @@
6363
"types": "./dist/types/index.d.ts",
6464
"import": "./dist/esm/index.js",
6565
"require": "./dist/cjs/index.js"
66-
},
67-
"./api": {
68-
"types": "./dist/types/api/index.d.ts",
69-
"import": "./dist/esm/api/index.js",
70-
"require": "./dist/cjs/api/index.js"
71-
},
72-
"./hooks": {
73-
"types": "./dist/types/hooks/index.d.ts",
74-
"import": "./dist/esm/hooks/index.js",
75-
"require": "./dist/cjs/hooks/index.js"
7666
}
7767
}
7868
}

wp-react-lib/src/api/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ export const getPages = ({
225225
+ (search ? '&search=' + search : '')
226226
+ (noCache ? '&cacheBust='+((Math.random() + 1).toString(36).substring(7)) : '')
227227
}
228+
console.log("url==>", url);
228229
return get(url) as Promise<PageResponse>
229230
}
230231

0 commit comments

Comments
 (0)