babel-plugin-transform-globalthis
Version:
Babel plugin for transforming `globalThis`.
85 lines (84 loc) • 2.61 kB
JSON
{
"name": "babel-plugin-transform-globalthis",
"version": "1.0.0",
"description": "Babel plugin for transforming `globalThis`.",
"license": "MIT",
"author": "Ivan Nikolić <niksy5@gmail.com> (http://ivannikolic.com)",
"sideEffects": false,
"exports": {
".": {
"import": "./esm/index.js",
"require": "./cjs/index.js"
},
"./package.json": "./package.json"
},
"main": "cjs/index.js",
"module": "esm/index.js",
"directories": {
"test": "test"
},
"files": [
"cjs/",
"esm/",
"CHANGELOG.md",
"LICENSE.md",
"README.md"
],
"scripts": {
"build": "rollup --config rollup.config.js",
"lint": "eslint '{index,lib/**/*,test/**/*}.js'",
"module-check": "node -e 'require(\"babel-plugin-transform-globalthis\");' && node --input-type=module -e 'import \"babel-plugin-transform-globalthis\";'",
"prepublishOnly": "npm run build && npm run module-check",
"postpublish": "GITHUB_TOKEN=$GITHUB_RELEASE_TOKEN github-release-from-changelog",
"release": "np --no-release-draft",
"test": "([[ -z $WATCH_TEST ]] && npm run lint || echo) && nyc mocha --require esm 'test/*.js' && nyc check-coverage",
"test:watch": "WATCH_TEST=1 nodemon --exec npm test",
"version": "version-changelog CHANGELOG.md && changelog-verify CHANGELOG.md && git add CHANGELOG.md"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"changelog-verify": "^1.1.2",
"eslint": "^7.11.0",
"eslint-config-niksy": "^9.0.0",
"eslint-config-prettier": "^6.14.0",
"eslint-plugin-extend": "^0.1.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.7.3",
"eslint-plugin-mocha": "^8.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-unicorn": "^23.0.0",
"esm": "~3.0.51",
"github-release-from-changelog": "^2.1.1",
"husky": "^4.3.0",
"lint-staged": "^10.4.2",
"mocha": "^8.2.0",
"nodemon": "^2.0.6",
"np": "^6.5.0",
"nyc": "^15.1.0",
"prettier": "^2.1.2",
"rollup": "^2.32.1",
"version-changelog": "^3.1.1"
},
"engines": {
"node": ">=10"
},
"keywords": [
"babel",
"globalthis",
"plugin",
"transform",
"window",
"global",
"self"
],
"repository": {
"type": "git",
"url": "git+https://github.com/niksy/babel-plugin-transform-globalthis.git"
},
"bugs": {
"url": "https://github.com/niksy/babel-plugin-transform-globalthis/issues"
},
"homepage": "https://github.com/niksy/babel-plugin-transform-globalthis#readme"
}