Skip to content

Commit

Permalink
fix: add missing source copy
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Feb 10, 2020
1 parent 615863f commit 0bdefef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions @packages/utils/package.json
Expand Up @@ -37,6 +37,7 @@
"license": "MIT",
"dependencies": {
"execa": "^3.4.0",
"fs-extra": "^8.1.0",
"is-builtin-module": "3.0.0",
"read-pkg": "5.2.0",
"require-from-string": "2.0.2",
Expand All @@ -45,7 +46,8 @@
"yargs": "^15.1.0"
},
"devDependencies": {
"@types/yargs": "^15.0.3",
"@types/tmp": "^0.1.0"
"@types/fs-extra": "^8.0.1",
"@types/tmp": "^0.1.0",
"@types/yargs": "^15.0.3"
}
}
3 changes: 2 additions & 1 deletion @packages/utils/pkg-check.js
@@ -1,6 +1,6 @@
#!/usr/bin/env node
const path = require('path');
const fs = require('fs');
const fs = require('fs-extra');
const zlib = require('zlib');

const execa = require('execa');
Expand Down Expand Up @@ -150,6 +150,7 @@ async function getTarballFiles(source, options) {
unsafeCleanup: true
});
const cwd = tmpDir.name;
await fs.copy(source, cwd);
const tarball = path.join(cwd, 'test-archive.tgz');
await execa('yarn', ['pack', '--filename', tarball], {cwd: source});

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Expand Up @@ -8576,7 +8576,7 @@ resolve@1.1.7:
resolved "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=

resolve@1.x, resolve@^1.1.6, resolve@^1.10.0, resolve@^1.3.2, resolve@^1.8.1, resolve@^1.12.0, resolve@^1.13.1:
resolve@1.x, resolve@^1.1.6, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.3.2, resolve@^1.8.1:
version "1.15.1"
resolved "https://registry.npmjs.org/resolve/-/resolve-1.15.1.tgz#27bdcdeffeaf2d6244b95bb0f9f4b4653451f3e8"
integrity sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==
Expand Down

0 comments on commit 0bdefef

Please sign in to comment.