steam-theming-utils 3.1.0 → 3.1.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.
@@ -92,19 +92,17 @@ async function doTheThing(page, conn) {
92
92
  }
93
93
  await runCdpFile(path.join("db", `${page}.js`), conn);
94
94
 
95
- const dirPath = path.join(path.basename(process.cwd()), config.classMaps);
96
- const filePath = path.join(dirPath, `${page}.json`);
97
-
98
95
  const output = await runCdpFile("class_modules.js", conn);
99
96
  const [classModules, allModules] = await runWithResult(
100
97
  "[Object.keys(classModules).length, allModules.length]",
101
98
  conn,
102
99
  );
103
100
 
101
+ const filePath = path.join(config.classMaps, `${page}.json`);
104
102
  const content = await prettier.format(JSON.stringify(output), {
105
103
  parser: "json-stringify",
106
104
  });
107
- fs.mkdirSync(dirPath, { recursive: true });
105
+ fs.mkdirSync(config.classMaps, { recursive: true });
108
106
  fs.writeFileSync(filePath, content);
109
107
  console.log("Wrote %s/%s modules to %o", classModules, allModules, filePath);
110
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steam-theming-utils",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "A collection of scripts for easier Steam theming",
5
5
  "repository": {
6
6
  "type": "git",