Skip to content

Commit

Permalink
chore: delete old package code
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanwww committed Nov 9, 2024
1 parent 36f1e92 commit 39ec0c0
Show file tree
Hide file tree
Showing 32 changed files with 13 additions and 5,896 deletions.
8 changes: 0 additions & 8 deletions .eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions .lintstagedrc

This file was deleted.

12 changes: 0 additions & 12 deletions .prettierignore

This file was deleted.

108 changes: 13 additions & 95 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,8 @@
{
"name": "rustlike-result",
"version": "0.5.1",
"description": "Rust-like Result for Javascript",
"exports": {
".": {
"types": "./lib/index.d.ts",
"node": "./lib-commonjs/index.js",
"import": "./lib/index.js",
"default": "./lib-commonjs/index.js"
},
"./serializr": {
"types": "./lib/serializr/index.d.ts",
"node": "./lib-commonjs/serializr/index.js",
"import": "./lib/serializr/index.js",
"default": "./lib-commonjs/serializr/index.js"
},
"./typeorm": {
"types": "./lib/typeorm/index.d.ts",
"node": "./lib-commonjs/typeorm/index.js",
"import": "./lib/typeorm/index.js",
"default": "./lib-commonjs/typeorm/index.js"
},
"./cjs": "./lib-commonjs/index.js",
"./cjs/serializr": "./lib-commonjs/serializr/index.js",
"./cjs/typeorm": "./lib-commonjs/typeorm/index.js"
},
"main": "lib-commonjs/index.js",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"version": "0.0.0",
"description": "",
"private": true,
"homepage": "https://github.com/yifanwww/rustlike-result#readme",
"license": "MIT",
"author": "yifanwww <[email protected]> (https://github.com/yifanwww)",
Expand All @@ -40,86 +15,29 @@
},
"packageManager": "[email protected]+sha512.8e4c3550fb500e808dbc30bb0ce4dd1eb614e30b1c55245f211591ec2cdf9c611cabd34e1364b42f564bd54b3945ed0f49d61d1bbf2ec9bd74b866fcdc723276",
"scripts": {
"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": "pnpm run --recursive --stream build",
"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",
"clean": "pnpm run --recursive --no-sort clean",
"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",
"lint": "pnpm run --recursive --no-sort --stream lint",
"lint-fix": "pnpm run --recursive --no-sort --stream lint-fix",
"prepare": "husky",
"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"
"test-full": "pnpm run --recursive --no-sort --stream test-full",
"typecheck": "pnpm run --recursive --no-sort --stream typecheck"
},
"engines": {
"pnpm": ">=9"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@swc/jest": "^0.2.36",
"@types/node": "^20.12.11",
"@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",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.5.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"prettier": "3.2.5",
"rimraf": "^5.0.6",
"semver": "^7.6.2",
"serializr": "^3.0.2",
"typeorm": "^0.3.0",
"typescript": "5.4.5"
},
"peerDependencies": {
"serializr": "^3.0.2",
"typeorm": "^0.3.0"
},
"peerDependenciesMeta": {
"serializr": {
"optional": true
},
"typeorm": {
"optional": true
}
},
"files": [
"CHANGELOG.md",
"lib",
"lib-commonjs"
],
"keywords": [
"rust",
"rustlike",
"result",
"rust-result",
"rustlike-result",
"try-catch",
"error-handler",
"error-handing",
"catch",
"error"
]
}
}
45 changes: 0 additions & 45 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 39ec0c0

Please sign in to comment.