declapract-typescript-ehmpathy 0.25.3 → 0.25.5

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.
@@ -4,7 +4,7 @@
4
4
  "test:commits": "LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose"
5
5
  },
6
6
  "devDependencies": {
7
- "@commitlint/cli": "@declapract{check.minVersion('13.1.0')}",
7
+ "@commitlint/cli": "@declapract{check.minVersion('17.6.7')}",
8
8
  "@commitlint/config-conventional": "@declapract{check.minVersion('13.1.0')}",
9
9
  "cz-conventional-changelog": "@declapract{check.minVersion('3.3.0')}",
10
10
  "husky": "@declapract{check.minVersion('7.0.2')}"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "scripts": {
3
- "postinstall": "npx husky install"
3
+ "postinstall": "[ -d .git ] && npx husky install"
4
4
  },
5
5
  "devDependencies": {
6
6
  "husky": "@declapract{check.minVersion('8.0.3')}"
@@ -1,5 +1,5 @@
1
1
  import fs from 'fs';
2
2
  import util from 'util';
3
3
 
4
- export const readFile = async (filePath: string) =>
4
+ export const readFile = async (filePath: string): Promise<string> =>
5
5
  util.promisify(fs.readFile)(filePath, 'utf-8');
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "declapract-typescript-ehmpathy",
3
- "version": "0.25.3",
3
+ "author": "ehmpathy",
4
4
  "description": "declapract best practices declarations for typescript",
5
+ "version": "0.25.5",
5
6
  "main": "src/index.js",
6
7
  "repository": "ehmpathy/declapract-typescript-ehmpathy",
7
8
  "homepage": "https://github.com/ehmpathy/declapract-typescript-ehmpathy",
@@ -10,62 +11,70 @@
10
11
  "/declapract.declare.yml"
11
12
  ],
12
13
  "scripts": {
13
- "build": "rm -rf ./dist && npx declapract compile",
14
+ "commit:with-cli": "npx cz",
14
15
  "fix:format:prettier": "prettier --write '**/*.ts' --config ./prettier.config.js",
15
16
  "fix:format:terraform": "terraform fmt -recursive",
16
- "fix:format": "npm run fix:format:prettier && npm run fix:format:terraform",
17
+ "fix:format": "npm run fix:format:prettier",
18
+ "fix:lint": "eslint -c ./.eslintrc.js src/**/*.ts --fix",
19
+ "build:clean": "rm dist/ -rf",
20
+ "build:compile": "npx declapract compile",
21
+ "build": "npm run build:clean && npm run build:compile",
22
+ "test:commits": "LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose",
17
23
  "test:types": "tsc -p ./tsconfig.build.json --noEmit",
18
- "test:format": "prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js",
19
- "test:lint": "echo 'todo'",
20
- "test:unit": "jest -c ./jest.unit.config.js --forceExit --coverage --verbose --passWithNoTests",
21
- "test:integration": "echo 'no op'",
24
+ "test:format:prettier": "prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js",
25
+ "test:format": "npm run test:format:prettier",
26
+ "test:lint:deps": "npx depcheck -c ./depcheckrc.yml",
27
+ "test:lint:eslint": "eslint -c ./.eslintrc.js src/**/*.ts",
28
+ "test:lint": "npm run test:lint:eslint && npm run test:lint:deps",
29
+ "test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests",
30
+ "test:integration": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests",
22
31
  "test:validate": "npm run build && npx declapract validate",
23
- "test": "npm run test:types && npm run test:format && npm run test:validate && npm run test:unit",
24
- "prepush": "npm run build && npm run test",
32
+ "test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests",
33
+ "test": "npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally && npm run test:validate",
34
+ "test:acceptance": "npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests",
35
+ "prepush": "npm run test && npm run build",
25
36
  "preversion": "npm run prepush",
26
37
  "postversion": "git push origin HEAD --tags --no-verify",
27
- "test:format:prettier": "prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js",
28
- "commit:with-cli": "npx cz",
29
- "test:commits": "LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose"
38
+ "postinstall": "[ -d .git ] && npx husky install"
30
39
  },
31
- "author": "uladkasach",
32
- "license": "ISC",
33
40
  "dependencies": {
34
- "domain-objects": "0.7.5",
35
41
  "expect": "29.4.2",
36
42
  "flat": "5.0.2",
37
43
  "lodash.uniq": "4.5.0",
38
- "type-fns": "0.7.0",
39
- "uuid": "3.4.0"
44
+ "type-fns": "0.8.1"
40
45
  },
41
46
  "peerDependencies": {
42
- "declapract": "~0.11.2"
47
+ "declapract": "0.11.2"
43
48
  },
44
49
  "devDependencies": {
45
- "@commitlint/cli": "13.1.0",
50
+ "@commitlint/cli": "17.6.7",
46
51
  "@commitlint/config-conventional": "13.1.0",
47
52
  "@trivago/prettier-plugin-sort-imports": "2.0.4",
48
53
  "@tsconfig/node-lts-strictest": "18.12.1",
49
- "@types/aws-lambda": "8.10.40",
50
54
  "@types/flat": "5.0.2",
51
55
  "@types/jest": "29.4.0",
52
56
  "@types/lodash.uniq": "4.5.7",
53
- "@types/uuid": "3.4.7",
54
57
  "@typescript-eslint/eslint-plugin": "5.46.1",
55
58
  "@typescript-eslint/parser": "5.46.1",
56
59
  "core-js": "3.26.1",
57
60
  "cz-conventional-changelog": "3.3.0",
58
61
  "depcheck": "1.4.3",
59
62
  "eslint": "8.30.0",
60
- "eslint-config-airbnb-base": "15.0.0",
61
63
  "eslint-config-airbnb-typescript": "17.0.0",
62
64
  "eslint-config-prettier": "8.5.0",
63
65
  "eslint-plugin-import": "2.26.0",
64
66
  "eslint-plugin-prettier": "4.2.1",
65
- "husky": "7.0.2",
67
+ "husky": "8.0.3",
66
68
  "jest": "29.3.1",
67
69
  "prettier": "2.8.1",
68
70
  "ts-jest": "29.0.3",
71
+ "ts-node": "10.9.1",
69
72
  "typescript": "4.9.4"
70
- }
73
+ },
74
+ "config": {
75
+ "commitizen": {
76
+ "path": "./node_modules/cz-conventional-changelog"
77
+ }
78
+ },
79
+ "bugs": "https://github.com/ehmpathy/declapract-typescript-ehmpathy/issues"
71
80
  }