@pkgr/utils
Advanced tools
Comparing version 2.1.0 to 2.2.0
// based on https://github.com/facebook/create-react-app/blob/master/packages/react-dev-utils/openBrowser.js | ||
import { execSync } from 'child_process'; | ||
import path from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import spawn from 'cross-spawn'; | ||
@@ -6,0 +6,0 @@ import open from 'open'; |
@@ -11,4 +11,4 @@ var _a; | ||
export const cjsRequire = typeof require === 'undefined' ? createRequire(import.meta.url) : require; | ||
// eslint-disable-next-line node/no-deprecated-api, sonar/deprecation | ||
// eslint-disable-next-line n/no-deprecated-api, sonar/deprecation | ||
export const EXTENSIONS = ['.ts', '.tsx', ...Object.keys(cjsRequire.extensions)]; | ||
//# sourceMappingURL=constants.js.map |
@@ -1,3 +0,3 @@ | ||
import fs from 'fs'; | ||
import path from 'path'; | ||
import fs from 'node:fs'; | ||
import path from 'node:path'; | ||
import isGlob from 'is-glob'; | ||
@@ -20,4 +20,5 @@ import { CWD, EXTENSIONS, cjsRequire } from './constants.js'; | ||
export const isTsAvailable = isPkgAvailable('typescript'); | ||
export const isAngularAvailable = isPkgAvailable('@angular/core'); | ||
export const isMdxAvailable = isPkgAvailable('@mdx/mdx') || isPkgAvailable('@mdx/react'); | ||
export const isAngularAvailable = isPkgAvailable('@angular/core/package.json'); | ||
export const isMdxAvailable = isPkgAvailable('@mdx-js/mdx/package.json') || | ||
isPkgAvailable('@mdx-js/react/package.json'); | ||
export const isReactAvailable = isPkgAvailable('react'); | ||
@@ -24,0 +25,0 @@ export const isSvelteAvailable = isPkgAvailable('svelte'); |
var _a, _b, _c, _d; | ||
import path from 'path'; | ||
import path from 'node:path'; | ||
import { tryGlob, tryRequirePkg } from './helpers.js'; | ||
@@ -4,0 +4,0 @@ const pkg = (_a = tryRequirePkg(path.resolve('package.json'))) !== null && _a !== void 0 ? _a : {}; |
{ | ||
"name": "@pkgr/utils", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"type": "module", | ||
@@ -16,6 +16,7 @@ "description": "Shared utils for `@pkgr` packages or any package else", | ||
"exports": { | ||
"types": "./lib/index.d.ts", | ||
"import": "./lib/index.js", | ||
"require": "./lib/index.cjs" | ||
}, | ||
"types": "lib", | ||
"types": "./lib/index.d.ts", | ||
"files": [ | ||
@@ -31,3 +32,3 @@ "lib", | ||
"tiny-glob": "^0.2.9", | ||
"tslib": "^2.3.1" | ||
"tslib": "^2.4.0" | ||
}, | ||
@@ -34,0 +35,0 @@ "publishConfig": { |
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
Sorry, the diff of this file is not supported yet
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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
492
13
31411
18
Updatedtslib@^2.4.0