comic-vine-sdk 1.2.6 → 1.2.8

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/.projenrc.ts CHANGED
@@ -1,41 +1,22 @@
1
1
  import { TypeScriptNpmPackage } from '@ally-murray/projen-modules';
2
2
 
3
- const repository = 'https://github.com/AllyMurray/comic-vine';
4
-
5
3
  const project = new TypeScriptNpmPackage({
6
4
  name: 'comic-vine',
7
5
  packageName: 'comic-vine-sdk',
8
6
  description: 'A JS/TS client for the Comic Vine API',
9
- authorName: 'Ally Murray',
10
- authorEmail: 'allymurray88@gmail.com',
11
7
  defaultReleaseBranch: 'main',
12
- deps: ['axios', 'clone-deep', 'zod'],
8
+ minMajorVersion: 1,
9
+ minNodeVersion: '18.0.0',
10
+ repository: 'https://github.com/AllyMurray/comic-vine',
11
+ deps: ['axios', 'zod'],
13
12
  devDeps: [
14
13
  '@ally-murray/projen-modules',
15
- '@types/clone-deep',
16
14
  'commitizen',
17
15
  'husky',
18
16
  'lint-staged',
19
17
  'nock',
20
18
  'rimraf',
21
- 'vitest',
22
19
  ],
23
- minMajorVersion: 1,
24
- projenrcTs: true,
25
- tsconfig: {
26
- compilerOptions: {
27
- module: 'Node16',
28
- target: 'ES2020',
29
- // @ts-expect-error types is missing from compilerOptions
30
- types: ['vitest/globals'],
31
- skipLibCheck: true,
32
- },
33
- },
34
- gitignore: ['.DS_Store', '*yalc*', 'test-reports'],
35
- jest: false,
36
- repository: `${repository}.git`,
37
- bugsUrl: `${repository}/issues`,
38
- homepage: `${repository}#readme`,
39
20
  keywords: [
40
21
  'comic-metadata',
41
22
  'comic-vine-api',
@@ -54,23 +35,4 @@ const project = new TypeScriptNpmPackage({
54
35
  ],
55
36
  });
56
37
 
57
- project.npmrc.addConfig('save-exact', 'true');
58
-
59
- project.testTask.prependExec('vitest --dir=src', { receiveArgs: true });
60
-
61
- project.eslint?.addOverride({
62
- files: ['*.test.ts'],
63
- rules: {
64
- 'dot-notation': 'off',
65
- 'import/no-extraneous-dependencies': [
66
- 'error',
67
- {
68
- devDependencies: true,
69
- },
70
- ],
71
- },
72
- });
73
-
74
38
  project.synth();
75
-
76
- // TODO: Sort out version number
@@ -0,0 +1,90 @@
1
+ {
2
+ "name": "comic-vine-sdk",
3
+ "version": "1.2.4",
4
+ "description": "A JS/TS client for the Comic Vine API",
5
+ "keywords": [
6
+ "comic",
7
+ "comics",
8
+ "comic-vine",
9
+ "metadata"
10
+ ],
11
+ "homepage": "https://github.com/AllyMurray/comic-vine#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/AllyMurray/comic-vine/issues"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/AllyMurray/comic-vine.git"
18
+ },
19
+ "license": "MIT",
20
+ "author": "Ally Murray",
21
+ "main": "dist/cjs/index.cjs.js",
22
+ "module": "dist/mjs/index.js",
23
+ "types": "dist/mjs/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "import": "./dist/mjs/index.js",
27
+ "require": "./dist/cjs/index.cjs.js"
28
+ }
29
+ },
30
+ "files": [
31
+ "dist/**"
32
+ ],
33
+ "scripts": {
34
+ "build": "run-s build:**",
35
+ "build:clean": "rimraf dist",
36
+ "build:esm": "tsc -p tsconfig.build.json",
37
+ "build:cjs": "tsc -p tsconfig.cjs.build.json",
38
+ "build:package-json": "bash ./scripts/create-package-json",
39
+ "test": "jest",
40
+ "format": "prettier ./src --write",
41
+ "lint": "eslint src --fix",
42
+ "prepare": "husky install",
43
+ "prepack": "npm run build",
44
+ "commit": "cz",
45
+ "semantic-release": "semantic-release"
46
+ },
47
+ "dependencies": {
48
+ "axios": "1.3.4",
49
+ "clone-deep": "4.0.1",
50
+ "zod": "3.21.4"
51
+ },
52
+ "devDependencies": {
53
+ "@semantic-release/changelog": "6.0.2",
54
+ "@semantic-release/git": "10.0.1",
55
+ "@types/clone-deep": "4.0.1",
56
+ "@types/jest": "29.5.0",
57
+ "@types/node": "16.11.59",
58
+ "@typescript-eslint/eslint-plugin": "5.55.0",
59
+ "@typescript-eslint/parser": "5.55.0",
60
+ "commitizen": "4.3.0",
61
+ "cz-conventional-changelog": "3.3.0",
62
+ "eslint": "8.36.0",
63
+ "eslint-config-prettier": "8.7.0",
64
+ "husky": "8.0.3",
65
+ "jest": "29.5.0",
66
+ "lint-staged": "13.2.0",
67
+ "nock": "13.3.0",
68
+ "npm-run-all": "4.1.5",
69
+ "prettier": "2.8.4",
70
+ "rimraf": "3.0.2",
71
+ "semantic-release": "^19.0.5",
72
+ "ts-jest": "29.0.5",
73
+ "typescript": "5.0.2"
74
+ },
75
+ "engines": {
76
+ "node": ">=14"
77
+ },
78
+ "lint-staged": {
79
+ "*.{ts,json,md}": "npm run format",
80
+ "*.ts": "npm run lint"
81
+ },
82
+ "publishConfig": {
83
+ "access": "public"
84
+ },
85
+ "config": {
86
+ "commitizen": {
87
+ "path": "./node_modules/cz-conventional-changelog"
88
+ }
89
+ }
90
+ }
package/package.json CHANGED
@@ -30,9 +30,8 @@
30
30
  "organization": false
31
31
  },
32
32
  "devDependencies": {
33
- "@ally-murray/projen-modules": "^0.0.9",
34
- "@types/clone-deep": "^4.0.2",
35
- "@types/node": "^16",
33
+ "@ally-murray/projen-modules": "^0.0.13",
34
+ "@types/node": "^18",
36
35
  "@typescript-eslint/eslint-plugin": "^6",
37
36
  "@typescript-eslint/parser": "^6",
38
37
  "commander": "^11.0.0",
@@ -48,7 +47,7 @@
48
47
  "nock": "^13.3.3",
49
48
  "npm-check-updates": "^16",
50
49
  "prettier": "^3.0.3",
51
- "projen": "0.73.9",
50
+ "projen": "0.73.15",
52
51
  "rimraf": "^5.0.1",
53
52
  "standard-version": "^9",
54
53
  "ts-node": "^10.9.1",
@@ -57,7 +56,6 @@
57
56
  },
58
57
  "dependencies": {
59
58
  "axios": "^1.5.0",
60
- "clone-deep": "^4.0.1",
61
59
  "zod": "^3.22.2"
62
60
  },
63
61
  "pnpm": {},
@@ -77,14 +75,18 @@
77
75
  "comics",
78
76
  "metadata"
79
77
  ],
78
+ "engines": {
79
+ "node": ">= 18.0.0"
80
+ },
80
81
  "main": "lib/cjs/index.js",
81
82
  "license": "MIT",
82
83
  "homepage": "https://github.com/AllyMurray/comic-vine#readme",
83
- "version": "1.2.6",
84
+ "version": "1.2.8",
84
85
  "bugs": {
85
86
  "url": "https://github.com/AllyMurray/comic-vine/issues"
86
87
  },
87
88
  "types": "lib/cjs/index.d.ts",
89
+ "type": "module",
88
90
  "module": "lib/esm/index.js",
89
91
  "exports": {
90
92
  ".": {
@@ -98,6 +100,5 @@
98
100
  }
99
101
  }
100
102
  },
101
- "type": "module",
102
103
  "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
103
104
  }