@weclapp/sdk 2.0.0-dev.6 → 2.0.0-dev.61

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/package.json CHANGED
@@ -1,72 +1,90 @@
1
1
  {
2
2
  "name": "@weclapp/sdk",
3
- "version": "2.0.0-dev.6",
4
- "description": "SDK generator based on a weclapp api swagger file",
3
+ "version": "2.0.0-dev.61",
4
+ "description": "weclapp SDK Generator",
5
5
  "author": "weclapp",
6
6
  "sideEffects": false,
7
7
  "bugs": "https://github.com/weclapp/sdk/issues",
8
8
  "homepage": "https://github.com/weclapp/sdk#readme",
9
- "repository": "git+https://github.com/weclapp/sdk.git",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/weclapp/sdk.git"
12
+ },
10
13
  "keywords": [
11
14
  "sdk",
12
15
  "generator",
13
16
  "weclapp"
14
17
  ],
15
18
  "bin": {
16
- "build-weclapp-sdk": "./bin/cli.js"
19
+ "build-weclapp-sdk": "bin/cli.js"
17
20
  },
18
21
  "files": [
19
22
  "bin",
20
23
  "dist",
21
- "tsconfig.lib.json"
24
+ "tsconfig.sdk.json"
22
25
  ],
23
26
  "engines": {
24
- "node": "^18 || ^20",
25
- "npm": "^9 || ^8"
27
+ "node": ">=20",
28
+ "npm": ">=10"
26
29
  },
27
30
  "types": "./sdk/dist/index.d.ts",
28
- "main": "./sdk/dist/index.cjs",
29
31
  "module": "./sdk/dist/index.js",
30
32
  "type": "module",
31
33
  "exports": {
32
34
  ".": {
33
35
  "types": "./sdk/dist/index.d.ts",
34
- "import": "./sdk/dist/index.js",
35
- "require": "./sdk/dist/index.cjs"
36
+ "import": "./sdk/dist/index.js"
36
37
  }
37
38
  },
38
39
  "scripts": {
39
- "cli:build": "cross-env NODE_ENV=production rollup -c rollup.config.js",
40
- "cli:watch": "cross-env NODE_ENV=development rollup -c rollup.config.js --watch",
41
- "sdk:build": "./bin/cli.js test/openapi.json --target node",
42
- "lint": "eslint src/**/*.ts",
40
+ "build": "rollup --config rollup.config.ts --configPlugin typescript={tsconfig:\\'tsconfig.node.json\\'} --configImportAttributesKey with",
41
+ "build:watch": "npm run build -- --watch",
42
+ "cli:browser:v1": "./bin/cli.js test/openapi.json --target browser",
43
+ "cli:browser.rx:v1": "./bin/cli.js test/openapi.json --target browser.rx",
44
+ "cli:browser:v2": "./bin/cli.js test/openapi_v2.json --target browser",
45
+ "cli:browser.rx:v2": "./bin/cli.js test/openapi_v2.json --target browser.rx",
46
+ "cli:browser:v3": "./bin/cli.js test/openapi_v3.json --target browser",
47
+ "cli:browser:v3:cache": "./bin/cli.js test/openapi_v3.json --target browser --cache",
48
+ "cli:browser.rx:v3": "./bin/cli.js test/openapi_v3.json --target browser.rx",
49
+ "cli:browser.rx:v3:cache": "./bin/cli.js test/openapi_v3.json --target browser.rx --cache",
50
+ "cli:node": "./bin/cli.js test/openapi.json --target node",
51
+ "cli:node:cache": "./bin/cli.js test/openapi.json --target node --cache",
52
+ "cli:node.rx": "./bin/cli.js test/openapi.json --target node.rx",
53
+ "cli:node.rx:cache": "./bin/cli.js test/openapi.json --target node.rx --cache",
54
+ "prettier": "prettier . --check",
55
+ "prettier:fix": "prettier . --write",
56
+ "test": "vitest run",
57
+ "test:coverage": "vitest run --coverage",
58
+ "lint": "eslint ./src --cache",
43
59
  "lint:fix": "npm run lint -- --fix",
44
- "ci:test": "npm run lint:fix && npm run cli:build && npm run sdk:build",
60
+ "ci": "npm run prettier && npm run lint && npm run test && npm run build && npm run cli:browser:v1 && npm run cli:browser:v2 && npm run cli:browser:v3",
45
61
  "release": "standard-version"
46
62
  },
47
63
  "devDependencies": {
48
- "@typescript-eslint/eslint-plugin": "^6.2.1",
49
- "@typescript-eslint/parser": "^6.2.1",
50
- "eslint": "^8.46.0",
51
- "rollup-plugin-string": "^3.0.0",
52
- "standard-version": "^9.5.0"
64
+ "@rollup/pluginutils": "5.1.4",
65
+ "@vitest/coverage-v8": "4.0.15",
66
+ "@vitest/eslint-plugin": "1.5.2",
67
+ "commit-and-tag-version": "12.7.0",
68
+ "eslint": "10.0.2",
69
+ "prettier": "3.3.3",
70
+ "typescript-eslint": "8.56.1",
71
+ "vite-tsconfig-paths": "^6.1.1",
72
+ "vitest": "4.0.15"
53
73
  },
54
74
  "dependencies": {
55
- "@rollup/plugin-json": "^6.0.0",
56
- "@rollup/plugin-terser": "^0.4.3",
57
- "@types/fs-extra": "^11.0.1",
58
- "@types/yargs": "^17.0.24",
59
- "chalk": "^5.3.0",
60
- "change-case": "^4.1.2",
61
- "cross-env": "^7.0.3",
62
- "dotenv": "^16.3.1",
63
- "indent-string": "^5.0.0",
64
- "openapi-types": "^12.1.3",
65
- "pretty-ms": "^8.0.0",
66
- "rollup": "^3.27.2",
67
- "rollup-plugin-ts": "^3.4.3",
68
- "typescript": "^5.1.6",
69
- "yargs": "^17.7.2"
75
+ "@rollup/plugin-terser": "1.0.0",
76
+ "@rollup/plugin-typescript": "12.1.2",
77
+ "@types/fs-extra": "11.0.1",
78
+ "@types/yargs": "17.0.33",
79
+ "chalk": "5.3.0",
80
+ "change-case": "4.1.2",
81
+ "dotenv": "16.3.1",
82
+ "indent-string": "5.0.0",
83
+ "openapi-types": "12.1.3",
84
+ "pretty-ms": "8.0.0",
85
+ "rollup": "4.59.0",
86
+ "typescript": "5.9.3",
87
+ "yargs": "17.7.2"
70
88
  },
71
89
  "peerDependencies": {
72
90
  "rxjs": "^7.8.0"
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "declaration": true,
5
+ "esModuleInterop": true,
6
+ "module": "ESNext",
7
+ "moduleResolution": "node",
8
+ "noImplicitAny": true,
9
+ "sourceMap": false,
10
+ "strict": true,
11
+ "target": "ES2022"
12
+ },
13
+ "include": ["sdk/**/*.ts"]
14
+ }
package/tsconfig.lib.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "declaration": true,
4
- "strict": true,
5
- "noImplicitAny": true,
6
- "esModuleInterop": true,
7
- "moduleResolution": "node",
8
- "module": "commonjs",
9
- "target": "ES2020",
10
- "sourceMap": false,
11
- "allowSyntheticDefaultImports": true,
12
- "baseUrl": "."
13
- },
14
- "include": [
15
- ".tmp/**/*.ts"
16
- ]
17
- }