| Server IP : 185.208.173.17 / Your IP : 87.236.161.98 Web Server : Microsoft-IIS/10.0 System : Windows NT SRV8576125506 10.0 build 26100 (Windows Server 2016) AMD64 User : IUSR ( 0) PHP Version : 7.4.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/parsmega.nuxt/node_modules/rxjs/migrations/update-6_0_0/ |
Upload File : |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var schematics_1 = require("@angular-devkit/schematics");
var tasks_1 = require("@angular-devkit/schematics/tasks");
var rxjsCompatVersion = '^6.0.0-rc.0';
function rxjsV6MigrationSchematic(_options) {
return function (tree, context) {
var pkgPath = '/package.json';
var buffer = tree.read(pkgPath);
if (buffer == null) {
throw new schematics_1.SchematicsException('Could not read package.json');
}
var content = buffer.toString();
var pkg = JSON.parse(content);
if (pkg === null || typeof pkg !== 'object' || Array.isArray(pkg)) {
throw new schematics_1.SchematicsException('Error reading package.json');
}
if (!pkg.dependencies) {
pkg.dependencies = {};
}
pkg.dependencies['rxjs-compat'] = rxjsCompatVersion;
tree.overwrite(pkgPath, JSON.stringify(pkg, null, 2));
context.addTask(new tasks_1.NodePackageInstallTask());
return tree;
};
}
exports.rxjsV6MigrationSchematic = rxjsV6MigrationSchematic;
//# sourceMappingURL=index.js.map