diff --git a/lib/cli/utils.ts b/lib/cli/utils.ts index 13cf315..8eb8f37 100644 --- a/lib/cli/utils.ts +++ b/lib/cli/utils.ts @@ -7,9 +7,15 @@ const assert = require('assert'); const glob = require('glob'); const resolve = require('resolve-pkg'); +interface Iterator { + next(value?: any): IteratorResult; + return?(value?: any): IteratorResult; + throw?(e?: any): IteratorResult; +} interface PackageDependencies { - + [Symbol.iterator](): Iterator; } + interface LscSettings { cliDir?: string packageDependencies?: PackageDependencies|string[] diff --git a/lib/commands/app.ts b/lib/commands/app.ts index cb7a538..e50829d 100644 --- a/lib/commands/app.ts +++ b/lib/commands/app.ts @@ -61,6 +61,7 @@ export const create = function () { `${__dirname}/../../templates/common/**`, `${__dirname}/../../templates/${answers.projectType}-package/**` ]) + // the following regex is for ignoring ${} and only use <%= %> for the templates .pipe(template(answers , {'interpolate' : /<%=([\s\S]+?)%>/g})) .pipe(rename(file => { if (file.basename[0] === '_') {