diff --git a/extensions/chromium/runet-censorship-bypass/package-lock.json b/extensions/chromium/runet-censorship-bypass/package-lock.json index c324680..ab95dbe 100644 --- a/extensions/chromium/runet-censorship-bypass/package-lock.json +++ b/extensions/chromium/runet-censorship-bypass/package-lock.json @@ -2355,6 +2355,12 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" }, + "symlink-to": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/symlink-to/-/symlink-to-0.0.4.tgz", + "integrity": "sha512-l83Ta9ZYKYTK51WMWBBbSgRSIoA+utHzLoEMVSU6+ip/X5zvxXeYCe2xhL2cfeDg0wVyhpPgve6EKfauwtXY6A==", + "dev": true + }, "table": { "version": "3.8.3", "resolved": "https://registry.npmjs.org/table/-/table-3.8.3.tgz", diff --git a/extensions/chromium/runet-censorship-bypass/package.json b/extensions/chromium/runet-censorship-bypass/package.json index 68eea3a..924414b 100644 --- a/extensions/chromium/runet-censorship-bypass/package.json +++ b/extensions/chromium/runet-censorship-bypass/package.json @@ -3,7 +3,6 @@ "version": "0.0.19", "description": "Development tools for chromium extension", "scripts": { - "postinstall": "node --use_strict -e \"const fs = require('fs'), path = 'node_modules/_project-root'; fs.unlink(path, ()=> fs.symlinkSync('..', path, 'dir'));\"", "lint": "eslint ./src/**/*.js --ignore-pattern vendor", "gulp": "gulp", "test": "mocha --recursive ./src/**/test/*", @@ -15,6 +14,7 @@ "author": "Ilya Ig. Petrov", "license": "GPLv3", "devDependencies": { + "symlink-to": "^0.0.4", "chai": "^3.5.0", "eslint": "^3.15.0", "eslint-config-google": "^0.7.1", diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/test/pac-kitchen.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/test/pac-kitchen.js index eceab64..086fbbb 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/test/pac-kitchen.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/test/pac-kitchen.js @@ -1,10 +1,10 @@ 'use strict'; -const Storage = require('_project-root/tools/sinon-storage'); +const Storage = require('symlink-to/project-root/tools/sinon-storage'); const Chai = require('chai'); const Mocha = require('mocha'); -const CachelessRequire = require('_project-root/tools/cacheless-require')(module); +const CachelessRequire = require('symlink-to/project-root/tools/cacheless-require')(module); Mocha.describe('window.apis.pacKitchen', function () { diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/test/utils.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/test/utils.js index afb7341..df99f89 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/test/utils.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/test/utils.js @@ -3,7 +3,7 @@ const Chai = require('chai'); const Mocha = require('mocha'); -const CachelessRequire = require('_project-root/tools/cacheless-require')(module); +const CachelessRequire = require('symlink-to/project-root/tools/cacheless-require')(module); Mocha.describe('window.utils', function () {