@travetto/transformer
Advanced tools
Comparing version 4.0.0-rc.2 to 4.0.0-rc.3
{ | ||
"name": "@travetto/transformer", | ||
"version": "4.0.0-rc.2", | ||
"version": "4.0.0-rc.3", | ||
"description": "Functionality for AST transformations, with transformer registration, and general utils", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@travetto/manifest": "^4.0.0-rc.2", | ||
"@travetto/manifest": "^4.0.0-rc.3", | ||
"tslib": "^2.6.2", | ||
@@ -30,0 +30,0 @@ "typescript": "^5.3.3" |
@@ -68,3 +68,4 @@ import ts from 'typescript'; | ||
const typeFlags = type.getFlags(); | ||
if (objFlags || typeFlags !== 1) { | ||
// eslint-disable-next-line no-bitwise | ||
if (!(objFlags & (ts.SymbolFlags.Type | ts.SymbolFlags.Interface)) || !(typeFlags & ts.TypeFlags.Any)) { | ||
newBindings.push(el); | ||
@@ -71,0 +72,0 @@ } |
@@ -82,3 +82,3 @@ import ts from 'typescript'; | ||
const type = ManifestModuleUtil.getFileType(file.fileName); | ||
if (type !== 'ts') { // Skip all non-ts files | ||
if (type !== 'ts' || /^\/\/\s*@trv-no-transform/.test(file.getFullText())) { // Skip all non-ts files | ||
return file; | ||
@@ -85,0 +85,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94007
2363