-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
65 lines (65 loc) 路 3.25 KB
/
Copy pathpackage.json
File metadata and controls
65 lines (65 loc) 路 3.25 KB
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
{
"name": "hkt-core",
"version": "1.3.5",
"private": true,
"description": "馃崈 A micro HKT (higher-kinded type) implementation for TypeScript, with type safety elegantly guaranteed.",
"keywords": [
"type gymnastics",
"type level",
"type safe",
"generic",
"generic programming",
"hkt",
"higher kinded type",
"type level programming"
],
"homepage": "https://github.com/Snowflyt/hkt-core",
"bugs": {
"url": "https://github.com/Snowflyt/hkt-core/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/Snowflyt/hkt-core"
},
"license": "MIT",
"author": "Ge Gao (Snowflyt) <gaoge011022@gmail.com>",
"type": "module",
"types": "./index.d.ts",
"workspaces": [
"typroof-plugin"
],
"scripts": {
"prebuild": "npm run clean",
"build": "tsc --noEmit && cpy \"src/**/*\" dist && rimraf --glob \"dist/**/*.test.ts\" && renamer --find .ts --replace .d.ts \"dist/**\" && replace-in-file \"/^\\s*\\/\\/ eslint-disable-next-line .+$/mg\" \"\" \"dist/**/*.d.ts\" --isRegex && replace-in-file \"/^\\s*\\/\\*\\s+eslint-disable\\s+(\\S+\\s+)?\\*\\/$/mg\" \"\" \"dist/**/*.d.ts\" --isRegex && prettier --log-level=silent --write \"dist/**/*\" --ignore-path !dist/ && cpy package.json dist && json -I -f dist/package.json -e \"delete this.private; delete this.workspaces; delete this.scripts; delete this.devDependencies\" && cpy LICENSE dist && cpy README.md dist",
"clean": "rimraf dist",
"format": "prettier --no-error-on-unmatched-pattern --write **/*.{js,ts,json,md} *.{cjs,mjs,cts,mts}",
"lint": "eslint **/*.{js,ts} *.{cjs,mjs,cts,mts} --no-error-on-unmatched-pattern --report-unused-disable-directives-severity error --max-warnings 0",
"lint:fix": "eslint --fix **/*.{js,ts} *.{cjs,mjs,cts,mts} --no-error-on-unmatched-pattern --report-unused-disable-directives-severity error --max-warnings 0",
"prepare": "node -e \"import fs from 'node:fs'; import path from 'node:path'; const hooksDir = path.join(process.cwd(), '.githooks'); const gitHooksDir = path.join(process.cwd(), '.git/hooks'); if (!fs.existsSync(gitHooksDir)) { console.error('Git hooks directory not found, please run this in a git repository.'); process.exit(1); } fs.readdirSync(hooksDir).forEach(file => { const srcFile = path.join(hooksDir, file); const destFile = path.join(gitHooksDir, file); fs.copyFileSync(srcFile, destFile); if (process.platform !== 'win32' && !file.endsWith('.cmd')) { fs.chmodSync(destFile, 0o755); } })\"",
"test": "tsc --noEmit && typroof"
},
"devDependencies": {
"@typescript-eslint/parser": "^8.56.1",
"commitlint": "^20.4.3",
"cpy-cli": "^7.0.0",
"effect": "^3.19.19",
"eslint": "^9.39.3",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import-x": "^4.16.1",
"eslint-plugin-jsdoc": "^62.7.1",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-sonarjs": "^4.0.0",
"eslint-plugin-sort-destructure-keys": "^3.0.0",
"globals": "^17.4.0",
"json": "^11.0.0",
"prettier": "^3.8.1",
"prettier-plugin-packagejson": "^3.0.2",
"renamer": "^5.0.2",
"replace-in-file": "^8.4.0",
"rimraf": "^6.1.3",
"typescript": "latest",
"typescript-eslint": "^8.56.1",
"typroof": "^0.6.0"
}
}