-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
57 lines (57 loc) · 2.01 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
{
"name": "@sctg/nocors",
"version": "0.9.16",
"description": "Minimalist noCors proxy for servless app",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"private": false,
"keywords": [
"cors",
"azure",
"cloudflare"
],
"author": "Ronan LE Meillat",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/highcanfly-club/nocors"
},
"engines": {
"node": ">=16"
},
"scripts": {
"prepare-azure": "rm -rf build && mkdir -p build && cat src/index.ts src/azure.ts | sed -e 's/\\.\\.\\/package\\.json/\\.\\/package\\.json/g' >> build/index.ts && cp -a src/Azure build/ && cp tsconfig.json build/ && cat package.json | sed -e 's/@sctg\\/nocors/@sctg\\/nocors-azure/g' > build/package.json",
"prepare-pages": "rm -rf build && mkdir -p build && cat src/index.ts src/pages.ts | sed -e 's/\\.\\.\\/package\\.json/\\.\\/package\\.json/g' >> build/index.ts && cp -a src/Pages build/ && cp tsconfig.json build/ && cat package.json | sed -e 's/@sctg\\/nocors/@sctg\\/nocors-pages/g' > build/package.json",
"build-azure": "npm run prepare-azure && npm run build",
"build-pages": "npm run prepare-pages && npm run build",
"build": "rm -rf dist && cd build && npm run _build",
"_build": "tsc && mv dist .. || exit 0",
"test": "mocha -n loader=ts-node/esm --extension ts",
"coverage": "nyc mocha --reporter spec --check-leaks test/"
},
"devDependencies": {
"@azure/functions": "^3.2.0",
"@cloudflare/workers-types": "^4.20221111.1",
"@types/chai": "^4.3.4",
"@types/mocha": "^10.0.0",
"@types/node": "^18.11.9",
"chai": "^4.3.7",
"got": "^12.5.3",
"mocha": "^10.1.0",
"ts-node": "^10.9.1",
"typescript": "^4.9.3"
},
"bugs": {
"url": "https://github.com/highcanfly-club/nocors/issues"
},
"homepage": "https://github.com/highcanfly-club/nocors#readme",
"directories": {
"lib": "lib",
"test": "test"
},
"publishConfig": {
"access": "public",
"tag": "latest"
}
}