Skip to content

Commit b2aa24f

Browse files
committed
cleanup
1 parent 5ff159e commit b2aa24f

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

addon/ng2/models/find-lazy-modules.ts

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export function findLazyModules(projectRoot: any): string[] {
5656
.forEach(tsPath => {
5757
findLoadChildren(tsPath).forEach(moduleName => {
5858
const fileName = path.resolve(path.dirname(tsPath), moduleName) + '.ts';
59-
console.log(1, fileName);
6059
if (fs.existsSync(fileName)) {
6160
result[moduleName] = true;
6261
}

lib/bootstrap-local.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require.extensions['.ts'] = function(m, filename) {
2424
const source = fs.readFileSync(filename).toString();
2525

2626
try {
27-
const result = ts.transpile(source, compilerOptions, filename);
27+
const result = ts.transpile(source, compilerOptions);
2828

2929
// Send it to node to execute.
3030
return m._compile(result, filename);

packages/ast-tools/src/ast-utils.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,10 @@ export function insertAfterLastOccurrence(nodes: ts.Node[], toInsert: string,
9595

9696

9797
export function getContentOfKeyLiteral(source: ts.SourceFile, node: ts.Node): string {
98-
console.log(10, node.kind, (node as any).text);
9998
if (node.kind == ts.SyntaxKind.Identifier) {
10099
return (node as ts.Identifier).text;
101100
} else if (node.kind == ts.SyntaxKind.StringLiteral) {
102-
const literal = node as ts.StringLiteral;
103-
return literal.text;
101+
return (node as ts.StringLiteral).text;
104102
} else {
105103
return null;
106104
}

tests/acceptance/find-lazy-module.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ describe('find-lazy-module', () => {
3838
afterEach(() => mockFs.restore());
3939

4040
it('works', () => {
41-
debugger;
4241
expect(findLazyModules('project-root')).to.eql([
4342
'moduleA',
4443
'moduleB',

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"outDir": "./dist/",
1010
"rootDir": ".",
1111
"sourceMap": true,
12-
"inlineSourceMap": true,
12+
"sourceRoot": "",
1313
"target": "es5",
1414
"lib": ["es6"],
1515
"baseUrl": "",

0 commit comments

Comments
 (0)