Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
fix: iterators and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JamilOmar committed Feb 20, 2020
1 parent 1e9974c commit 097ecf7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ const assert = require('assert');
const glob = require('glob');
const resolve = require('resolve-pkg');

interface Iterator<T> {
next(value?: any): IteratorResult<T>;
return?(value?: any): IteratorResult<T>;
throw?(e?: any): IteratorResult<T>;
}
interface PackageDependencies {

[Symbol.iterator](): Iterator<PackageDependencies>;
}

interface LscSettings {
cliDir?: string
packageDependencies?: PackageDependencies|string[]
Expand Down
1 change: 1 addition & 0 deletions lib/commands/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] === '_') {
Expand Down

0 comments on commit 097ecf7

Please sign in to comment.