@bamboocss/node 1.51.0 → 1.51.2

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
@@ -2291,6 +2291,7 @@ var BambooContext = class extends _bamboocss_generator.Generator {
2291
2291
  result = encoder.withOwner("extract", file, () => this.project.parseSourceFile(file, encoder));
2292
2292
  this.parseFailures.delete(file);
2293
2293
  } catch (error) {
2294
+ if ((0, _bamboocss_ts_ast.isCompilerGone)(error)) throw error;
2294
2295
  _bamboocss_logger.logger.caughtError("file:extract", `Failed to parse ${file}`, error);
2295
2296
  this.parseFailures.set(file, error);
2296
2297
  }
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { isStaticCompilerActive, markStaticCompilerActive } from "./static-compiler.mjs";
2
2
  import { colors, logger, quote } from "@bamboocss/logger";
3
- import { Node, SyntaxKind, childOf, forEachDescendant, getAliasNode, getDefaultImport, getDescendantsOfKind, getExportDeclarations, getFirstAncestor, getFirstAncestorByKind, getLineAndColumnAtPos, getLiteralText, getModuleSpecifierValue, getNamedImports, getNamespaceImport, isTypeOnly, nameNodeOf, stringLiteralValue, ts } from "@bamboocss/ts-ast";
3
+ import { Node, SyntaxKind, childOf, forEachDescendant, getAliasNode, getDefaultImport, getDescendantsOfKind, getExportDeclarations, getFirstAncestor, getFirstAncestorByKind, getLineAndColumnAtPos, getLiteralText, getModuleSpecifierValue, getNamedImports, getNamespaceImport, isCompilerGone, isTypeOnly, nameNodeOf, stringLiteralValue, ts } from "@bamboocss/ts-ast";
4
4
  import { convertTsPathsToRegexes, diffConfigs, findConfig, loadConfig, mergeHooks } from "@bamboocss/config";
5
5
  import { BambooError, cssVarRefs, groupBy, truncateList, uniq } from "@bamboocss/shared";
6
6
  import { createHash } from "node:crypto";
@@ -2279,6 +2279,7 @@ var BambooContext = class extends Generator {
2279
2279
  result = encoder.withOwner("extract", file, () => this.project.parseSourceFile(file, encoder));
2280
2280
  this.parseFailures.delete(file);
2281
2281
  } catch (error) {
2282
+ if (isCompilerGone(error)) throw error;
2282
2283
  logger.caughtError("file:extract", `Failed to parse ${file}`, error);
2283
2284
  this.parseFailures.set(file, error);
2284
2285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/node",
3
- "version": "1.51.0",
3
+ "version": "1.51.2",
4
4
  "description": "The core css bamboo library",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -61,18 +61,18 @@
61
61
  "pkg-types": "2.3.0",
62
62
  "pluralize": "8.0.0",
63
63
  "ts-pattern": "5.9.0",
64
- "@bamboocss/config": "1.51.0",
65
- "@bamboocss/core": "1.51.0",
66
- "@bamboocss/generator": "1.51.0",
67
- "@bamboocss/logger": "1.51.0",
68
- "@bamboocss/parser": "1.51.0",
69
- "@bamboocss/plugin-svelte": "1.51.0",
70
- "@bamboocss/plugin-vue": "1.51.0",
71
- "@bamboocss/reporter": "1.51.0",
72
- "@bamboocss/shared": "1.51.0",
73
- "@bamboocss/token-dictionary": "1.51.0",
74
- "@bamboocss/ts-ast": "1.51.0",
75
- "@bamboocss/types": "1.51.0"
64
+ "@bamboocss/config": "1.51.2",
65
+ "@bamboocss/core": "1.51.2",
66
+ "@bamboocss/generator": "1.51.2",
67
+ "@bamboocss/logger": "1.51.2",
68
+ "@bamboocss/parser": "1.51.2",
69
+ "@bamboocss/plugin-svelte": "1.51.2",
70
+ "@bamboocss/plugin-vue": "1.51.2",
71
+ "@bamboocss/reporter": "1.51.2",
72
+ "@bamboocss/shared": "1.51.2",
73
+ "@bamboocss/token-dictionary": "1.51.2",
74
+ "@bamboocss/ts-ast": "1.51.2",
75
+ "@bamboocss/types": "1.51.2"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@types/fs-extra": "11.0.4",