File: use_fs_extra_for_cp

package info (click to toggle)
node-unicode-data 0~20220914%2Bgitb601441-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 89,996 kB
  • sloc: javascript: 1,716; makefile: 27; sh: 23
file content (24 lines) | stat: -rw-r--r-- 721 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: use fs-extra's cp instead of using another trivial package we don't have
Author: Julien Puydt
Forwarded: yes

--- a/index.js
+++ b/index.js
@@ -16,7 +16,7 @@
 parsers.parseNames = require('./scripts/parse-names.js');
 parsers.parseNameAliases = require('./scripts/parse-name-aliases.js');
 const extend = utils.extend;
-const cp = require('cp');
+const copySync = require('fs-extra').copySync;
 const jsesc = require('jsesc');
 const template = require('lodash.template');
 
@@ -183,7 +183,7 @@
 		'decode-property-map.js',
 		'decode-ranges.js',
 	].forEach(function(file) {
-		cp.sync(
+		copySync(
 			path.resolve(staticPath, file),
 			path.resolve(__dirname, `output/unicode-${version}/${file}`)
 		);