/
package.json
148 lines (148 loc) · 5.18 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"name": "@saleor/cli",
"version": "0.0.0",
"description": "",
"type": "module",
"repository": "github:saleor/saleor-cli",
"homepage": "https://github.com/saleor/saleor-cli#readme",
"bugs": "https://github.com/saleor/saleor-cli/issues",
"bin": {
"saleor": "./dist/saleor.js"
},
"scripts": {
"prepublishOnly": "rm -rf ./package && pnpm build && clean-publish --fields dependencies && node -e \"let pkg=require('./package/package.json'); pkg.dependencies = { 'got': '^12.4.1' }; require('fs').writeFileSync('./package/package.json', JSON.stringify(pkg, null, 2));\"",
"postpublish": "pnpm sentry:sourcemaps",
"bundle": "esbuild src/cli.ts --sourcemap --bundle --minify --outfile=dist/saleor.js --platform=node --format=esm --target=node16 --banner:js=\"import { createRequire } from 'module';const require = createRequire(import.meta.url);import { dirname } from 'path'; import { fileURLToPath } from 'url'; const __dirname = dirname(fileURLToPath(import.meta.url));\" --out-extension:.js=.js --define:process.env.NODE_ENV=\\\"production\\\"",
"build": "pnpm bundle",
"watch-generate": "graphql-codegen -w",
"watch-ts": "tsc --noEmit --watch --preserveWatchOutput",
"watch-esbuild": "esbuild --watch src/cli.ts --bundle --minify --outfile=dist/saleor.js --platform=node --format=esm --target=node16 --banner:js=\"import { createRequire } from 'module';const require = createRequire(import.meta.url);import { dirname } from 'path'; import { fileURLToPath } from 'url'; const __dirname = dirname(fileURLToPath(import.meta.url));\" --out-extension:.js=.js",
"watch": "concurrently \"npm:watch-*\"",
"lint": "prettier --write . && eslint src/**/*.ts --cache --fix",
"generate": "graphql-codegen",
"test": "pnpm vitest",
"prepare": "husky install",
"typecov": "type-coverage --cache",
"typecov-report": "typescript-coverage-report",
"release": "release-it --dry-run",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org saleor --project saleor-cli ./dist && sentry-cli sourcemaps upload --release $npm_package_version --dist $npm_package_version/$npm_package_name --org saleor --project saleor-cli ./dist"
},
"files": [
"dist/saleor.js",
"template",
"scripts"
],
"author": "Saleor",
"license": "BSD 3-Clause",
"devDependencies": {
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/typescript-document-nodes": "^4.0.1",
"@sentry/cli": "^2.21.2",
"@types/cli-progress": "^3.11.5",
"@types/debug": "^4.1.11",
"@types/detect-port": "^1.3.5",
"@types/fs-extra": "^11.0.4",
"@types/git-url-parse": "^9.0.3",
"@types/lodash.kebabcase": "^4.1.9",
"@types/node": "^20.9.0",
"@types/prompt": "^1.1.8",
"@types/semver": "^7.5.5",
"@types/slug": "^5.0.7",
"@types/tar": "^6.1.8",
"@types/yargs": "^17.0.31",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"clean-publish": "^4.2.0",
"concurrently": "^8.2.2",
"esbuild": "^0.19.5",
"eslint": "^8.53.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.33.2",
"http-request-mock": "^1.8.17",
"husky": "^8.0.3",
"msw": "^1.3.2",
"pkg": "^5.8.1",
"prettier": "3.0.3",
"release-it": "^16.2.1",
"strip-ansi": "^7.1.0",
"tree-kill": "^1.2.2",
"tsm": "^2.3.0",
"type-coverage": "^2.27.0",
"typescript": "^5.2.2",
"typescript-coverage-report": "^0.8.0",
"vitest": "^0.34.6"
},
"dependencies": {
"@mobily/ts-belt": "^3.13.1",
"@oclif/core": "1.26.2",
"@sentry/node": "^7.77.0",
"@types/lodash.isempty": "^4.4.9",
"chalk": "^5.3.0",
"cli-highlight": "^2.1.11",
"cli-progress": "^3.12.0",
"completarr": "^0.2.2",
"date-fns": "^2.30.0",
"debug": "^4.3.4",
"detect-port": "^1.5.1",
"dotenv": "^16.3.1",
"emphasize": "^6.0.0",
"enquirer": "^2.4.1",
"fetch-repo-dir": "^1.0.6",
"fs-extra": "^11.1.1",
"git-url-parse": "^13.1.1",
"got": "^13.0.0",
"graphql": "^16.8.1",
"graphql-request": "^6.1.0",
"graphql-tag": "^2.12.6",
"lodash.isempty": "^4.4.0",
"lodash.kebabcase": "^4.1.1",
"log-symbols": "^5.1.0",
"lookpath": "^1.2.2",
"nanoid": "^4.0.2",
"node-fetch": "^3.3.2",
"open": "^9.1.0",
"ora": "^7.0.1",
"pkce-challenge": "^4.0.1",
"prompt": "^1.3.0",
"replace-in-file": "^7.0.2",
"retes": "^0.36.0",
"sanitize-filename": "^1.6.3",
"semver": "^7.5.4",
"simple-git": "^3.20.0",
"slug": "^8.2.3",
"tar": "^6.2.0",
"tiny-invariant": "^1.3.1",
"tplv": "^1.0.0",
"yaml": "^2.3.4",
"yargs": "^17.7.2"
},
"engines": {
"node": "^16 || ^18 || ^20"
},
"pnpm": {
"overrides": {
"uuid": "8.3.2"
}
},
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix",
"*.{js,ts,json}": "prettier --write"
},
"release-it": {
"github": {
"release": true,
"autoGenerate": true
}
},
"publishConfig": {
"access": "public",
"directory": "package"
},
"clean-publish": {
"withoutPublish": true,
"tempDir": "package"
}
}