-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
52 lines (52 loc) · 1.86 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
{
"name": "prettier-plugin-sort-imports",
"version": "1.8.5",
"description": "A prettier plugin for sorting imports by length",
"main": "dist/index.js",
"repository": "https://github.com/SanderRonde/prettier-plugin-sort-imports.git",
"author": "Sander Ronde <awsdfgvhbjn@gmail.com>",
"license": "MIT",
"devDependencies": {
"@types/node": "^14.11.2",
"ava": "^6.0.1",
"esbuild": "^0.19.10",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"dependencies": {
"prettier": "^3.1.1"
},
"peerDependencies": {
"typescript": ">4.0.0"
},
"keywords": [
"prettier",
"plugin",
"sort",
"import",
"typescript",
"javascript"
],
"files": [
"dist/**"
],
"scripts": {
"prepublish": "yarn prepack",
"bundle": "esbuild --bundle --platform=node --external:typescript --external:prettier --outfile=dist/index.js app/index.ts --minify && esbuild --bundle --platform=node --external:typescript --external:prettier --outfile=dist/index.2.js app/index.2.ts --minify && esbuild --bundle --platform=node --external:typescript --external:prettier --outfile=dist/index.3.js app/index.3.ts --minify",
"bundle:dev": "esbuild --bundle --platform=node --external:typescript --external:prettier --outfile=dist/index.js app/index.ts && esbuild --bundle --platform=node --external:typescript --external:prettier --outfile=dist/index.2.js app/index.2.ts && esbuild --bundle --platform=node --external:typescript --external:prettier --outfile=dist/index.3.js app/index.3.ts",
"test": "yarn bundle:dev && ava test/test.ts -- -- --sort-imports-reinit",
"testDev": "ava test/test.ts -- -- --dev --sort-imports-reinit",
"prepack": "yarn format && tsc && yarn bundle",
"format": "prettier --write app test",
"codeGenerationTest": "ts-node -T test/codeGenerationTest.ts --test"
},
"ava": {
"extensions": [
"ts"
],
"nodeArguments": [
"-r",
"ts-node/register"
]
}
}