-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
107 lines (107 loc) · 3.76 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
{
"name": "@portive/client",
"version": "10.0.3",
"description": "Client to connect to and use Portive's cloud services for open source components",
"keywords": [
"client",
"portive"
],
"license": "MIT",
"files": [
".dist/**/*"
],
"main": ".dist/cjs/src/index.js",
"module": ".dist/mjs/src/index.js",
"types": ".dist/cjs/src/index.d.ts",
"exports": {
".": {
"require": "./.dist/cjs/src/index.js",
"import": "./.dist/mjs/src/index.js",
"types": "./.dist/cjs/src/index.d.ts"
},
"./auth": {
"require": "./.dist/cjs/src/auth/index.js",
"import": "./.dist/mjs/src/auth/index.js",
"types": "./.dist/cjs/src/auth/index.d.ts"
}
},
"typesVersions": {
"*": {
".": [
"./.dist/cjs/src/index.d.ts"
],
"auth": [
"./.dist/cjs/src/auth/index.d.ts"
]
}
},
"devDependencies": {
"@portive/auth": "^9.0.0",
"@thesunny/get-env": "^1.0.6",
"@types/jest": "^27",
"@types/node": "^17.0.40",
"@types/react": "17.x",
"@types/react-dom": "17.x",
"@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/parser": "^5.15.0",
"concurrently": "^7.2",
"dotenv": "16.x",
"eslint": "^8.4.1",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-no-secrets": "^0.8.9",
"eslint-plugin-react": "^7.27.1",
"fetch-mock-jest": "^1.5.1",
"isomorphic-unfetch": "^3.1.0",
"jest": "^27",
"next": "10.x",
"nexton": "^1.0.45",
"prettier": "^2",
"react": "17.x",
"react-dom": "17.x",
"ts-jest": "^27",
"ts-node": "^10.8.1",
"tsc": "^2.0.4",
"tsconfig-paths": "^4.0.0",
"type-fest": "^2.17.0",
"typescript": "^4.7.3"
},
"dependencies": {
"@portive/api-types": "^9.0.0",
"axios": "^0.27.2",
"resolvable-value": "^1.0.2"
},
"scripts": {
"-- preset": "# Run preset from @thesunny/presets",
"preset": "ts-node --project node_modules/@thesunny/presets/tsconfig.ts-node.json node_modules/@thesunny/presets/bin/index.ts",
"--- test": "#",
"test:once": "yarn test:clearcache && jest --config=jest.config.js",
"test:watch": "jest --watch --config=jest.fast.config.js",
"test:watch:types": "yarn test:clearcache && jest --watch --config=jest.config.js",
"test:clearcache": "jest --clearCache",
"-- fix": "# fix syntax",
"fix:prettier": "yarn lint:prettier --write",
"fix:eslint": "yarn lint:eslint --fix",
"-- lint": "# lint syntax",
"lint": "concurrently 'yarn lint:prettier' 'yarn lint:eslint' 'yarn lint:tsc'",
"lint:prettier": "prettier --check \"**/*.{css,md,js,jsx,json,ts,tsx}\"",
"lint:eslint": "eslint .",
"lint:tsc": "tsc --build ./ --force",
"--- build npm": "# build npm",
"build:once": "yarn build:clear && yarn test:once && concurrently 'yarn build:cjs' 'yarn build:mjs' && echo 'Finished Building'",
"build:watch": "build:clear && tsc -p tsconfig.ts-build.json --watch",
"build:clear": "rm -rf ./.dist/",
"build:cjs": "tsc -p tsconfig.build-cjs.json",
"build:mjs": "tsc -p tsconfig.build-mjs.json",
"-- publish npm": "# publish npm package",
"publish:npm": "yarn build:once && yarn publish || yarn publish:first",
"publish:npm:patch": "yarn build:once && yarn version --patch && yarn publish --non-interactive || yarn publish:first",
"publish:first": "echo 'IMPORTANT INSTRUCTIONS: This is first publish so please use:\n\n\"npm publish --access=public\"'",
"-- next": "# NextJs",
"start:local": "DOTENV=.env/local.env next dev -p 3992",
"start:staging": "DOTENV=.env/staging.env next dev -p 3992",
"start:production": "DOTENV=.env/production.env next dev -p 3992",
"-- open": "# open browser tabs",
"open": "open -a 'google chrome' http://localhost:3992",
"-- end": "# end"
}
}