Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Sep 11, 2021
1 parent f27af32 commit 177b3f1
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions bin/test-external-partner-project.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/usr/bin/env node

'use strict';

const fs = require('fs');
const path = require('path');

const execa = require('execa');
/* eslint-disable-next-line node/no-extraneous-require */
const debug = require('debug')('test-external');
const rimraf = require('rimraf');
const chalk = require('chalk');
Expand Down Expand Up @@ -126,13 +125,13 @@ function generateTarball() {
}

function insertTarballsToPackageJson(fileLocation) {
const location = require.resolve(fileLocation);
const pkgInfo = JSON.parse(fs.readFileSync(location, 'utf8'));
const thisPkgTarballPath = generateTarball();
pkgInfo.devDependencies['ember-source'] = thisPkgTarballPath;
fs.writeFileSync(location, JSON.stringify(pkgInfo, null, 2));
const location = require.resolve(fileLocation);
const pkgInfo = JSON.parse(fs.readFileSync(location, 'utf8'));

const thisPkgTarballPath = generateTarball();
pkgInfo.devDependencies['ember-source'] = thisPkgTarballPath;

fs.writeFileSync(location, JSON.stringify(pkgInfo, null, 2));
}

try {
Expand Down

0 comments on commit 177b3f1

Please sign in to comment.