UNPKG

@chocolateboy/uncommonjs

Version:

A minimum viable shim for module.exports

83 lines (82 loc) 2.48 kB
{ "name": "@chocolateboy/uncommonjs", "version": "3.2.1", "description": "A minimum viable shim for module.exports", "author": "chocolateboy", "repository": "https://github.com/chocolateboy/uncommonjs", "license": "MIT", "main": "dist/index.js", "module": "dist/index.esm.js", "jsdelivr": "dist/polyfill.iife.min.js", "unpkg": "dist/polyfill.iife.min.js", "types": "dist/index.d.ts", "scripts": { "build": "rollup --no-treeshake -c --exports auto", "build:doc": "toc-md README.md", "build:release": "run-s clean build build:types build:doc", "build:types": "run-s build:types:run build:types:copy build:types:clean", "build:types:clean": "shx rm -rf ./dist/types", "build:types:copy": "node ./resources/copy-dts.js", "build:types:run": "tsc --declaration", "clean": "shx rm -rf dist", "prepublishOnly": "run-s build:release test:run", "rebuild": "run-s clean build", "test": "run-s build test:run", "test:run": "ava --verbose \"test/*.js\"" }, "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.esm.js" }, "./polyfill": { "default": "./dist/polyfill.iife.js", "import": "./dist/polyfill.esm.js" }, "./": "./dist/", "./package.json": "./package.json" }, "files": [ "dist" ], "browserslist": "maintained node versions", "devDependencies": { "@babel/core": "^7.17.8", "@babel/plugin-transform-runtime": "^7.17.0", "@babel/preset-env": "^7.16.11", "ava": "^4.1.0", "cross-env": "^7.0.3", "npm-run-all": "^4.1.5", "rollup": "^2.70.1", "rollup-plugin-filesize": "^9.1.2", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-ts": "^2.0.5", "shelljs": "^0.8.5", "shx": "^0.3.4", "toc-md-alt": "^0.4.6", "typescript": "^4.6.3" }, "keywords": [ "adapter", "collect", "collector", "commonjs", "export", "exporter", "exports", "fake", "gather", "gatherer", "greasemonkey", "module", "quickjs", "require", "shim", "spidermonkey", "stub", "tampermonkey", "userscript", "userscripts", "violentmonkey" ] }