-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
108 lines (108 loc) · 3.2 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
{
"name": "apollo-embeds-monorepo",
"version": "0.0.0",
"author": "[email protected]",
"license": "MIT",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/apollographql/embeddable-explorer"
},
"homepage": "https://github.com/apollographql/embeddable-explorer#readme",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"typings": "dist/index.d.ts",
"engines": {
"node": ">=12.0",
"npm": ">=7.0"
},
"volta": {
"node": "16.13.0",
"npm": "8.3.1"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
"size": "size-limit",
"analyze": "size-limit --why",
"typescript:clean": "tsc --build --clean",
"build": "tsc --build",
"build-all-cjs-esm": "for package in packages/*; do cd $package && npm run build && cd ../..; done",
"watch": "npm run build -- --watch",
"prettier:check": "prettier --check .",
"prettier:fix": "prettier --write .",
"//": "The below two scripts are only used for code sandbox ci since code sandbox doesn't support workspaces / npm 7, we need to install & build in the packages",
"code-sandbox-install": "npm i -g [email protected] && npm -v && npm i",
"publish-changeset": "npm run prepare-for-publish && yarn changeset publish",
"prepare-for-publish": "npm run build-all-cjs-esm && node ./prepareForPublish.js && for package in packages/*; do cd $package && rm -rf dist && cd ../..; done"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
},
"bundlewatch": {
"files": [
{
"path": "packages/sandbox/dist/**/*.js",
"maxSize": "41kb"
},
{
"path": "packages/explorer/dist/**/*.js",
"maxSize": "41kb"
}
],
"ci": {
"trackBranches": [
"main"
]
},
"normalizeFilenames": "^.+?(\\.\\w+)\\.(?:js|css)$"
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"endOfLine": "auto"
},
"workspaces": [
"packages/explorer",
"packages/sandbox",
"packages/explorer-helpers"
],
"devDependencies": {
"@babel/core": "^7.18.5",
"bundlewatch": "^0.3.1",
"@changesets/changelog-github": "0.4.4",
"@changesets/cli": "2.22.0",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.2",
"@size-limit/preset-small-lib": "5.0.5",
"@types/fs-extra": "^9.0.13",
"@types/react": "18.0.8",
"@types/react-dom": "18.0.3",
"@typescript-eslint/eslint-plugin": "5.21.0",
"@typescript-eslint/parser": "5.21.0",
"eslint": "8.14.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "4.5.0",
"fs-extra": "^10.1.0",
"graphql": "16.8.1",
"husky": "7.0.4",
"prettier": "2.6.2",
"react": "18.1.0",
"react-dom": "18.1.0",
"rollup": "^2.75.6",
"rollup-plugin-terser": "^7.0.2",
"size-limit": "5.0.5",
"tslib": "2.3.1",
"typescript": "4.9.5"
}
}