summaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-10 10:47:09 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-10 10:47:09 -0700
commit19acf3bb36c1e44274297c806b89b589ca02f5ba (patch)
treee04f9792f8adb17c219f6dd98bdcba54872ef41b /extension
parentee4701dc45cd540728302ca8a09e9b7ce842597f (diff)
downloadsncontinue-19acf3bb36c1e44274297c806b89b589ca02f5ba.tar.gz
sncontinue-19acf3bb36c1e44274297c806b89b589ca02f5ba.tar.bz2
sncontinue-19acf3bb36c1e44274297c806b89b589ca02f5ba.zip
fix: :green_heart: testing for failure to package dist in vsix
Diffstat (limited to 'extension')
-rw-r--r--extension/react-app/src/components/ComboBox.tsx3
-rw-r--r--extension/scripts/package.js6
2 files changed, 8 insertions, 1 deletions
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx
index 472e1b14..bf32fc5a 100644
--- a/extension/react-app/src/components/ComboBox.tsx
+++ b/extension/react-app/src/components/ComboBox.tsx
@@ -479,7 +479,8 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
selected={downshiftProps.selectedItem === item}
>
<span>
- {item.name}:{" "}
+ {item.name}
+ {" "}
<span style={{ color: lightGray }}>{item.description}</span>
</span>
</Li>
diff --git a/extension/scripts/package.js b/extension/scripts/package.js
index ae9a4d94..e36df029 100644
--- a/extension/scripts/package.js
+++ b/extension/scripts/package.js
@@ -17,6 +17,12 @@ exec("npm install", (error) => {
exec("npm run build", (error) => {
if (error) throw error;
+ if (!fs.existsSync(path.join("dist", "assets", "index.js"))) {
+ throw new Error("react-app build did not produce index.js");
+ }
+ if (!fs.existsSync(path.join("dist", "assets", "index.css"))) {
+ throw new Error("react-app build did not produce index.css");
+ }
console.log("npm run build in react-app completed");
process.chdir("..");