@bamboocss/parser 1.37.1 → 1.37.3

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/dist/index.cjs CHANGED
@@ -1490,7 +1490,11 @@ var Project = class {
1490
1490
  };
1491
1491
  createSourceFiles = () => {
1492
1492
  const files = this.getFiles();
1493
- for (const file of files) this.createSourceFile(file);
1493
+ for (const file of files) try {
1494
+ this.createSourceFile(file);
1495
+ } catch (error) {
1496
+ if (error?.code !== "ENOENT") throw error;
1497
+ }
1494
1498
  };
1495
1499
  addSourceFile = (filePath, content) => {
1496
1500
  this.invalidate(!(filePath.includes("/") && this.project.getSourceFile(filePath)));
package/dist/index.mjs CHANGED
@@ -1489,7 +1489,11 @@ var Project = class {
1489
1489
  };
1490
1490
  createSourceFiles = () => {
1491
1491
  const files = this.getFiles();
1492
- for (const file of files) this.createSourceFile(file);
1492
+ for (const file of files) try {
1493
+ this.createSourceFile(file);
1494
+ } catch (error) {
1495
+ if (error?.code !== "ENOENT") throw error;
1496
+ }
1493
1497
  };
1494
1498
  addSourceFile = (filePath, content) => {
1495
1499
  this.invalidate(!(filePath.includes("/") && this.project.getSourceFile(filePath)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/parser",
3
- "version": "1.37.1",
3
+ "version": "1.37.3",
4
4
  "description": "The static parser for bamboo css",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -34,17 +34,17 @@
34
34
  "dependencies": {
35
35
  "ts-morph": "28.0.0",
36
36
  "ts-pattern": "5.9.0",
37
- "@bamboocss/config": "^1.37.1",
38
- "@bamboocss/core": "^1.37.1",
39
- "@bamboocss/extractor": "1.37.1",
40
- "@bamboocss/logger": "1.37.1",
41
- "@bamboocss/shared": "1.37.1",
42
- "@bamboocss/types": "1.37.1"
37
+ "@bamboocss/config": "^1.37.3",
38
+ "@bamboocss/core": "^1.37.3",
39
+ "@bamboocss/extractor": "1.37.3",
40
+ "@bamboocss/logger": "1.37.3",
41
+ "@bamboocss/shared": "1.37.3",
42
+ "@bamboocss/types": "1.37.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@bamboocss/generator": "1.37.1",
46
- "@bamboocss/plugin-svelte": "1.37.1",
47
- "@bamboocss/plugin-vue": "1.37.1"
45
+ "@bamboocss/generator": "1.37.3",
46
+ "@bamboocss/plugin-svelte": "1.37.3",
47
+ "@bamboocss/plugin-vue": "1.37.3"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsdown src/index.ts --format=esm,cjs --dts",