Comparing version 3.4.4 to 4.0.0
{ | ||
"name": "ipjs", | ||
"version": "3.4.4", | ||
"version": "4.0.0", | ||
"description": "Universal JavaScript build and packaging system", | ||
@@ -5,0 +5,0 @@ "main": "src/build.js", |
@@ -56,4 +56,3 @@ import { promises as fs } from 'fs' | ||
if (!json.exports) { | ||
if (!json.main) exports['.'] = { import: this.file(toURL('./index.js')) } | ||
exports['.'] = { import: this.file(toURL(json.main)) } | ||
exports['.'] = { import: this.file(toURL(json.main || './index.js')) } | ||
} else { | ||
@@ -186,3 +185,3 @@ for (const [key, value] of Object.entries(json.exports)) { | ||
delete json.type | ||
delete json.main | ||
json.main = `./${join('./cjs', json.main || './index.js')}` | ||
json.browser = {} | ||
@@ -189,0 +188,0 @@ json.exports = {} |
@@ -5,3 +5,3 @@ { | ||
"description": "", | ||
"main": "index.js", | ||
"main": "src/index.js", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "scripts": { |
@@ -5,2 +5,3 @@ { | ||
"description": "", | ||
"main": "./cjs/src/index.js", | ||
"scripts": { | ||
@@ -7,0 +8,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
@@ -5,2 +5,3 @@ { | ||
"description": "", | ||
"main": "./cjs/src/index.js", | ||
"scripts": { | ||
@@ -7,0 +8,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
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
51088
1387