Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor copy API in async/await #1021

Merged
merged 15 commits into from Oct 24, 2023
2 changes: 1 addition & 1 deletion lib/copy/__tests__/copy-broken-symlink.test.js
Expand Up @@ -5,7 +5,7 @@ const os = require('os')
const fse = require('../..')
const path = require('path')
const assert = require('assert')
const copy = require('../copy')
const { copy } = require('../')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to change the import here. lib/copy/copy.js now exports the promise-only API (instead of the callback-only API), while lib/copy/index.js now exports the unified API.


/* global afterEach, beforeEach, describe, it */

Expand Down
2 changes: 1 addition & 1 deletion lib/copy/__tests__/copy-preserve-timestamp.test.js
Expand Up @@ -3,7 +3,7 @@
const fs = require('../../')
const os = require('os')
const path = require('path')
const copy = require('../copy')
const { copy } = require('../')
const utimesSync = require('../../util/utimes').utimesMillisSync
const assert = require('assert')

Expand Down
2 changes: 1 addition & 1 deletion lib/copy/__tests__/ncp/broken-symlink.test.js
Expand Up @@ -3,7 +3,7 @@
const fs = require('fs')
const os = require('os')
const fse = require('../../..')
const ncp = require('../../copy')
const { copy: ncp } = require('../../')
const path = require('path')
const assert = require('assert')

Expand Down
2 changes: 1 addition & 1 deletion lib/copy/__tests__/ncp/ncp-error-perm.test.js
Expand Up @@ -5,7 +5,7 @@
const fs = require('fs')
const os = require('os')
const fse = require('../../..')
const ncp = require('../../copy')
const { copy: ncp } = require('../../')
const path = require('path')
const assert = require('assert')

Expand Down
2 changes: 1 addition & 1 deletion lib/copy/__tests__/ncp/ncp.test.js
@@ -1,7 +1,7 @@
'use strict'

const fs = require('fs')
const ncp = require('../../copy')
const { copy: ncp } = require('../../')
const path = require('path')
const rimraf = require('rimraf')
const assert = require('assert')
Expand Down
2 changes: 1 addition & 1 deletion lib/copy/__tests__/ncp/symlink.test.js
Expand Up @@ -3,7 +3,7 @@
const fs = require('fs')
const os = require('os')
const fse = require('../../..')
const ncp = require('../../copy')
const { copy: ncp } = require('../../')
const path = require('path')
const assert = require('assert')

Expand Down