Comparing version 5.1.2 to 5.2.0
{ | ||
"name": "ipjs", | ||
"version": "5.1.2", | ||
"version": "5.2.0", | ||
"description": "Universal JavaScript build and packaging system", | ||
@@ -5,0 +5,0 @@ "main": "src/build.js", |
@@ -14,2 +14,3 @@ import { promises as fs, existsSync } from 'fs' | ||
const copy = o => JSON.parse(JSON.stringify(o)) | ||
const cleanPath = (p) => p.replace(/\\/g, '/') | ||
const vals = Object.values | ||
@@ -150,3 +151,3 @@ | ||
} | ||
const code = paths.map(p => `import("${p.replace(/\\/g, '/')}")`).join('\n') | ||
const code = paths.map(p => `import("${cleanPath(p)}")`).join('\n') | ||
const input = new URL(dist + '/esm/_ipjsInput.js') | ||
@@ -256,3 +257,3 @@ await writeFile(input, code) | ||
json.exports = {} | ||
const _join = (...args) => './' + join(...args) | ||
const _join = (...args) => `./${cleanPath(join(...args))}` | ||
const esmBrowser = {} | ||
@@ -272,3 +273,3 @@ for (const [key, ex] of Object.entries(this.exports)) { | ||
json.browser[_join('cjs', _import)] = _join('cjs', _browser) | ||
esmBrowser[_import] = _browser | ||
esmBrowser[cleanPath(_import)] = cleanPath(_browser) | ||
} | ||
@@ -275,0 +276,0 @@ } |
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
65094
1622