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

Commit

Permalink
chore: Ignore .env files
Browse files Browse the repository at this point in the history
  • Loading branch information
EndyKaufman committed Jul 16, 2018
1 parent 7f6fa00 commit 6a81ef8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/entity/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('entity', () => {
}, Tree.empty());
tree.getDir('')
.visit(filePath => {
if (basename(filePath) !== 'index.ts' && basename(filePath) !== 'package.json') {
if (basename(filePath) !== 'index.ts' && basename(filePath) !== 'package.json' && basename(filePath) !== '.env') {
const content = tree.readContent(filePath);
const existsContent = readFileSync(
join(rootPath, filePath)
Expand Down
4 changes: 2 additions & 2 deletions src/new/index_spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import { readFileSync } from 'fs';
import { join, basename } from 'path';
import { basename, join } from 'path';


// SchematicTestRunner needs an absolute path to the collection to test.
Expand All @@ -20,7 +20,7 @@ describe('new', () => {
}, Tree.empty());
tree.getDir('')
.visit(filePath => {
if (basename(filePath) !== 'index.ts' && basename(filePath) !== 'package.json') {
if (basename(filePath) !== 'index.ts' && basename(filePath) !== 'package.json' && basename(filePath) !== '.env') {
const content = tree.readContent(filePath);
const existsContent = readFileSync(
join(rootPath, filePath)
Expand Down

0 comments on commit 6a81ef8

Please sign in to comment.