From 2e78b2b4c600bceb9e12a734653cdffaee26d6ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sami=20M=C3=A4kinen?= Date: Wed, 4 Nov 2020 17:31:44 +0200 Subject: [PATCH] Remove common postinstall script --- scripts/copy-cesium.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 scripts/copy-cesium.js diff --git a/scripts/copy-cesium.js b/scripts/copy-cesium.js deleted file mode 100644 index 22807fef94..0000000000 --- a/scripts/copy-cesium.js +++ /dev/null @@ -1,21 +0,0 @@ -const fse = require('fs-extra'); -const cesiumPath = 'node_modules/cesium/Build/Cesium'; -const targetPath = './libraries/Cesium'; - -function copyCesiumToLibs (fromPath) { - fse.copy(fromPath, targetPath, err => { - if (err) return console.error(err); - console.log('Copied Cesium under libraries from ' + fromPath); - }); -} - -fse.pathExists('./' + cesiumPath, function (err, exists) { - if (err) return console.error(err); - if (exists) { - // the "normal" case - copyCesiumToLibs('./' + cesiumPath); - } else { - // try dev-mode path - copyCesiumToLibs('./node_modules/oskari-frontend/' + cesiumPath); - } -});