@pkgr/utils
Advanced tools
Comparing version 2.0.2 to 2.0.3
# Change Log | ||
## 2.0.3 | ||
### Patch Changes | ||
- [#270](https://github.com/rx-ts/pkgr/pull/270) [`9278142`](https://github.com/rx-ts/pkgr/commit/9278142f2d4867c611c558eaffe0383a48050062) Thanks [@JounQin](https://github.com/JounQin)! - fix(utils): should not use \_\_dirname directly | ||
## 2.0.2 | ||
@@ -4,0 +10,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 chalk from 'chalk'; | ||
@@ -70,2 +72,5 @@ import spawn from 'cross-spawn'; | ||
]; | ||
const _dirname = typeof __dirname === 'undefined' | ||
? path.dirname(fileURLToPath(import.meta.url)) | ||
: __dirname; | ||
for (const chromiumBrowser of supportedChromiumBrowsers) { | ||
@@ -81,3 +86,3 @@ try { | ||
'"', { | ||
cwd: __dirname, | ||
cwd: _dirname, | ||
stdio: 'ignore', | ||
@@ -84,0 +89,0 @@ }); |
{ | ||
"name": "@pkgr/utils", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"type": "module", | ||
@@ -28,3 +28,3 @@ "description": "Shared utils for `@pkgr` packages or any package else", | ||
"is-glob": "^4.0.3", | ||
"open": "^8.3.0", | ||
"open": "^8.4.0", | ||
"tiny-glob": "^0.2.9", | ||
@@ -31,0 +31,0 @@ "tslib": "^2.3.1" |
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
39418
491
Updatedopen@^8.4.0