Comparing version 0.1.14 to 0.1.15
@@ -62,3 +62,3 @@ export type MessageType = 'suggestion' | 'warning' | 'error' | ||
| BaseMessage< | ||
'EXPORTS_MODULE_SHOULD_PRECEED_IMPORT_REQUIRE', | ||
'EXPORTS_MODULE_SHOULD_PRECEDE_IMPORT_REQUIRE', | ||
{ conditions: string[] } | ||
@@ -65,0 +65,0 @@ > |
{ | ||
"name": "publint", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "Lint packaging errors", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -496,3 +496,3 @@ import { | ||
// a 'module' export should always preceed 'import' or 'require' | ||
// a 'module' export should always precede 'import' or 'require' | ||
if ('module' in exports) { | ||
@@ -515,3 +515,3 @@ const conditions = [] | ||
messages.push({ | ||
code: 'EXPORTS_MODULE_SHOULD_PRECEED_IMPORT_REQUIRE', | ||
code: 'EXPORTS_MODULE_SHOULD_PRECEDE_IMPORT_REQUIRE', | ||
args: { conditions }, | ||
@@ -518,0 +518,0 @@ path: currentPath.concat('module'), |
@@ -59,3 +59,3 @@ import c from 'picocolors' | ||
return `${c.bold(fp(m.path))} should be the first in the object as required by TypeScript.` | ||
case 'EXPORTS_MODULE_SHOULD_PRECEED_IMPORT_REQUIRE': { | ||
case 'EXPORTS_MODULE_SHOULD_PRECEDE_IMPORT_REQUIRE': { | ||
let conditions = `the ${m.args.conditions | ||
@@ -62,0 +62,0 @@ .map((cond) => `"${c.bold(cond)}"`) |
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