-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
118 lines (118 loc) · 4.31 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"name": "@bytescale/sdk",
"version": "3.51.0",
"description": "Bytescale JavaScript SDK",
"author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",
"license": "MIT",
"types": "dist/types/index.d.ts",
"main": "dist/node/cjs/main.js",
"browser": "dist/browser/cjs/main.js",
"exports": {
".": {
"node": {
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/node/cjs/main.js"
},
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/node/esm/main.mjs"
}
},
"worker": {
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/worker/cjs/main.js"
},
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/worker/esm/main.mjs"
}
},
"default": {
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/browser/cjs/main.js"
},
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/browser/esm/main.mjs"
}
}
}
},
"homepage": "https://www.bytescale.com/docs/sdks/javascript",
"repository": {
"type": "git",
"url": "git+https://github.com/bytescale/bytescale-javascript-sdk.git"
},
"bugs": {
"url": "https://github.com/bytescale/bytescale-javascript-sdk/issues"
},
"files": [
"/dist/**/*",
"/tests/**/*"
],
"scripts": {
"clean": "rm -rf dist && rm -f bytescale-sdk.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 && rm dist/types/index.node.d.ts && rm dist/types/index.worker.d.ts && mv dist/types/index.browser.d.ts dist/types/index.d.ts",
"postpack": "[ ! -f bytescale-sdk-*.tgz ] || mv bytescale-sdk-*.tgz bytescale-sdk.tgz",
"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 publish:cdn:sdk && npm run publish:cdn:authSw",
"publish:cdn:sdk": "npm run prepack:cdn && aws s3 cp --recursive --content-type text/javascript dist/ s3://upload-js-releases/sdk/ && aws cloudfront create-invalidation --distribution-id E250290WAJ43YY --paths '/sdk/*'",
"publish:cdn:authSw": "aws s3 cp --content-type text/javascript src/index.auth-sw.js s3://upload-js-releases/auth-sw/v1 && aws cloudfront create-invalidation --distribution-id E250290WAJ43YY --paths '/auth-sw/*'"
},
"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.24.1",
"@babel/core": "7.24.1",
"@babel/preset-env": "7.24.1",
"@types/jest": "29.2.4",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"babel-loader": "8.3.0",
"babel-plugin-transform-async-to-promises": "0.8.18",
"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": "4.3.8",
"jest": "29.3.1",
"lint-staged": "10.5.1",
"node-fetch": "3.3.0",
"prettier": "2.8.8",
"ts-jest": "29.0.3",
"ts-loader": "9.5.1",
"tsc-alias": "1.2.10",
"typescript": "4.9.5",
"webpack": "5.94.0",
"webpack-cli": "4.10.0",
"webpack-node-externals": "2.5.2",
"webpack-shell-plugin-next": "2.3.1"
}
}