@sealcode/sealgen 0.11.3 → 0.11.4

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.
@@ -13,13 +13,15 @@ async function generateScssIncludes() {
13
13
  const files = await Promise.all((await (0, walk_1.walkDir)(target_locreq.resolve("src/")))
14
14
  .filter((f) => f.endsWith(".scss") &&
15
15
  !f.endsWith("/main.scss") &&
16
+ !f.endsWith("\\main.scss") &&
16
17
  !f.endsWith("/includes.scss") &&
18
+ !f.endsWith("\\includes.scss") &&
17
19
  !f.includes(".#"))
18
20
  .map((fullpath) => (0, path_1.relative)(target_locreq.resolve("src/"), fullpath)));
19
21
  await fs_1.promises.writeFile(target_locreq.resolve("src/includes.scss"), `// DO NOT EDIT! This file is generated automaticaly with npx sealgen generate-scss-includes
20
22
 
21
23
  @import "../node_modules/@sealcode/sealgen/src/forms/forms.scss";
22
- ${files.map((path) => `@import "${path}";`).join("\n")}
24
+ ${files.map((path) => `@import "${path.replaceAll("\\", "/")}";`).join("\n")}
23
25
  `);
24
26
  // eslint-disable-next-line no-console
25
27
  console.log("Successfuly generated new src/includes.scss file");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -12,7 +12,9 @@ export async function generateScssIncludes(): Promise<void> {
12
12
  (f) =>
13
13
  f.endsWith(".scss") &&
14
14
  !f.endsWith("/main.scss") &&
15
+ !f.endsWith("\\main.scss") &&
15
16
  !f.endsWith("/includes.scss") &&
17
+ !f.endsWith("\\includes.scss") &&
16
18
  !f.includes(".#")
17
19
  )
18
20
  .map((fullpath) =>
@@ -25,7 +27,7 @@ export async function generateScssIncludes(): Promise<void> {
25
27
  `// DO NOT EDIT! This file is generated automaticaly with npx sealgen generate-scss-includes
26
28
 
27
29
  @import "../node_modules/@sealcode/sealgen/src/forms/forms.scss";
28
- ${files.map((path) => `@import "${path}";`).join("\n")}
30
+ ${files.map((path) => `@import "${path.replaceAll("\\", "/")}";`).join("\n")}
29
31
  `
30
32
  );
31
33
  // eslint-disable-next-line no-console