copy funct is made OS independent with ncp module
MODIFY
package.json
package.json
"components:export": "node src/componentsExport.js",
"start": "npm run start:prod",
"prestart": "npm run build:prod",
- "config:batch": "copy .\\src\\assets\\ev-scp-config\\e-Mobility-config\\config_batch_server.json .\\src\\assets\\config.json",
- "config:oData": "copy .\\src\\assets\\ev-scp-config\\e-Mobility-config\\config_odata_server.json .\\src\\assets\\config.json",
- "config:fakerest": "copy .\\src\\assets\\ev-scp-config\\e-Mobility-config\\config_fake_rest_server.json .\\src\\assets\\config.json",
- "config:ocpi": "copy .\\src\\assets\\ev-scp-config\\e-Mobility-config\\config_ocpi_server.json .\\src\\assets\\config.json",
- "config:rest": "copy .\\src\\assets\\ev-scp-config\\e-Mobility-config\\config_rest_server.json .\\src\\assets\\config.json",
- "config:chargebox-json": "copy .\\src\\assets\\ev-scp-config\\e-Mobility-config\\config_chargebox_json_server.json .\\src\\assets\\config.json",
- "config:chargebox-soap": "copy .\\src\\assets\\ev-scp-config\\e-Mobility-config\\config_chargebox_soap_server.json .\\src\\assets\\config.json",
+ "config:batch": "ncp src/assets/ev-scp-config/e-Mobility-config/config_batch_server.json src/assets/config.json",
+ "config:oData": "ncp src/assets/ev-scp-config/e-Mobility-config/config_odata_server.json src/assets/config.json",
+ "config:fakerest": "ncp src/assets/ev-scp-config/e-Mobility-config/config_fake_rest_server.json src/assets/config.json",
+ "config:ocpi": "ncp src/assets/ev-scp-config/e-Mobility-config/config_ocpi_server.json src/assets/config.json",
+ "config:rest": "ncp src/assets/ev-scp-config/e-Mobility-config/config_rest_server.json src/assets/config.json",
+ "config:chargebox-json": "ncp src/assets/ev-scp-config/e-Mobility-config/config_chargebox_json_server.json src/assets/config.json",
+ "config:chargebox-soap": "ncp src/assets/ev-scp-config/e-Mobility-config/config_chargebox_soap_server.json src/assets/config.json",
"start:dev": "npm run components:export && cross-env NODE_ENV=development ts-node-dev --files --max-old-space-size=4096 -- src/start.ts",
"start:dev:debug": "npm run components:export && cross-env NODE_ENV=development ts-node-dev --inspect --files --max-old-space-size=4096 -- src/start.ts",
"start:dev:nodemon": "npm run components:export && nodemon --exec 'ts-node --files' src/start.ts",
"mocha": "^8.2.1",
"mocha-parallel-tests": "^2.3.0",
"mochawesome": "^6.2.1",
+ "ncp": "^2.0.0",
"node-notifier": "^8.0.0",
"nodemon": "^2.0.6",
"npm-check": "^5.9.2",

copy funct is made OS independent with ncp module