Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit bc48604

Browse files
Remove package.json from build directory (#349)
1 parent c4d61f2 commit bc48604

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

gulpfile.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,12 @@ gulp.task('test.system.compile', ['compile', 'test.system.copy'], () => {
108108
]);
109109
});
110110

111-
gulp.task('test.packagejson.copy', () => {
112-
return gulp.src(['package.json'])
113-
.pipe(gulp.dest(`${outDir}`));
114-
});
115-
116111
gulp.task('test.unit.copy', () => {
117112
return gulp.src(unitTestsSupportFiles)
118113
.pipe(gulp.dest(`${outDir}/test`));
119114
});
120115

121-
gulp.task('test.unit.compile', ['test.unit.copy', 'test.packagejson.copy', 'compile'], () => {
116+
gulp.task('test.unit.compile', ['test.unit.copy', 'compile'], () => {
122117
const tsResult = gulp.src(unitTests)
123118
.pipe(sourcemaps.init())
124119
.pipe(ts.createProject(tsconfigPath)())

test/test-debuglet.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import * as path from 'path';
2424
import * as assert from 'assert';
2525
import DEFAULT_CONFIG from '../src/agent/config';
2626
(DEFAULT_CONFIG as any).allowExpressions = true;
27-
(DEFAULT_CONFIG as any).workingDirectory = path.join(__dirname, '..');
27+
(DEFAULT_CONFIG as any).workingDirectory = path.join(__dirname, '..', '..');
2828
import {Debuglet} from '../src/agent/debuglet';
2929
import * as dns from 'dns';
3030
import * as extend from 'extend';
@@ -60,13 +60,13 @@ declare type MetadataCallback = (err: Error|null, ob?: any, result?: string) =>
6060
const bp: stackdriver.Breakpoint = {
6161
id: 'test',
6262
action: 'CAPTURE',
63-
location: {path: 'fixtures/foo.js', line: 2}
63+
location: {path: 'build/test/fixtures/foo.js', line: 2}
6464
} as stackdriver.Breakpoint;
6565
// TODO: Have this actually implement Breakpoint.
6666
const errorBp: stackdriver.Breakpoint = {
6767
id: 'testLog',
6868
action: 'FOO',
69-
location: {path: 'fixtures/foo.js', line: 2}
69+
location: {path: 'build/test/fixtures/foo.js', line: 2}
7070
} as any as stackdriver.Breakpoint;
7171

7272
function verifyBreakpointRejection(re: RegExp, body: {breakpoint: any}) {

0 commit comments

Comments
 (0)