This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
97 lines (97 loc) · 3.41 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "upload-js-full",
"version": "2.22.1",
"description": "Upload JavaScript SDK",
"author": "Upload <[email protected]> (https://upload.io)",
"license": "MIT",
"types": "dist/types/index.d.ts",
"main": "dist/node/cjs/main.js",
"module": "dist/node/esm/main.mjs",
"browser": "dist/browser/cjs/main.js",
"exports": {
".": {
"node": {
"require": "./dist/node/cjs/main.js",
"import": "./dist/node/esm/main.mjs"
},
"browser": {
"require": "./dist/browser/cjs/main.js"
},
"default": "./dist/node/esm/main.mjs"
}
},
"homepage": "https://bytescale.com/upload-js",
"repository": {
"type": "git",
"url": "git+https://github.com/bytescale/upload-javascript-sdk.git"
},
"bugs": {
"url": "https://github.com/bytescale/upload-javascript-sdk/issues"
},
"files": [
"/dist/**/*",
"/tests/**/*"
],
"scripts": {
"clean": "rm -rf dist && rm -f upload-js-full.tgz",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"typecheck": "tsc --noEmit",
"test": "NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --silent=false --verbose=false",
"prepack": "npm run clean && webpack && tsc-alias",
"postpack": "[ ! -f upload-js-full-*.tgz ] || mv upload-js-full-*.tgz upload-js-full.tgz",
"prepare": "husky install",
"prepack:cdn": "npm run clean && webpack --config webpack.config.cdn.js && find dist -name \"*.ts\" -type f -delete && for f in dist/*.js; do cp -- \"$f\" \"${f%.js}\"; done",
"publish:executeIfReleaseCommit": "bash -c 'COMMIT=$(git log -1 --pretty=%B) && [ \"${COMMIT:0:8}\" != \"Release \" ] || npm run publish:execute'",
"publish:execute": "npm run publish:cdn && npm publish && npm run publish:createGitHubRelease",
"publish:createGitHubRelease": "gh release create v$(node -p \"require('./package.json').version\")",
"publish:cdn": "npm run prepack:cdn && aws s3 cp --recursive --content-type application/javascript dist/ s3://upload-js-releases/upload-js-full/ && aws cloudfront create-invalidation --distribution-id EO4VJPLCDN8HY --paths '/upload-js-full/*'"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*/**/*.{ts,tsx}": [
"bash -c \"tsc --noEmit\""
],
"*/**/*.{js,jsx,ts,tsx}": [
"eslint"
],
"*.{js,jsx,ts,tsx,json,css,html,md,yaml,yml}": [
"prettier -w"
]
},
"devDependencies": {
"@babel/cli": "7.19.3",
"@babel/core": "7.20.5",
"@babel/preset-env": "7.20.2",
"@types/jest": "29.2.4",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"babel-loader": "8.2.1",
"babel-plugin-transform-async-to-promises": "0.8.15",
"eslint": "7.32.0",
"eslint-config-prettier": "6.15.0",
"eslint-config-standard-with-typescript": "19.0.1",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-return-types-object-literals": "1.0.1",
"eslint-plugin-standard": "4.1.0",
"husky": "7.0.4",
"jest": "29.3.1",
"lint-staged": "10.5.1",
"node-fetch": "3.3.0",
"prettier": "2.8.1",
"ts-jest": "29.0.3",
"ts-loader": "9.2.2",
"tsc-alias": "1.2.10",
"typescript": "4.4.4",
"webpack": "5.75.0",
"webpack-cli": "4.10.0",
"webpack-node-externals": "2.5.2",
"webpack-shell-plugin-next": "2.3.1",
"wrapper-webpack-plugin": "2.2.2"
}
}