Files
mockupAWS/node_modules/detect-node-es/package.json
Luca Sacchi Ricciardi baef924cfd fix: resolve ES modules compatibility in E2E test files
- Replace __dirname with import.meta.url pattern for ES modules compatibility
- Add fileURLToPath imports to all E2E test files
- Fix duplicate require statements in setup-verification.spec.ts
- Update playwright.config.ts to use relative path instead of __dirname

This fixes the 'ReferenceError: __dirname is not defined in ES module scope' error
when running Playwright tests in the ES modules environment.
2026-04-07 16:18:31 +02:00

30 lines
727 B
JSON

{
"name": "detect-node-es",
"version": "1.1.0",
"description": "Detect Node.JS (as opposite to browser environment). ESM modification",
"main": "es5/node.js",
"module": "esm/node.js",
"browser": {
"./es5/node.js": "./es5/browser.js",
"./esm/node.js": "./esm/browser.js"
},
"types": "es5/node.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/thekashey/detect-node"
},
"keywords": [
"detect",
"node"
],
"author": "Ilya Kantor",
"license": "MIT",
"bugs": {
"url": "https://github.com/thekashey/detect-node/issues"
},
"homepage": "https://github.com/thekashey/detect-node"
}