UNPKG

to-esm

Version:
83 lines (82 loc) 2.94 kB
{ "name": "to-esm", "version": "2.28.0", "description": "Tool to convert Commonjs files into ESM", "main": "src/converter.cjs", "type": "commonjs", "bin": { "toesm": "./index.cjs", "to-esm": "./index.cjs" }, "scripts": { "simple": "node index.cjs conversion-tester.cjs", "docs": "markdown-include markdown.json", "demo1": "node index.cjs example/cjs/demo-1.cjs --output example/esm2/", "demo2": "node index.cjs --input=\"example/cjs/**/*.?(c)js\" --output example/esm/", "demo3": "node index.cjs --input=\"example/cjs/**/*.?(c)js\" --output example/esm/ --config example/.toesm.cjs --target=browser", "demo4": "node index.cjs --input=\"example/cjs/**/*.?(c)js\" --output example/browser/ --config example/.toesm.cjs --html=\"example/**/*.html\"", "demo5": "node src/converter.cjs --input=\"example/cjs/demo-directives.cjs\" --output=example/browser/ --config=\"example/.toesm.cjs\" --html=\"example/**/*.html\"", "demo-docs": "node src/converter.cjs --input=example/plus/simple.js --output=./here", "demo": "npm run demo3 && npm run demo4", "lint": "eslint.cmd \"src/**/*.{cjs,js}\"", "test": "nyc mocha --sort", "test2": "nyc --reporter=lcov --reporter=text-summary mocha --sort" }, "author": "Patrice Thimothee", "homepage": "https://github.com/thimpat/to-esm/blob/main/README.md", "license": "MIT", "keywords": [ "esm", "cjs", "productivity" ], "repository": { "type": "git", "url": "https://github.com/thimpat/to-esm.git" }, "dependencies": { "@thimpat/libutils": "^1.11.0", "acorn": "^8.14.1", "analogger": "^1.36.1", "before-replace": "^1.0.5", "chokidar": "^3.5.3", "esbuild": "^0.14.38", "escodegen": "^2.1.0", "eslint": "9.20", "espree": "^9.3.0", "estraverse": "^5.3.0", "find-entry-point": "^1.6.4", "flatted": "^3.2.5", "glob": "^11.0.1", "js-beautify": "^1.14.3", "markdown-include": "^0.4.3", "minimist": "^1.2.5", "pageterm": "^1.0.4", "strip-comments-strings": "^1.2.0", "to-ansi": "^1.0.5", "uglify-js": "^3.17.4", "window-size": "^1.1.1" }, "devDependencies": { "@aoberoi/capture-console": "^1.1.0", "@babel/core": "^7.17.2", "@babel/eslint-parser": "^7.17.0", "@babel/preset-env": "^7.16.11", "@semantic-release/changelog": "^6.0.1", "@semantic-release/commit-analyzer": "^9.0.2", "@semantic-release/git": "^10.0.1", "@semantic-release/npm": "^9.0.0", "@semantic-release/release-notes-generator": "^10.0.3", "@thimpat/testutils": "^1.3.2", "chai": "^4.3.6", "chai-string": "^1.5.0", "dir-compare": "^4.0.0", "find": "^0.3.0", "handlebars": "^4.7.7", "mocha": "^10.2.0", "nyc": "^15.1.0", "semantic-release": "^19.0.2", "shelljs": "^0.8.5", "sinon": "^13.0.1" } }