Skip to content

Commit 7bc0225

Browse files
committed
Use build.resolvePath
1 parent cd28676 commit 7bc0225

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/dev/build/tasks/uuid_verification_task.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@
1717
* under the License.
1818
*/
1919

20-
import { resolve } from 'path';
21-
2220
import { read } from '../lib';
2321

2422
export const UuidVerificationTask = {
2523
description: 'Verify that no UUID file is baked into the build',
2624

2725
async run(config, log, build) {
28-
const buildRoot = build.resolvePath();
29-
const uuidFilePath = resolve(buildRoot, 'data', 'uuid');
26+
const uuidFilePath = build.resolvePath('data', 'uuid');
3027
await read(uuidFilePath).then(
3128
function success() {
3229
throw new Error(`UUID file should not exist at [${uuidFilePath}]`);

0 commit comments

Comments
 (0)