File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 "import" : " ./dist/vanilla/index.js"
2020 }
2121 },
22- "version" : " 0.4.47 " ,
22+ "version" : " 0.4.48 " ,
2323 "license" : " MIT" ,
2424 "homepage" : " https://github.com/devflowinc/trieve/tree/main/clients/search-component" ,
2525 "scripts" : {
8383 "react-scan" : " ^0.3.2" ,
8484 "react-snap-carousel" : " ^0.5.0" ,
8585 "tailwind-merge" : " ^3.0.2" ,
86- "trieve-ts-sdk" : " ^0.0.68 "
86+ "trieve-ts-sdk" : " ^0.0.69 "
8787 },
8888 "peerDependencies" : {
8989 "react" : " ^18.3.1 || ^19.0.0-rc" ,
Original file line number Diff line number Diff line change 11const { build } = require ( "esbuild" ) ;
2+ const path = require ( 'path' ) ;
23
34const doBuild = async ( ) => {
45 const reactBuild = await build ( {
@@ -12,6 +13,9 @@ const doBuild = async () => {
1213 format : "esm" ,
1314 target : [ "es2020" ] ,
1415 external : [ "react" , "react-dom" ] ,
16+ define : {
17+ __dirname : JSON . stringify ( path . resolve ( ) )
18+ }
1519 } ) ;
1620
1721 const vanillaJsBuild = await build ( {
@@ -24,6 +28,9 @@ const doBuild = async () => {
2428 minify : true ,
2529 format : "esm" ,
2630 target : [ "es2020" ] ,
31+ define : {
32+ __dirname : JSON . stringify ( path . resolve ( ) )
33+ }
2734 } ) ;
2835} ;
2936
Original file line number Diff line number Diff line change 1717 "files" : [
1818 " dist"
1919 ],
20- "version" : " 0.0.68 " ,
20+ "version" : " 0.0.69 " ,
2121 "license" : " MIT" ,
2222 "scripts" : {
2323 "lint" : " eslint 'src/**/*.ts'" ,
You can’t perform that action at this time.
0 commit comments