diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-10 10:47:09 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-10 10:47:09 -0700 |
commit | 19acf3bb36c1e44274297c806b89b589ca02f5ba (patch) | |
tree | e04f9792f8adb17c219f6dd98bdcba54872ef41b /extension | |
parent | ee4701dc45cd540728302ca8a09e9b7ce842597f (diff) | |
download | sncontinue-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.tsx | 3 | ||||
-rw-r--r-- | extension/scripts/package.js | 6 |
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(".."); |