@nstudio/xplat-utils
Advanced tools
Comparing version 10.3.9 to 11.0.0-rc.0
@@ -10,5 +10,5 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./src/utils"), exports); |
{ | ||
"name": "@nstudio/xplat-utils", | ||
"version": "10.3.9", | ||
"version": "11.0.0-rc.0", | ||
"description": "Utilities for xplat tooling.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://nstudio.io/xplat", |
@@ -10,5 +10,5 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./utils"), exports); |
@@ -23,5 +23,4 @@ import type { FrameworkTypes, PlatformNxExtraTypes, PlatformTypes, PlatformWithNxTypes } from './types'; | ||
export declare function getRootTsConfigPath(): string; | ||
export declare function checkRootTsConfig(tree: Tree): import("@angular-devkit/schematics/src/tree/interface").Tree; | ||
export declare function getAppPaths(tree: Tree, type?: PlatformTypes): Array<string>; | ||
export declare function prerun(options?: any, init?: boolean): (tree: Tree) => import("@angular-devkit/schematics/src/tree/interface").Tree; | ||
export declare function sanitizeCommaDelimitedArg(input: string): Array<string>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sanitizeCommaDelimitedArg = exports.prerun = exports.getAppPaths = exports.checkRootTsConfig = exports.getRootTsConfigPath = exports.copy = exports.getNxWorkspaceConfig = exports.updateFile = exports.updateJsonFile = exports.getJsonFromFile = exports.jsonParse = exports.addInstallTask = exports.isTesting = exports.setTest = exports.isXplatWorkspace = exports.getAppName = exports.getGroupByName = exports.getFrontendFramework = exports.getPrefix = exports.getNpmScope = exports.supportedFrameworks = exports.supportedPlatformsWithNx = exports.supportedNxExtraPlatforms = exports.supportedPlatforms = void 0; | ||
exports.sanitizeCommaDelimitedArg = exports.prerun = exports.getAppPaths = exports.getRootTsConfigPath = exports.copy = exports.getNxWorkspaceConfig = exports.updateFile = exports.updateJsonFile = exports.getJsonFromFile = exports.jsonParse = exports.addInstallTask = exports.isTesting = exports.setTest = exports.isXplatWorkspace = exports.getAppName = exports.getGroupByName = exports.getFrontendFramework = exports.getPrefix = exports.getNpmScope = exports.supportedFrameworks = exports.supportedPlatformsWithNx = exports.supportedNxExtraPlatforms = exports.supportedPlatforms = void 0; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
@@ -136,14 +136,2 @@ const tasks_1 = require("@angular-devkit/schematics/tasks"); | ||
exports.getRootTsConfigPath = getRootTsConfigPath; | ||
function checkRootTsConfig(tree) { | ||
if (!tree.exists('/tsconfig.json') && tree.exists('/tsconfig.base.json')) { | ||
// to support Nx 10.1+ | ||
// NOTE: We may end up creating tsconfig's at libs and xplat levels in future | ||
// This allows ts resolution to work as normal | ||
tree.create('/tsconfig.json', JSON.stringify({ | ||
extends: `.${getRootTsConfigPath()}`, | ||
}, null, 2)); | ||
} | ||
return tree; | ||
} | ||
exports.checkRootTsConfig = checkRootTsConfig; | ||
function getAppPaths(tree, type // by default, will return all app paths (considering folder nesting) | ||
@@ -225,3 +213,2 @@ ) { | ||
} | ||
tree = checkRootTsConfig(tree); | ||
// console.log('npmScope:', npmScope); | ||
@@ -228,0 +215,0 @@ const packageJson = getJsonFromFile(tree, 'package.json'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24583
367
1