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/scripts | |
| 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/scripts')
| -rw-r--r-- | extension/scripts/package.js | 6 | 
1 files changed, 6 insertions, 0 deletions
| 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(".."); | 
