Skip to content

Commit 43c68d6

Browse files
cdxkerfedhacks
authored andcommitted
bugfix: remove __dirname from trieve-search-component dist/
1 parent 8b5fd95 commit 43c68d6

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

clients/search-component/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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": {
@@ -83,7 +83,7 @@
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",

clients/search-component/scripts/build.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { build } = require("esbuild");
2+
const path = require('path');
23

34
const 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

clients/ts-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
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'",

0 commit comments

Comments
 (0)