UNPKG

make-deno-edition

Version:

Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.

191 lines (190 loc) 7.09 kB
{ "name": "make-deno-edition", "version": "1.3.0", "description": "Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.", "homepage": "https://github.com/bevry/make-deno-edition", "license": "MIT", "keywords": [ "deno", "denoify", "edition", "editions", "es2020", "node", "npm", "transpile", "typed", "types", "typescript", "unpkg" ], "badges": { "list": [ "githubworkflow", "npmversion", "npmdownloads", "daviddm", "daviddmdev", "---", "githubsponsors", "patreon", "flattr", "liberapay", "buymeacoffee", "opencollective", "crypto", "paypal", "wishlist" ], "config": { "githubWorkflow": "bevry", "githubSponsorsUsername": "balupton", "buymeacoffeeUsername": "balupton", "cryptoURL": "https://bevry.me/crypto", "flattrUsername": "balupton", "liberapayUsername": "bevry", "opencollectiveUsername": "bevry", "patreonUsername": "bevry", "paypalURL": "https://bevry.me/paypal", "wishlistURL": "https://bevry.me/wishlist", "githubUsername": "bevry", "githubRepository": "make-deno-edition", "githubSlug": "bevry/make-deno-edition", "npmPackageName": "make-deno-edition" } }, "funding": "https://bevry.me/fund", "author": "2020+ Benjamin Lupton <b@lupton.cc> (https://balupton.com)", "maintainers": [ "Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)" ], "contributors": [ "Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)" ], "bugs": { "url": "https://github.com/bevry/make-deno-edition/issues" }, "repository": { "type": "git", "url": "https://github.com/bevry/make-deno-edition.git" }, "engines": { "node": ">=10" }, "editions": [ { "description": "TypeScript source code with Import for modules", "directory": "source", "entry": "index.ts", "tags": [ "source", "typescript", "import" ], "engines": false }, { "description": "TypeScript compiled against ES2020 for Node.js 10 || 12 || 14 with Require for modules", "directory": "edition-es2020", "entry": "index.js", "tags": [ "compiled", "javascript", "es2020", "require" ], "engines": { "node": "10 || 12 || 14", "browsers": false } }, { "description": "TypeScript compiled against ES2020 for Node.js 12 || 14 with Import for modules", "directory": "edition-es2020-esm", "entry": "index.js", "tags": [ "compiled", "javascript", "es2020", "import" ], "engines": { "node": "12 || 14", "browsers": false } } ], "bin": "bin.cjs", "types": "./compiled-types/", "type": "module", "main": "edition-es2020/index.js", "exports": { "node": { "import": "./edition-es2020-esm/index.js", "require": "./edition-es2020/index.js" } }, "dependencies": { "@types/rimraf": "^3.0.0", "await-spawn": "^4.0.2", "chalk": "^4.1.1", "errlop": "^4.2.0", "fdir": "^5.1.0", "get-cli-arg": "^7.0.0", "mkdirp": "^1.0.4", "rimraf": "^3.0.2" }, "devDependencies": { "@bevry/update-contributors": "^1.18.0", "@typescript-eslint/eslint-plugin": "^4.26.1", "@typescript-eslint/parser": "^4.26.1", "assert-helpers": "^8.1.0", "eslint": "^7.28.0", "eslint-config-bevry": "^3.23.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^3.4.0", "kava": "^5.13.0", "prettier": "^2.3.1", "projectz": "^2.18.0", "surge": "^0.23.0", "typedoc": "^0.20.36", "typescript": "4.2.4", "valid-directory": "^3.6.0" }, "scripts": { "our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", "our:compile": "npm run our:compile:edition-es2020 && npm run our:compile:edition-es2020-esm && npm run our:compile:types", "our:compile:edition-es2020": "tsc --module commonjs --target ES2020 --outDir ./edition-es2020 --project tsconfig.json && ( test ! -d edition-es2020/source || ( mv edition-es2020/source edition-temp && rm -Rf edition-es2020 && mv edition-temp edition-es2020 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2020/package.json", "our:compile:edition-es2020-esm": "tsc --module ESNext --target ES2020 --outDir ./edition-es2020-esm --project tsconfig.json && ( test ! -d edition-es2020-esm/source || ( mv edition-es2020-esm/source edition-temp && rm -Rf edition-es2020-esm && mv edition-temp edition-es2020-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2020-esm/package.json", "our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )", "our:deploy": "echo no need for this project", "our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz", "our:meta:contributors": "update-contributors", "our:meta:docs": "npm run our:meta:docs:typedoc", "our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source", "our:meta:projectz": "projectz compile", "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push", "our:release:check-changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)", "our:release:check-dirty": "git diff --exit-code", "our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta", "our:release:push": "git push origin master && git push origin --tags", "our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"", "our:setup": "npm run our:setup:install", "our:setup:install": "npm install", "our:test": "npm run our:verify && npm test", "our:verify": "npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier", "our:verify:directory": "valid-directory", "our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source", "our:verify:prettier": "prettier --write .", "test": "node ./edition-es2020/test.js" }, "eslintConfig": { "extends": [ "bevry" ] }, "prettier": { "semi": false, "singleQuote": true } }