-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
79 changed files
with
6,612 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"root": true, | ||
"extends": "./configs/eslint/.eslintrc.basic.js", | ||
"ignorePatterns": ["*.cjs", "*.js", "*.mjs", "/coverage", "/lib", "/lib-commonjs", "/packages", "/scripts"], | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pnpm run pre-commit | ||
pnpm exec lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{ | ||
"*.ts": [ | ||
"eslint --cache" | ||
] | ||
"*.ts": ["eslint --cache"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "./tsconfig.base.json", | ||
"compilerOptions": { | ||
"module": "CommonJS", | ||
"verbatimModuleSyntax": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "./tsconfig.base.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"emitDeclarationOnly": true, | ||
"removeComments": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,19 +40,33 @@ | |
}, | ||
"packageManager": "[email protected]+sha512.8e4c3550fb500e808dbc30bb0ce4dd1eb614e30b1c55245f211591ec2cdf9c611cabd34e1364b42f564bd54b3945ed0f49d61d1bbf2ec9bd74b866fcdc723276", | ||
"scripts": { | ||
"build": "concurrently -n cjs,esm,types \"pnpm run build:cjs\" \"pnpm run build:esm\" \"pnpm run build:types\"", | ||
"build:cjs": "tsc --project tsconfigs/tsconfig.cjs.json", | ||
"build:esm": "tsc --project tsconfigs/tsconfig.esm.json", | ||
"build:types": "tsc --project tsconfigs/tsconfig.types.json", | ||
"clean": "rimraf --glob coverage lib lib-commonjs tsconfigs/*.tsbuildinfo", | ||
"format": "prettier --write \"**/*.{cjs,js,mjs,json,ts,yaml,yml}\"", | ||
"lint": "eslint .", | ||
"lint-fix": "eslint . --fix", | ||
"pre-commit": "lint-staged", | ||
"build": "pnpm run build:root && pnpm run build:workspaces", | ||
"build:workspaces": "pnpm run --recursive --stream build", | ||
"build:root": "concurrently -n cjs,esm,types \"pnpm run build:root:cjs\" \"pnpm run build:root:esm\" \"pnpm run build:root:types\"", | ||
"build:root:cjs": "tsc --project tsconfigs/tsconfig.cjs.json", | ||
"build:root:esm": "tsc --project tsconfigs/tsconfig.esm.json", | ||
"build:root:types": "tsc --project tsconfigs/tsconfig.types.json", | ||
"build-result": "pnpm run --filter @result/result build", | ||
"clean": "pnpm run clean:root && pnpm run clean:workspaces", | ||
"clean:workspaces": "pnpm run --recursive --no-sort clean", | ||
"clean:root": "rimraf --glob coverage lib lib-commonjs tsconfigs/*.tsbuildinfo", | ||
"format": "pnpm run format:root && pnpm run format:workspaces", | ||
"format:workspaces": "pnpm run --recursive --no-sort --stream format", | ||
"format:root": "prettier --write \"**/*.{cjs,js,mjs,json,ts,yaml,yml}\"", | ||
"lint": "pnpm run lint:root && pnpm run lint:workspaces", | ||
"lint:workspaces": "pnpm run --recursive --no-sort --stream lint", | ||
"lint:root": "eslint .", | ||
"lint-fix": "pnpm run lint-fix:root && pnpm run lint-fix:workspaces", | ||
"lint-fix:workspaces": "pnpm run --recursive --no-sort --stream lint-fix", | ||
"lint-fix:root": "eslint . --fix", | ||
"prepare": "husky", | ||
"test": "node scripts/unit-test.js", | ||
"test-full": "node scripts/unit-test.js", | ||
"typecheck": "tsc --project tsconfig.json --noEmit --incremental false" | ||
"test": "node scripts/unit-test.mjs --watch", | ||
"test-full": "pnpm run test-full:root && pnpm run test-full:workspaces", | ||
"test-full:workspaces": "pnpm run --recursive --no-sort --stream test-full", | ||
"test-full:root": "node scripts/unit-test.mjs --coverage", | ||
"typecheck": "pnpm run typecheck:root && pnpm run typecheck:workspaces", | ||
"typecheck:workspaces": "pnpm run --recursive --no-sort --stream typecheck", | ||
"typecheck:root": "tsc --project tsconfig.json --noEmit --incremental false" | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^29.7.0", | ||
|
@@ -61,6 +75,7 @@ | |
"@types/semver": "^7.5.8", | ||
"@typescript-eslint/eslint-plugin": "^7.8.0", | ||
"@typescript-eslint/parser": "^7.8.0", | ||
"chalk": "^5.3.0", | ||
"concurrently": "^8.2.2", | ||
"eslint": "^8.57.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"root": true, | ||
"extends": "../../configs/eslint/.eslintrc.basic.js", | ||
"ignorePatterns": ["*.cjs", "*.js", "*.mjs", "/coverage", "/lib", "/lib-commonjs"], | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"*.ts": ["eslint --cache"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Compilation | ||
|
||
/lib | ||
/lib-commonjs | ||
|
||
# Test | ||
|
||
/coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# @result/json-serializr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"name": "@result/json-serializr", | ||
"version": "0.6.0-alpha.0", | ||
"description": "A json (de)serialization implementation using serializr for @result/result", | ||
"exports": { | ||
".": { | ||
"types": "./lib/index.d.ts", | ||
"node": "./lib-commonjs/index.js", | ||
"import": "./lib/index.js", | ||
"default": "./lib-commonjs/index.js" | ||
}, | ||
"./cjs": "./lib-commonjs/index.js" | ||
}, | ||
"main": "lib-commonjs/index.js", | ||
"module": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"homepage": "https://github.com/yifanwww/rustlike-result#readme", | ||
"license": "MIT", | ||
"author": "yifanwww <[email protected]> (https://github.com/yifanwww)", | ||
"bugs": { | ||
"url": "https://github.com/yifanwww/rustlike-result/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/yifanwww/rustlike-result.git", | ||
"directory": "packages/json-serializr" | ||
}, | ||
"packageManager": "[email protected]+sha512.8e4c3550fb500e808dbc30bb0ce4dd1eb614e30b1c55245f211591ec2cdf9c611cabd34e1364b42f564bd54b3945ed0f49d61d1bbf2ec9bd74b866fcdc723276", | ||
"scripts": { | ||
"build": "concurrently -n cjs,esm,types \"pnpm run build:cjs\" \"pnpm run build:esm\" \"pnpm run build:types\"", | ||
"build:cjs": "tsc --project tsconfigs/tsconfig.cjs.json", | ||
"build:esm": "tsc --project tsconfigs/tsconfig.esm.json", | ||
"build:types": "tsc --project tsconfigs/tsconfig.types.json", | ||
"clean": "rimraf --glob coverage lib lib-commonjs tsconfigs/*.tsbuildinfo", | ||
"format": "prettier --write \"**/*.{cjs,js,mjs,json,ts,yaml,yml}\"", | ||
"lint": "eslint .", | ||
"lint-fix": "eslint . --fix", | ||
"test": "node ../../scripts/unit-test.mjs --watch", | ||
"test-full": "node ../../scripts/unit-test.mjs --coverage", | ||
"typecheck": "tsc --project tsconfig.json --noEmit --incremental false" | ||
}, | ||
"dependencies": { | ||
"@result/result": "workspace:0.6.0-alpha.0", | ||
"serializr": "^3.0.2" | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^29.7.0", | ||
"@swc/jest": "^0.2.36", | ||
"@typescript-eslint/eslint-plugin": "^7.8.0", | ||
"@typescript-eslint/parser": "^7.8.0", | ||
"concurrently": "^8.2.2", | ||
"eslint": "^8.57.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jest": "^28.5.0", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"jest": "^29.7.0", | ||
"prettier": "3.2.5", | ||
"rimraf": "^5.0.6", | ||
"typescript": "5.4.5" | ||
}, | ||
"files": [ | ||
"CHANGELOG.md", | ||
"lib", | ||
"lib-commonjs" | ||
] | ||
} |
Oops, something went wrong.