New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ng-doc/add

Package Overview
Dependencies
Maintainers
1
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ng-doc/add - npm Package Compare versions

Comparing version 16.18.0-beta.1 to 16.18.0

schematics/ng-add/utils/get-main-path.d.ts

2

package.json
{
"name": "@ng-doc/add",
"version": "16.18.0-beta.1",
"version": "16.18.0",
"type": "commonjs",

@@ -5,0 +5,0 @@ "schematics": "./schematics/collection.json",

@@ -22,3 +22,3 @@ "use strict";

glob: '**/*',
input: `.ng-doc/${options.project}/assets`,
input: `ng-doc/${options.project}/assets`,
output: 'assets/ng-doc',

@@ -25,0 +25,0 @@ },

@@ -22,3 +22,3 @@ "use strict";

}
tree.overwrite('.gitignore', `${gitignore}\n\n# NgDoc files\n.ng-doc`);
tree.overwrite('.gitignore', `${gitignore}\n\n# NgDoc files\n/ng-doc`);
logger.info('✅ Done!');

@@ -25,0 +25,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addNgDocAppConfig = void 0;
const schematics_1 = require("@angular/cdk/schematics");
const workspace_1 = require("@schematics/angular/utility/workspace");

@@ -11,2 +10,3 @@ const ng_morph_1 = require("ng-morph");

const get_app_component_1 = require("../utils/get-app-component");
const get_main_path_1 = require("../utils/get-main-path");
const get_project_1 = require("../utils/get-project");

@@ -29,8 +29,8 @@ /**

}
const buildOptions = (0, schematics_1.getProjectTargetOptions)(project, 'build');
const mainPath = (0, get_main_path_1.getMainPath)(project);
(0, ng_morph_1.setActiveProject)((0, ng_morph_1.createProject)(tree, '/', ['**/*.ts', '**/*.json']));
const bootstrapApplicationFn = (0, ng_morph_1.getBootstrapApplicationFn)(buildOptions['main']);
const bootstrapFn = (0, ng_morph_1.getBootstrapFn)(buildOptions['main']);
const bootstrapApplicationFn = (0, ng_morph_1.getBootstrapApplicationFn)(mainPath);
const bootstrapFn = (0, ng_morph_1.getBootstrapFn)(mainPath);
if (bootstrapApplicationFn) {
const appComponent = (0, get_app_component_1.getAppComponent)(tree, buildOptions['main']);
const appComponent = (0, get_app_component_1.getAppComponent)(tree, mainPath);
if (!appComponent) {

@@ -56,3 +56,3 @@ logger.error(`❌ Could not find the root component. Please configure your application manually.`);

else if (bootstrapFn) {
const mainModule = (0, ng_morph_1.getMainModule)(buildOptions['main']);
const mainModule = (0, ng_morph_1.getMainModule)(mainPath);
if (!mainModule) {

@@ -59,0 +59,0 @@ logger.error(`❌ Could not find the root module. Please configure your application manually.`);

@@ -56,4 +56,4 @@ "use strict";

if (paths || !ext) {
json.modify(['compilerOptions', 'paths', `${modules_1.GENERATED_PATH}`], [`.ng-doc/${projectName}/index.ts`]);
json.modify(['compilerOptions', 'paths', `${modules_1.GENERATED_PATH}/*`], [`.ng-doc/${projectName}/*`]);
json.modify(['compilerOptions', 'paths', `${modules_1.GENERATED_PATH}`], [`ng-doc/${projectName}/index.ts`]);
json.modify(['compilerOptions', 'paths', `${modules_1.GENERATED_PATH}/*`], [`ng-doc/${projectName}/*`]);
}

@@ -60,0 +60,0 @@ else if (ext) {

@@ -25,6 +25,6 @@ "use strict";

if (buildTarget) {
buildTarget.builder = '@ng-doc/builder:browser';
buildTarget.builder = '@ng-doc/builder:application';
}
else {
logger.error(`❌ "build" target was not found, please add "@ng-doc/builder:browser" builder manually.`);
logger.error(`❌ "build" target was not found, please add "@ng-doc/builder:application" builder manually.`);
}

@@ -31,0 +31,0 @@ if (serveTarget) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc