From 7f26345a54d62e3e02b9850c103e16083ed7d1f7 Mon Sep 17 00:00:00 2001 From: Albert Ho Date: Fri, 2 Feb 2024 13:01:20 -0800 Subject: [PATCH] fix --- binding/nodejs/copy.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 binding/nodejs/copy.js diff --git a/binding/nodejs/copy.js b/binding/nodejs/copy.js new file mode 100644 index 0000000..3a93153 --- /dev/null +++ b/binding/nodejs/copy.js @@ -0,0 +1,22 @@ +// +// Copyright 2024 Picovoice Inc. +// +// You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE" +// file accompanying this source. +// +// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +// specific language governing permissions and limitations under the License. +// +'use strict'; + +const ncp = require('ncp').ncp; + +console.log('Copying library files...'); + +ncp('../../lib/node', './lib', function (err) { + if (err) { + return console.error(err); + } + console.log('../../lib/node copied.'); +});