scrypt-ts-transpiler
Advanced tools
Comparing version 1.1.3 to 1.1.4
import ts from 'typescript'; | ||
import { PluginConfig, ProgramTransformerExtras } from 'ts-patch'; | ||
/*** | ||
* @ignore | ||
*/ | ||
export default function transformProgram(program: ts.Program, host: ts.CompilerHost | undefined, pluginOptions: any, { ts: tsInstance }: any): ts.Program; | ||
export default function transformProgram(program: ts.Program, host: ts.CompilerHost | undefined, pluginOptions: PluginConfig, { ts: tsInstance }: ProgramTransformerExtras): ts.Program; |
@@ -68,3 +68,5 @@ "use strict"; | ||
} | ||
let transpiler = new transpiler_1.Transpiler(sourceFile, checker, tsRootDir, scryptOutDir, indexer); | ||
const compilerOptions = ctx.getCompilerOptions(); | ||
let watch = compilerOptions.watch || false; | ||
let transpiler = new transpiler_1.Transpiler(sourceFile, checker, tsRootDir, scryptOutDir, indexer, watch); | ||
if (!transpiler.isTransformable()) { | ||
@@ -71,0 +73,0 @@ return sourceFile; |
@@ -49,3 +49,4 @@ import ts from 'typescript'; | ||
_isTranspilingConstructor: boolean; | ||
constructor(sourceFile: ts.SourceFile, checker: ts.TypeChecker, tsRootDir: string, scryptOutDir: string, indexer: IndexerWriter); | ||
_watch: boolean; | ||
constructor(sourceFile: ts.SourceFile, checker: ts.TypeChecker, tsRootDir: string, scryptOutDir: string, indexer: IndexerWriter, watch: boolean); | ||
get ctxMethods(): string[]; | ||
@@ -52,0 +53,0 @@ get missImportedLocalSymbols(): Map<ts.SourceFile, Map<string, ts.Symbol>>; |
{ | ||
"name": "scrypt-ts-transpiler", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "", | ||
@@ -11,3 +11,4 @@ "main": "./dist/index.js", | ||
"pretest": "rimraf tests/artifacts", | ||
"test": "cd tests && mocha" | ||
"test": "cd tests && mocha", | ||
"publish:test": "npm publish --tag test" | ||
}, | ||
@@ -27,4 +28,4 @@ "author": "sCrypt.Inc", | ||
"scryptlib": "^2.1.21", | ||
"typescript": "^5.1.6", | ||
"ts-patch": "^3.0.1" | ||
"ts-patch": "^3.0.1", | ||
"typescript": "^5.1.6" | ||
}, | ||
@@ -41,5 +42,5 @@ "devDependencies": { | ||
"rimraf": "^5.0.1", | ||
"scrypt-ts": "^1.1.0-test.2", | ||
"scrypt-ts": "^1.2.0", | ||
"ts-node": "^10.9.1" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
3203
148568
15