@anatine/esbuild-decorators
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "@anatine/esbuild-decorators", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Esbuild plugin for Nx to handle emitDecoratorMetadata", | ||
@@ -36,5 +36,5 @@ "repository": { | ||
"peerDependencies": { | ||
"esbuild": "^0.9.6" | ||
"esbuild": "^0.9.7" | ||
}, | ||
"typings": "src/index.d.ts" | ||
} |
@@ -0,1 +1,2 @@ | ||
import type { Plugin } from 'esbuild'; | ||
export interface EsbuildDecoratorsOptions { | ||
@@ -7,5 +8,2 @@ tsconfig?: string; | ||
} | ||
export declare const esbuildDecorators: (options?: EsbuildDecoratorsOptions) => { | ||
name: string; | ||
setup(build: any): void; | ||
}; | ||
export declare const esbuildDecorators: (options?: EsbuildDecoratorsOptions) => Plugin; |
@@ -15,7 +15,9 @@ "use strict"; | ||
setup(build) { | ||
var _a, _b, _c, _d, _e; | ||
var _a, _b, _c; | ||
const cwd = options.cwd || process.cwd(); | ||
const tsconfigPath = (_c = (_a = options.tsconfig) !== null && _a !== void 0 ? _a : (_b = build.initialOptions) === null || _b === void 0 ? void 0 : _b.tsconfig) !== null && _c !== void 0 ? _c : path_1.join(cwd, './tsconfig.json'); | ||
const forceTsc = (_d = options.force) !== null && _d !== void 0 ? _d : false; | ||
const tsx = (_e = options.tsx) !== null && _e !== void 0 ? _e : true; | ||
const tsconfigPath = options.tsconfig || | ||
((_a = build.initialOptions) === null || _a === void 0 ? void 0 : _a.tsconfig) || | ||
path_1.join(cwd, './tsconfig.json'); | ||
const forceTsc = (_b = options.force) !== null && _b !== void 0 ? _b : false; | ||
const tsx = (_c = options.tsx) !== null && _c !== void 0 ? _c : true; | ||
let parsedTsConfig = null; | ||
@@ -22,0 +24,0 @@ build.onLoad({ filter: tsx ? /\.tsx?$/ : /\.ts$/ }, (args) => tslib_1.__awaiter(this, void 0, void 0, function* () { |
Sorry, the diff of this file is not supported yet
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
21248