Skip to content

Commit

Permalink
chore: use cpy
Browse files Browse the repository at this point in the history
  • Loading branch information
whxaxes committed Feb 17, 2022
1 parent bf00596 commit 186945c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"babel-preset-airbnb": "^1.0.1",
"babel-register": "^6.4.3",
"coffee": "^5.4.0",
"copy-dir": "^1.3.0",
"cpy": "^7.0.0",
"cross-env": "^3.1.3",
"egg": "^2.29.4",
"egg-mock": "^4.1.0",
Expand Down
10 changes: 5 additions & 5 deletions test/ts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
const coffee = require('coffee');
const mm = require('mm');
const fs = require('fs');
const copyDir = require('copy-dir');
const cpy = require('cpy');
const rimraf = require('mz-modules/rimraf');
const exec = require('mz/child_process').exec;
const os = require('os');
Expand Down Expand Up @@ -214,7 +214,7 @@ describe('test/ts.test.js', () => {
await exec('npx cnpm install', { cwd });

// copy egg to node_modules
copyDir.sync(
await cpy(
path.join(__dirname, './fixtures/example-ts-cluster/node_modules/egg'),
path.join(cwd, './node_modules/egg')
);
Expand All @@ -234,7 +234,7 @@ describe('test/ts.test.js', () => {
await exec('npx cnpm install [email protected] --no-save', { cwd });

// copy egg to node_modules
copyDir.sync(
await cpy(
path.join(__dirname, './fixtures/example-ts-cluster/node_modules/egg'),
path.join(cwd, './node_modules/egg')
);
Expand All @@ -256,7 +256,7 @@ describe('test/ts.test.js', () => {
await exec('npx cnpm install [email protected] --no-save', { cwd });

// copy egg to node_modules
copyDir.sync(
await cpy(
path.join(__dirname, './fixtures/example-ts-cluster/node_modules/egg'),
path.join(cwd, './node_modules/egg')
);
Expand Down Expand Up @@ -312,7 +312,7 @@ describe('test/ts.test.js', () => {
await exec('npx cnpm install', { cwd });

// copy egg to node_modules
copyDir.sync(
await cpy(
path.join(__dirname, './fixtures/example-ts-cluster/node_modules/egg'),
path.join(cwd, './node_modules/egg')
);
Expand Down

0 comments on commit 186945c

Please sign in to comment.