diff --git a/assets/tsconfig.json b/assets/tsconfig.json new file mode 100644 index 0000000..e704525 --- /dev/null +++ b/assets/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "target": "es2017", + "module": "commonjs", + "esModuleInterop": true + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 9b63e2a..ad67de4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -61,9 +61,9 @@ } }, "@gitzone/tstest": { - "version": "1.0.23", - "resolved": "https://verdaccio.lossless.one/@gitzone%2ftstest/-/tstest-1.0.23.tgz", - "integrity": "sha512-iP+bCTVV+67MvWwM1l4AfQ0NuLP0xgsf2OTeUICq6I1zHm2bbGr7UuNZ2veBkx3fFb4A2Acs49bs5EkukYMi4Q==", + "version": "1.0.24", + "resolved": "https://verdaccio.lossless.one/@gitzone%2ftstest/-/tstest-1.0.24.tgz", + "integrity": "sha512-HFHLxhXFhhY7nn7H7dxfjy/6WiUGCw35L5Do/ZajCAn/xAWiqnppW1aIp0LOOaWeZ7J5fH7xP88TjsGpwR+MRA==", "dev": true, "requires": { "@gitzone/tsrun": "^1.2.6", @@ -71,7 +71,7 @@ "@pushrocks/smartfile": "^7.0.2", "@pushrocks/smartlog": "^2.0.19", "@pushrocks/smartpromise": "^3.0.2", - "@pushrocks/smartshell": "^2.0.20", + "@pushrocks/smartshell": "^2.0.22", "@types/figures": "^3.0.1", "figures": "^3.0.0" } diff --git a/package.json b/package.json index db8fd48..e79c134 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "devDependencies": { "@gitzone/tsbuild": "^2.0.22", - "@gitzone/tstest": "^1.0.23", + "@gitzone/tstest": "^1.0.24", "@pushrocks/tapbundle": "^3.0.7", "@types/node": "^12.0.2", "tslint": "^5.11.0", diff --git a/ts/tsdoc.classes.typedoc.ts b/ts/tsdoc.classes.typedoc.ts index 533986c..59eff65 100644 --- a/ts/tsdoc.classes.typedoc.ts +++ b/ts/tsdoc.classes.typedoc.ts @@ -23,7 +23,7 @@ export class TypeDoc { public async compile() { await this.smartshellInstance.exec( - `typedoc --module "commonjs" --target "ES2016" --out public/ ts/` + `typedoc --tsconfig ${paths.tsconfigFile} --out public/ ts/` ); } } diff --git a/ts/tsdoc.paths.ts b/ts/tsdoc.paths.ts index 43af5ee..3af2c3b 100644 --- a/ts/tsdoc.paths.ts +++ b/ts/tsdoc.paths.ts @@ -1,6 +1,11 @@ import * as plugins from './tsdoc.plugins'; +// dirs export const packageDir = plugins.path.join(__dirname, '../'); export const cwd = process.cwd(); export const binDir = plugins.path.join(packageDir, './node_modules/.bin'); +export const assetsDir = plugins.path.join(packageDir, './assets'); export const publicDir = plugins.path.join(packageDir, './public'); + +// files +export const tsconfigFile = plugins.path.join(assetsDir, './tsconfig.json'); \ No newline at end of file