Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "es-main", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Test if an ES module is run directly (require.main replacement)", | ||
@@ -22,7 +22,7 @@ "main": "main.js", | ||
"preversion": "npm run generate-types", | ||
"test:with-extension": "node test.js", | ||
"test:without-extension": "node test", | ||
"test:without-node": "./test.js", | ||
"test:resolve-index": "node test-resolve-index", | ||
"test:resolve-main": "node test-resolve-main", | ||
"test:with-extension": "node test/test.js", | ||
"test:without-extension": "node test/test", | ||
"test:without-node": "./test/test.js", | ||
"test:resolve-index": "node test/resolve-index", | ||
"test:resolve-main": "node test/resolve-main", | ||
"test:repl": "node --eval \"import('./main.js').then(mod => {if (mod.default({})) throw new Error('expected false')})\"", | ||
@@ -35,11 +35,12 @@ "test:types": "npx tsc --noEmit", | ||
"process.mainModule", | ||
"modules" | ||
"modules", | ||
"import.meta.main" | ||
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@types/node": "^18.0.0", | ||
"@types/node": "^20.5.8", | ||
"eslint": "^8.18.0", | ||
"eslint-config-tschaub": "^14.0.0", | ||
"eslint-config-tschaub": "^14.1.2", | ||
"npm-run-all": "^4.1.5", | ||
"typescript": "^4.7.4" | ||
"typescript": "^5.2.2" | ||
}, | ||
@@ -46,0 +47,0 @@ "eslintConfig": { |
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
4207