UNPKG

commonjs-to-es-module-codemod

Version:

jscodeshift codemod that convert CommonJS(require/exports) to ES Modules(import/export) for JavaScript/TypeScript

69 lines (68 loc) 1.58 kB
{ "name": "commonjs-to-es-module-codemod", "version": "0.5.7", "description": "jscodeshift codemod that convert CommonJS(require/exports) to ES Modules(import/export) for JavaScript/TypeScript", "files": [ "dist" ], "source": "transforms/index.js", "main": "dist/index.js", "scripts": { "build": "microbundle", "test": "jest", "updateSnapshot": "jest -u", "format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"" }, "repository": { "type": "git", "url": "git://github.com/azu/commonjs-to-es-module-codemod.git" }, "keywords": [ "amd", "es6", "modules", "import", "require", "export", "exports", "codemod", "jscodeshift" ], "author": "azu <azuciao@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/azu/commonjs-to-es-module-codemod/issues" }, "homepage": "https://github.com/azu/commonjs-to-es-module-codemod#readme", "jest": { "roots": [ "transforms" ] }, "devDependencies": { "@babel/cli": "^7.10.5", "@babel/core": "^7.0.0", "@babel/preset-env": "^7.0.0", "babel-core": "^7.0.0-bridge.0", "babel-jest": "^23.4.2", "coveralls": "^3.1.0", "jest": "^26.4.2", "lint-staged": "^10.2.11", "microbundle": "^0.13.0", "prettier": "^2.2.1" }, "dependencies": { "jscodeshift": "^0.10.0" }, "prettier": { "singleQuote": false, "printWidth": 120, "tabWidth": 4, "trailingComma": "none" }, "lint-staged": { "*.{js,jsx,ts,tsx,css}": [ "prettier --write" ] } }