makepack 1.5.6 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makepack",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "type": "module",
5
5
  "description": "A CLI tool to create, build, and manage JavaScript, TypeScript, React, and React-TypeScript libraries for npm projects.",
6
6
  "files": [
@@ -1,6 +1,5 @@
1
1
  import path from 'path'
2
2
  import fs from 'fs-extra'
3
- import { pathToFileURL } from 'url';
4
3
 
5
4
  const makepackConfig = async () => {
6
5
 
@@ -46,7 +45,7 @@ const makepackConfig = async () => {
46
45
 
47
46
  if (fs.existsSync(configPath)) {
48
47
  try {
49
- const c = await import(pathToFileURL(configPath).href)
48
+ const c = await import(`file://${configPath}`)
50
49
  const configFn = c.default
51
50
  if (typeof configFn === 'function') {
52
51
  const nc = configFn(defaultConfig)