How to use the @nguniversal/common/schematics/migrations/update-9.version9UpdateRule function in @nguniversal/common

To help you get started, we’ve selected a few @nguniversal/common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github angular / universal / modules / express-engine / schematics / migrations / update-9 / index.ts View on Github external
return async host => {
    if (!getPackageJsonDependency(host, '@nguniversal/express-engine')) {
      throw new SchematicsException('Could not find dependency on @nguniversal/express-engine');
    }

    const collectionPath = require.resolve('../../collection.json');

    return version9UpdateRule(collectionPath);
  };
}
github angular / universal / modules / hapi-engine / schematics / migrations / update-9 / index.ts View on Github external
return async host => {
    if (!getPackageJsonDependency(host, '@nguniversal/hapi-engine')) {
      throw new SchematicsException('Could not find dependency on @nguniversal/hapi-engine');
    }

    const collectionPath = require.resolve('../../collection.json');

    return version9UpdateRule(collectionPath);
  };
}