forked from erikpukinskis/confgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
65 lines (65 loc) · 2.75 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
{
"license": "MIT",
"name": "confgen",
"version": "0.82.0",
"bin": "./dist/lib.umd.js",
"repository": {
"type": "git",
"url": "https://github.com/erikpukinskis/confgen.git"
},
"dependencies": {
"deep-equal": "^2.0.5",
"fs-extra": "^10.0.0",
"lodash": "^4.17.21",
"merge-objects": "^1.0.5",
"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/semver": "^7.3.12",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"eslint": "^8.25.0",
"prettier": "^2.7.1",
"ts-node": "^10.5.0",
"tsc-alias": "^1.7.0",
"tsconfig-paths": "^4.0.0",
"typescript": "^4.8.4",
"vite": "^3.1.6",
"vite-plugin-commonjs-externals": "^0.1.1",
"vitest": "^0.24.0"
},
"files": [
"dist"
],
"main": "./dist/lib.umd.js",
"module": "./dist/lib.es.js",
"exports": {
".": {
"import": "./dist/lib.es.js",
"require": "./dist/lib.umd.js"
}
},
"scripts": {
"confgen": "./dist/lib.umd.js @lib --name Confgen git codespaces prettier yarn typescript vite vitest dist:lib bin node:fs:child_process:path eslint",
"gen": "npx ts-node -r tsconfig-paths/register --transpile-only ./lib/index.ts",
"build": "rm -rf dist/* && yarn build:lib && yarn build:types && yarn build:bin",
"build:vite": "vite build",
"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",
"fix:format": "prettier --write --ignore-path .gitignore .",
"check:types": "tsc --noEmit -p tsconfig.json; if [ $? -eq 0 ]; then echo 8J+OiSBUeXBlcyBhcmUgZ29vZCEKCg== | base64 -d; else exit 1; fi",
"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",
"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",
"check:lint": "eslint --ignore-path .gitignore --no-error-on-unmatched-pattern .; if [ $? -eq 0 ]; then echo 8J+OiSBObyBsaW50IGluIHRoaXMgY29kZSEKCg== | base64 -d; else exit 1; fi",
"fix": "yarn fix:lint && yarn fix:format",
"all": "yarn && yarn build && yarn fix && yarn check:types && yarn test && echo `echo 8J+OiSBEaWQgYWxs | base64 -d`",
"test": "vitest run --config vite.lib.config.js",
"test:dist": "yarn build && yarn test -t @dist",
"test:watch": "vitest watch --config vite.lib.config.js",
"build:lib": "vite build --config vite.lib.config.js --mode development"
}
}