inanis 0.0.2 → 0.0.3-beta.1

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.
Files changed (3) hide show
  1. package/deploy.ts +18 -0
  2. package/package.json +65 -63
  3. package/tsconfig.json +1 -0
package/deploy.ts ADDED
@@ -0,0 +1,18 @@
1
+ import fsx from 'fs-extra'
2
+ import semver from 'semver'
3
+ import Package from './package.json'
4
+ import { buildTools } from './src/build-tools'
5
+
6
+ const main = async() => {
7
+ const { exec } = buildTools
8
+ Package.version = semver.inc(Package.version, 'prerelease', 'beta') || ''
9
+ fsx.writeFileSync('./package.json', JSON.stringify(Package, null, 4))
10
+ exec([
11
+ 'yarn build',
12
+ 'git add .',
13
+ 'git commit -m \'update\'',
14
+ 'git push'
15
+ ])
16
+ }
17
+
18
+ main()
package/package.json CHANGED
@@ -1,64 +1,66 @@
1
1
  {
2
- "name": "inanis",
3
- "version": "0.0.2",
4
- "description": "Micro Service Best Tools.",
5
- "main": "./dist/index.js",
6
- "scripts": {
7
- "test": "nyc mocha --require ts-node/register ./lib/**/*.test.ts ./lib/*.test.ts",
8
- "build": "cross-env webpack --progress",
9
- "prepare": "ts-patch install -s",
10
- "deploy": "yarn build && git add . && git commit -m 'update' && git push"
11
- },
12
- "author": "khczhihao",
13
- "devDependencies": {
14
- "@babel/core": "^7.19.3",
15
- "@babel/preset-env": "^7.19.3",
16
- "@types/aws-lambda": "^8.10.106",
17
- "@types/chai": "^4.3.3",
18
- "@types/express": "^4.17.14",
19
- "@types/fs-extra": "^9.0.13",
20
- "@types/jsonwebtoken": "^8.5.9",
21
- "@types/mocha": "^9.1.1",
22
- "@types/node": "^13.13.45",
23
- "@types/node-schedule": "^2.1.0",
24
- "@types/websocket": "^1.0.5",
25
- "@typescript-eslint/eslint-plugin": "^5.39.0",
26
- "@typescript-eslint/parser": "^5.39.0",
27
- "aws-lambda": "^1.0.7",
28
- "chai": "^4.3.6",
29
- "cross-env": "^7.0.3",
30
- "eslint": "^8.25.0",
31
- "eslint-webpack-plugin": "^3.2.0",
32
- "mocha": "^9.1.3",
33
- "nyc": "^15.1.0",
34
- "openapi-types": "^12.0.2",
35
- "ts-loader": "^9.3.1",
36
- "ts-node": "^10.9.1",
37
- "ts-patch": "^2.0.2",
38
- "tsconfig-paths-webpack-plugin": "^4.0.0",
39
- "typescript": "^4.8.4",
40
- "typescript-transform-paths": "^3.3.1",
41
- "webpack": "^5.74.0",
42
- "webpack-cli": "^4.10.0"
43
- },
44
- "dependencies": {
45
- "@sodaru/yup-to-json-schema": "^1.0.5",
46
- "aws-sdk": "^2.1231.0",
47
- "axios": "^1.1.3",
48
- "change-case": "^4.1.2",
49
- "dayjs": "^1.11.5",
50
- "fs-extra": "^10.1.0",
51
- "google-auth-library": "^8.6.0",
52
- "js-beautify": "^1.14.7",
53
- "js-yaml": "^4.1.0",
54
- "json-schema-to-typescript": "^11.0.2",
55
- "json-to-pretty-yaml": "^1.2.2",
56
- "jsonwebtoken": "^8.5.1",
57
- "mongodb": "^4.10.0",
58
- "node-schedule": "^2.1.0",
59
- "power-helper": "^0.4.9",
60
- "websocket": "^1.0.34",
61
- "yaml": "^2.1.3",
62
- "yup": "^0.32.11"
63
- }
64
- }
2
+ "name": "inanis",
3
+ "version": "0.0.3-beta.1",
4
+ "description": "Micro Service Best Tools.",
5
+ "main": "./dist/index.js",
6
+ "scripts": {
7
+ "test": "nyc mocha --require ts-node/register ./lib/**/*.test.ts ./lib/*.test.ts",
8
+ "build": "cross-env webpack --progress",
9
+ "prepare": "ts-patch install -s",
10
+ "deploy": "ts-node ./deploy.ts"
11
+ },
12
+ "author": "khczhihao",
13
+ "devDependencies": {
14
+ "@babel/core": "^7.19.3",
15
+ "@babel/preset-env": "^7.19.3",
16
+ "@types/aws-lambda": "^8.10.106",
17
+ "@types/chai": "^4.3.3",
18
+ "@types/express": "^4.17.14",
19
+ "@types/fs-extra": "^9.0.13",
20
+ "@types/jsonwebtoken": "^8.5.9",
21
+ "@types/mocha": "^9.1.1",
22
+ "@types/node": "^13.13.45",
23
+ "@types/node-schedule": "^2.1.0",
24
+ "@types/semver": "^7.3.13",
25
+ "@types/websocket": "^1.0.5",
26
+ "@typescript-eslint/eslint-plugin": "^5.39.0",
27
+ "@typescript-eslint/parser": "^5.39.0",
28
+ "aws-lambda": "^1.0.7",
29
+ "chai": "^4.3.6",
30
+ "cross-env": "^7.0.3",
31
+ "eslint": "^8.25.0",
32
+ "eslint-webpack-plugin": "^3.2.0",
33
+ "mocha": "^9.1.3",
34
+ "nyc": "^15.1.0",
35
+ "openapi-types": "^12.0.2",
36
+ "semver": "^7.3.8",
37
+ "ts-loader": "^9.3.1",
38
+ "ts-node": "^10.9.1",
39
+ "ts-patch": "^2.0.2",
40
+ "tsconfig-paths-webpack-plugin": "^4.0.0",
41
+ "typescript": "^4.8.4",
42
+ "typescript-transform-paths": "^3.3.1",
43
+ "webpack": "^5.74.0",
44
+ "webpack-cli": "^4.10.0"
45
+ },
46
+ "dependencies": {
47
+ "@sodaru/yup-to-json-schema": "^1.0.5",
48
+ "aws-sdk": "^2.1231.0",
49
+ "axios": "^1.1.3",
50
+ "change-case": "^4.1.2",
51
+ "dayjs": "^1.11.5",
52
+ "fs-extra": "^10.1.0",
53
+ "google-auth-library": "^8.6.0",
54
+ "js-beautify": "^1.14.7",
55
+ "js-yaml": "^4.1.0",
56
+ "json-schema-to-typescript": "^11.0.2",
57
+ "json-to-pretty-yaml": "^1.2.2",
58
+ "jsonwebtoken": "^8.5.1",
59
+ "mongodb": "^4.10.0",
60
+ "node-schedule": "^2.1.0",
61
+ "power-helper": "^0.4.9",
62
+ "websocket": "^1.0.34",
63
+ "yaml": "^2.1.3",
64
+ "yup": "^0.32.11"
65
+ }
66
+ }
package/tsconfig.json CHANGED
@@ -11,6 +11,7 @@
11
11
  "rootDir": "src",
12
12
  "baseUrl": ".",
13
13
  "esModuleInterop": true,
14
+ "resolveJsonModule": true,
14
15
  "skipLibCheck": true,
15
16
  "allowJs": true,
16
17
  "allowSyntheticDefaultImports": true,