@weclapp/sdk 2.0.0-dev.4 → 2.0.0-dev.41

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,80 @@
1
1
  {
2
2
  "name": "@weclapp/sdk",
3
- "version": "2.0.0-dev.4",
3
+ "version": "2.0.0-dev.41",
4
4
  "description": "SDK generator based on a weclapp api swagger file",
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,test}/**/*.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": "./bin/cli.js test/openapi.json --target browser",
43
+ "cli:browser:cache": "./bin/cli.js test/openapi.json --target browser --cache",
44
+ "cli:browser.rx": "./bin/cli.js test/openapi.json --target browser.rx",
45
+ "cli:browser.rx:cache": "./bin/cli.js test/openapi.json --target browser.rx --cache",
46
+ "cli:node": "./bin/cli.js test/openapi.json --target node",
47
+ "cli:node:cache": "./bin/cli.js test/openapi.json --target node --cache",
48
+ "cli:node.rx": "./bin/cli.js test/openapi.json --target node.rx",
49
+ "cli:node.rx:cache": "./bin/cli.js test/openapi.json --target node.rx --cache",
50
+ "prettier": "prettier . --check",
51
+ "prettier:fix": "prettier . --write",
52
+ "lint": "eslint ./src --cache",
43
53
  "lint:fix": "npm run lint -- --fix",
44
- "ci:test": "npm run lint:fix && npm run cli:build && npm run sdk:build",
54
+ "ci": "npm run prettier && npm run lint && npm run build && npm run cli:browser",
45
55
  "release": "standard-version"
46
56
  },
47
57
  "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"
58
+ "@rollup/pluginutils": "5.1.4",
59
+ "eslint": "9.20.1",
60
+ "prettier": "3.3.3",
61
+ "standard-version": "^9.5.0",
62
+ "typescript-eslint": "8.24.1"
53
63
  },
54
64
  "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"
65
+ "@rollup/plugin-terser": "0.4.4",
66
+ "@rollup/plugin-typescript": "12.1.2",
67
+ "@types/fs-extra": "11.0.1",
68
+ "@types/yargs": "17.0.33",
69
+ "chalk": "5.3.0",
70
+ "change-case": "4.1.2",
71
+ "dotenv": "16.3.1",
72
+ "indent-string": "5.0.0",
73
+ "openapi-types": "12.1.3",
74
+ "pretty-ms": "8.0.0",
75
+ "rollup": "4.34.8",
76
+ "typescript": "5.7.3",
77
+ "yargs": "17.7.2"
70
78
  },
71
79
  "peerDependencies": {
72
80
  "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
- }