-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
71 lines (71 loc) · 3.07 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
{
"name": "confgen",
"version": "0.95.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/erikpukinskis/confgen.git"
},
"main": "./dist/lib.umd.js",
"module": "./dist/lib.es.js",
"bin": "./dist/lib.umd.js",
"files": [
"dist"
],
"exports": {
".": {
"import": "./dist/lib.es.js",
"require": "./dist/lib.umd.js"
}
},
"dependencies": {
"deep-equal": "^2.0.5",
"fs-extra": "^10.0.0",
"lodash": "^4.17.21",
"prettier": "2.8.1",
"semver": "^7.3.8",
"yaml": "^1.10.2"
},
"devDependencies": {
"@types/deep-equal": "^1.0.1",
"@types/fs-extra": "^9.0.13",
"@types/lodash": "^4.14.182",
"@types/merge-objects": "^1.0.0",
"@types/node": "16.18.8",
"@types/prettier": "^2.7.1",
"@types/semver": "^7.3.12",
"@typescript-eslint/eslint-plugin": "5.46.0",
"@typescript-eslint/parser": "^5.39.0",
"chokidar-cli": "^3.0.0",
"eslint": "8.29.0",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.26.0",
"ts-node": "^10.5.0",
"tsc-alias": "^1.7.0",
"tsconfig-paths": "^4.0.0",
"typescript": "4.9.4",
"vite": "^3.1.6",
"vite-plugin-commonjs-externals": "^0.1.1",
"vitest": "^0.24.0"
},
"scripts": {
"all": "yarn && yarn build && yarn fix && yarn check:types && yarn test && echo `echo 8J+OiSBEaWQgYWxs | base64 -d`",
"build": "rm -rf dist/* && yarn build:lib && yarn build:types && yarn build:bin",
"build:bin": "echo '#!/usr/bin/env node'|cat - dist/lib.umd.js > /tmp/out && mv /tmp/out dist/lib.umd.js && chmod a+x dist/lib.umd.js",
"build:lib": "vite build --config vite.lib.config.js --mode development",
"build:types": "tsc --declaration --emitDeclarationOnly -p tsconfig.dist.json --skipLibCheck && tsc-alias -p tsconfig.json && mv dist/index.d.ts dist/lib.umd.d.ts",
"build:vite": "vite build",
"check:format": "prettier --check --ignore-path .gitignore .",
"check:lint": "eslint --ignore-path .gitignore --no-error-on-unmatched-pattern .; if [ $? -eq 0 ]; then echo 8J+OiSBObyBsaW50IGluIHRoaXMgY29kZSEKCg== | base64 -d; else exit 1; fi",
"check:types": "tsc --noEmit -p tsconfig.json; if [ $? -eq 0 ]; then echo 8J+OiSBUeXBlcyBhcmUgZ29vZCEKCg== | base64 -d; else exit 1; fi",
"confgen": "./dist/lib.umd.js @lib --name Confgen git codespaces prettier yarn typescript vite vitest dist:lib bin node:fs:child_process:path eslint githubActions",
"fix": "yarn fix:lint && yarn fix:format",
"fix:format": "prettier --write --ignore-path .gitignore .",
"fix:lint": "eslint --ignore-path .gitignore --no-error-on-unmatched-pattern . --fix; if [ $? -eq 0 ]; then echo 8J+OiSBObyBsaW50IGluIHRoaXMgY29kZSEKCg== | base64 -d; else exit 1; fi",
"gen": "npx ts-node -r tsconfig-paths/register --transpile-only ./lib/index.ts",
"start:bin": "ts-node -r tsconfig-paths/register --transpile-only ./lib/index.ts",
"test": "vitest run --config vite.test.config.js",
"watch:build": "chokidar \"lib/**/*\" -c \"yarn build\"",
"watch:test": "vitest watch --config vite.test.config.js"
}
}