UNPKG

7.1 kBJSONView Raw
1{
2 "name": "editions",
3 "version": "6.7.0",
4 "description": "Publish multiple editions for your JavaScript packages consistently and easily (e.g. source edition, esnext edition, es2015 edition)",
5 "homepage": "https://github.com/bevry/editions",
6 "license": "MIT",
7 "keywords": [
8 "allow-env",
9 "allow-read",
10 "edition",
11 "editions",
12 "es5",
13 "es6",
14 "es6+",
15 "jsnext",
16 "node",
17 "syntaxes",
18 "typed",
19 "types",
20 "typescript",
21 "versions"
22 ],
23 "badges": {
24 "list": [
25 "githubworkflow",
26 "npmversion",
27 "npmdownloads",
28 "daviddm",
29 "daviddmdev",
30 "---",
31 "githubsponsors",
32 "patreon",
33 "flattr",
34 "liberapay",
35 "buymeacoffee",
36 "opencollective",
37 "crypto",
38 "paypal",
39 "wishlist"
40 ],
41 "config": {
42 "githubWorkflow": "bevry",
43 "githubSponsorsUsername": "balupton",
44 "buymeacoffeeUsername": "balupton",
45 "cryptoURL": "https://bevry.me/crypto",
46 "flattrUsername": "balupton",
47 "liberapayUsername": "bevry",
48 "opencollectiveUsername": "bevry",
49 "patreonUsername": "bevry",
50 "paypalURL": "https://bevry.me/paypal",
51 "wishlistURL": "https://bevry.me/wishlist",
52 "githubUsername": "bevry",
53 "githubRepository": "editions",
54 "githubSlug": "bevry/editions",
55 "npmPackageName": "editions"
56 }
57 },
58 "funding": "https://bevry.me/fund",
59 "author": "2016+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me)",
60 "maintainers": [
61 "Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)"
62 ],
63 "contributors": [
64 "Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)",
65 "Zlatan Vasović <zlatanvasovic@gmail.com> (https://github.com/zlatanvasovic)"
66 ],
67 "bugs": {
68 "url": "https://github.com/bevry/editions/issues"
69 },
70 "repository": {
71 "type": "git",
72 "url": "https://github.com/bevry/editions.git"
73 },
74 "engines": {
75 "node": ">=4"
76 },
77 "editions": [
78 {
79 "description": "TypeScript source code with Import for modules",
80 "directory": "source",
81 "entry": "index.ts",
82 "tags": [
83 "source",
84 "typescript",
85 "import"
86 ],
87 "engines": false
88 },
89 {
90 "description": "TypeScript compiled against ES5 for Node.js with Require for modules",
91 "directory": "edition-es5",
92 "entry": "index.js",
93 "tags": [
94 "compiled",
95 "javascript",
96 "es5",
97 "require"
98 ],
99 "engines": {
100 "node": "4 || 6 || 8 || 10 || 12 || 14 || 16",
101 "browsers": false
102 }
103 },
104 {
105 "description": "TypeScript compiled against ES5 for Node.js with Import for modules",
106 "directory": "edition-es5-esm",
107 "entry": "index.js",
108 "tags": [
109 "compiled",
110 "javascript",
111 "es5",
112 "import"
113 ],
114 "engines": {
115 "node": "12 || 14 || 16",
116 "browsers": false
117 }
118 }
119 ],
120 "types": "./compiled-types/",
121 "type": "module",
122 "main": "edition-es5/index.js",
123 "exports": {
124 "node": {
125 "import": "./edition-es5-esm/index.js",
126 "require": "./edition-es5/index.js"
127 }
128 },
129 "dependencies": {
130 "version-range": "^1.2.0"
131 },
132 "devDependencies": {
133 "@bevry/update-contributors": "^1.19.0",
134 "@typescript-eslint/eslint-plugin": "^4.28.5",
135 "@typescript-eslint/parser": "^4.28.5",
136 "assert-helpers": "^8.4.0",
137 "eslint": "^7.31.0",
138 "eslint-config-bevry": "^3.26.0",
139 "eslint-config-prettier": "^8.3.0",
140 "eslint-plugin-prettier": "^3.4.0",
141 "kava": "3.2.0",
142 "make-deno-edition": "^1.3.0",
143 "prettier": "^2.3.2",
144 "projectz": "^2.21.0",
145 "surge": "^0.23.0",
146 "typedoc": "^0.21.4",
147 "typescript": "4.3.5",
148 "valid-directory": "^3.7.0"
149 },
150 "scripts": {
151 "our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
152 "our:compile": "npm run our:compile:deno && npm run our:compile:edition-es5 && npm run our:compile:edition-es5-esm && npm run our:compile:types",
153 "our:compile:deno": "make-deno-edition --attempt",
154 "our:compile:edition-es5": "tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -Rf edition-es5 && mv edition-temp edition-es5 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es5/package.json",
155 "our:compile:edition-es5-esm": "tsc --module ESNext --target ES5 --outDir ./edition-es5-esm --project tsconfig.json && ( test ! -d edition-es5-esm/source || ( mv edition-es5-esm/source edition-temp && rm -Rf edition-es5-esm && mv edition-temp edition-es5-esm ) ) && echo '{\"type\": \"module\"}' > edition-es5-esm/package.json",
156 "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 ) )",
157 "our:deploy": "echo no need for this project",
158 "our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz",
159 "our:meta:contributors": "update-contributors",
160 "our:meta:docs": "npm run our:meta:docs:typedoc",
161 "our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source",
162 "our:meta:projectz": "projectz compile",
163 "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",
164 "our:release:check-changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)",
165 "our:release:check-dirty": "git diff --exit-code",
166 "our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta",
167 "our:release:push": "git push origin && git push origin --tags",
168 "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\"",
169 "our:setup": "npm run our:setup:install",
170 "our:setup:install": "npm install",
171 "our:test": "npm run our:verify && npm test",
172 "our:verify": "npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier",
173 "our:verify:directory": "valid-directory",
174 "our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source",
175 "our:verify:prettier": "prettier --write .",
176 "test": "node ./edition-es5/test.js"
177 },
178 "eslintConfig": {
179 "extends": [
180 "bevry"
181 ]
182 },
183 "prettier": {
184 "semi": false,
185 "singleQuote": true
186 },
187 "boundation": {
188 "browser": false,
189 "compiler": "typescript",
190 "targets": [
191 "ES5"
192 ]
193 }
194}
\No newline at end of file