@suffolklitlab/alkiln 4.9.0 → 4.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -40,6 +40,10 @@ Format:
40
40
  -->
41
41
  <!-- ## [Unreleased] -->
42
42
 
43
+ ## [4.9.1] - 2022-09-01
44
+ ### Fixed
45
+ - runtime_config.json gets created when needed when artifacts folder is created. See https://github.com/SuffolkLITLab/ALKiln/issues/600.
46
+
43
47
  ## [4.9.0] - 2022-09-01
44
48
  ### Changed
45
49
  - Allow devs to test an arbitrary interview. See https://github.com/SuffolkLITLab/ALKiln/issues/600.
@@ -147,6 +147,12 @@ const artifacts_path_key = `artifacts_path`;
147
147
  session_vars.save_artifacts_path_name = function ( path_name ) {
148
148
  /* Save a key with the name of the current artifacts folder in case it doesn't exist. */
149
149
 
150
+ // Ensure artifacts path file exists
151
+ if ( !fs.existsSync( runtime_config_path ) ) {
152
+ // If the file doesn't exist, make one because next we need to read it
153
+ fs.writeFileSync( runtime_config_path, JSON.stringify( {}, null, 2 ) );
154
+ }
155
+
150
156
  // Get the json, changing it, and re-write the file from scratch
151
157
  let json = JSON.parse( fs.readFileSync( runtime_config_path ) );
152
158
  json[ artifacts_path_key ] = path_name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suffolklitlab/alkiln",
3
- "version": "4.9.0",
3
+ "version": "4.9.1",
4
4
  "description": "Integrated automated end-to-end testing with docassemble, puppeteer, and cucumber.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {