resumon 1.0.75 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,23 +5,14 @@
5
5
  </p>
6
6
 
7
7
  <p align="center">
8
- <a href="https://resumon.yeger.eu">
9
- Documentation
10
- </a>
11
- </p>
12
-
13
- <p align="center">
14
- <a href="https://github.com/DerYeger/resumon/actions/workflows/ci.yml">
15
- <img alt="CI" src="https://img.shields.io/github/workflow/status/DerYeger/resumon/CI?label=ci&logo=github&color=#4DC71F">
8
+ <a href="https://github.com/DerYeger/yeger/actions/workflows/ci.yml">
9
+ <img alt="CI" src="https://img.shields.io/github/workflow/status/DerYeger/yeger/CI?label=ci&logo=github&color=#4DC71F">
16
10
  </a>
17
11
  <a href="https://www.npmjs.com/package/resumon">
18
12
  <img alt="NPM" src="https://img.shields.io/npm/v/resumon?logo=npm">
19
13
  </a>
20
- <a href="https://codecov.io/gh/DerYeger/resumon">
21
- <img alt="Coverage" src="https://codecov.io/gh/DerYeger/resumon/branch/master/graph/badge.svg?token=p35W6u2noe">
22
- </a>
23
- <a href="https://lgtm.com/projects/g/DerYeger/resumon">
24
- <img alt="LGTM Grade" src="https://img.shields.io/lgtm/grade/javascript/github/DerYeger/resumon?logo=lgtm">
14
+ <a href="https://app.codecov.io/gh/DerYeger/yeger/tree/main/packages/resumon">
15
+ <img alt="Coverage" src="https://codecov.io/gh/DerYeger/yeger/branch/main/graph/badge.svg?token=DjcvNlg4hd&flag=resumon">
25
16
  </a>
26
17
  <a href="https://opensource.org/licenses/MIT">
27
18
  <img alt="MIT" src="https://img.shields.io/npm/l/resumon?color=%234DC71F">
@@ -45,18 +36,18 @@ $ npm install resumon
45
36
 
46
37
  ```bash
47
38
  # install dependencies
48
- $ yarn install
39
+ $ pnpm install
49
40
 
50
41
  # build for production
51
- $ yarn build
42
+ $ pnpm build
52
43
 
53
44
  # lint project files
54
- $ yarn lint
45
+ $ pnpm lint
55
46
 
56
47
  # run tests
57
- $ yarn test
48
+ $ pnpm test
58
49
  ```
59
50
 
60
51
  ## License
61
52
 
62
- [MIT](./LICENSE) - Copyright &copy; Jan Müller
53
+ [MIT](https://github.com/DerYeger/yeger/blob/main/packages/resumon/LICENSE) - Copyright &copy; Jan Müller
File without changes
@@ -1,4 +1,4 @@
1
- import { Failed, Result } from './result';
1
+ import type { Failed, Result } from './result';
2
2
  export declare class Err<D, E> implements Result<D, E>, Failed<E> {
3
3
  private readonly error;
4
4
  readonly isOk = false;
@@ -1,4 +1,4 @@
1
- import { Result, Succeeded } from './result';
1
+ import type { Result, Succeeded } from './result';
2
2
  export declare class Ok<D, E> implements Result<D, E>, Succeeded<D> {
3
3
  private readonly data;
4
4
  readonly isOk = true;
package/package.json CHANGED
@@ -1,83 +1,54 @@
1
1
  {
2
2
  "name": "resumon",
3
+ "version": "1.1.0",
3
4
  "description": "A tiny TypeScript result monad.",
4
- "version": "1.0.75",
5
- "license": "MIT",
6
- "repository": "github:DerYeger/resumon",
7
- "homepage": "https://resumon.yeger.eu",
8
- "bugs": {
9
- "url": "https://github.com/DerYeger/resumon/issues"
10
- },
11
5
  "author": {
12
6
  "name": "Jan Müller",
13
7
  "url": "https://github.com/DerYeger"
14
8
  },
9
+ "license": "MIT",
10
+ "homepage": "https://github.com/DerYeger/yeger/tree/main/packages/resumon",
11
+ "repository": "github:DerYeger/yeger",
12
+ "bugs": {
13
+ "url": "https://github.com/DerYeger/yeger/issues"
14
+ },
15
15
  "keywords": [
16
16
  "result",
17
17
  "monad",
18
18
  "typescript"
19
19
  ],
20
- "scripts": {
21
- "prepare": "husky install",
22
- "prebuild": "rimraf ./dist",
23
- "build": "tsc --noEmit && vite build",
24
- "docs:dev": "vitepress dev docs",
25
- "docs:build": "vitepress build docs",
26
- "lint": "yarn lint:prettier && yarn lint:eslint",
27
- "lint:commits": "yarn commitlint --from=HEAD~1",
28
- "lint:eslint": "eslint \"./**/*.{js,ts,vue}\"",
29
- "lint:prettier": "prettier --check \"./**/*.{js,json,html,scss,ts,vue,yml}\"",
30
- "fix": "yarn pretty && yarn lint:eslint --fix ",
31
- "test": "vitest --api --open",
32
- "test:ci": "rimraf ./coverage && c8 --reporter=lcov --reporter=text --all --src \"src\" --include \"src/*\" vitest --run",
33
- "test:run": "vitest --run",
34
- "pretty": "prettier --write \"./**/*.{js,json,html,scss,ts,vue,yml}\"",
35
- "prepublishOnly": "yarn build"
36
- },
37
- "files": [
38
- "dist"
39
- ],
40
- "main": "./dist/resumon.umd.js",
41
- "module": "./dist/resumon.es.js",
20
+ "sideEffects": false,
42
21
  "exports": {
43
22
  ".": {
44
- "import": "./dist/resumon.es.js",
45
- "require": "./dist/resumon.umd.js"
23
+ "require": "./dist/resumon.umd.js",
24
+ "import": "./dist/resumon.es.mjs"
46
25
  }
47
26
  },
27
+ "main": "./dist/resumon.umd.js",
28
+ "module": "./dist/resumon.es.mjs",
48
29
  "types": "dist/types/main.d.ts",
49
- "sideEffects": false,
30
+ "files": [
31
+ "dist"
32
+ ],
50
33
  "devDependencies": {
51
- "@commitlint/cli": "17.2.0",
52
- "@commitlint/config-conventional": "17.2.0",
53
- "@types/node": "18.11.12",
54
- "@typescript-eslint/eslint-plugin": "5.43.0",
55
- "@typescript-eslint/parser": "5.43.0",
56
- "@vitest/ui": "0.25.6",
34
+ "@types/node": "18.11.13",
35
+ "@vitest/ui": "0.25.7",
57
36
  "@vue/component-compiler-utils": "3.3.0",
58
37
  "c8": "7.12.0",
59
- "eslint": "8.29.0",
60
- "eslint-config-prettier": "8.5.0",
61
- "eslint-plugin-import": "2.26.0",
62
- "eslint-plugin-prettier": "4.2.1",
63
- "eslint-plugin-tsdoc": "0.2.17",
64
- "eslint-plugin-unused-imports": "2.0.0",
65
- "eslint-plugin-vue": "9.8.0",
66
- "husky": "8.0.2",
67
- "lint-staged": "13.1.0",
68
- "prettier": "2.8.1",
69
- "rimraf": "3.0.2",
70
38
  "typescript": "4.9.4",
71
39
  "vite": "4.0.0",
72
40
  "vite-plugin-dts": "1.7.1",
73
- "vitepress": "1.0.0-alpha.30",
74
- "vitest": "0.25.6"
41
+ "vitest": "0.25.7",
42
+ "@yeger/tsconfig": "1.1.0"
75
43
  },
76
44
  "publishConfig": {
77
45
  "access": "public"
78
46
  },
79
- "lint-staged": {
80
- "*.{js,json,html,scss,ts,vue,yml}": "prettier --write",
81
- "*.{js,json,ts,vue}": "eslint --fix"
47
+ "scripts": {
48
+ "build": "vite build",
49
+ "dev": "vite build --watch",
50
+ "lint": "yeger-lint",
51
+ "test": "vitest run --coverage",
52
+ "typecheck": "tsc --noEmit"
82
53
  }
83
- }
54
+ }