@sentio/cli 2.0.0-rc.1 → 2.0.0-rc.2

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 (51) hide show
  1. package/lib/build.js +37 -32
  2. package/lib/build.js.map +1 -1
  3. package/lib/cli.js +25 -28
  4. package/lib/cli.js.map +1 -1
  5. package/lib/commands/login-server.js +31 -36
  6. package/lib/commands/login-server.js.map +1 -1
  7. package/lib/commands/run-create.js +23 -28
  8. package/lib/commands/run-create.js.map +1 -1
  9. package/lib/commands/run-login.js +28 -33
  10. package/lib/commands/run-login.js.map +1 -1
  11. package/lib/commands/run-upload.d.ts +1 -1
  12. package/lib/commands/run-upload.js +62 -68
  13. package/lib/commands/run-upload.js.map +1 -1
  14. package/lib/commands/run-version.js +9 -14
  15. package/lib/commands/run-version.js.map +1 -1
  16. package/lib/config.js +4 -11
  17. package/lib/config.js.map +1 -1
  18. package/lib/key.js +18 -24
  19. package/lib/key.js.map +1 -1
  20. package/lib/utils.js +7 -13
  21. package/lib/utils.js.map +1 -1
  22. package/package.json +8 -9
  23. package/src/build.ts +25 -11
  24. package/src/cli.ts +6 -6
  25. package/src/commands/login-server.ts +12 -12
  26. package/src/commands/run-login.ts +4 -4
  27. package/src/commands/run-upload.ts +16 -13
  28. package/src/commands/run-version.ts +1 -1
  29. package/templates/aptos/jest.config.ts +8 -0
  30. package/templates/aptos/package.json +1 -0
  31. package/templates/aptos/src/processor.ts +3 -3
  32. package/templates/aptos/tsconfig.json +3 -2
  33. package/templates/evm/jest.config.ts +8 -0
  34. package/templates/evm/package.json +1 -0
  35. package/templates/evm/src/processor.ts +3 -3
  36. package/templates/evm/tsconfig.json +3 -2
  37. package/templates/raw/jest.config.ts +8 -0
  38. package/templates/raw/package.json +1 -0
  39. package/templates/raw/tsconfig.json +3 -2
  40. package/templates/solana/jest.config.ts +8 -0
  41. package/templates/solana/package.json +1 -0
  42. package/templates/solana/src/processor.ts +1 -1
  43. package/templates/solana/tsconfig.json +3 -2
  44. package/lib/webpack.config.js +0 -50
  45. package/src/webpack.config.js +0 -50
  46. package/templates/aptos/jest.config.js +0 -7
  47. package/templates/evm/jest.config.js +0 -7
  48. package/templates/raw/jest.config.js +0 -7
  49. package/templates/raw/yarn.lock +0 -4095
  50. package/templates/solana/jest.config.js +0 -7
  51. package/templates/solana/yarn.lock +0 -4918
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
+ "importHelpers": true,
3
4
  "alwaysStrict": true,
4
5
  "sourceMap": true,
5
6
  "target": "esnext",
@@ -7,7 +8,7 @@
7
8
  "noImplicitReturns": true,
8
9
  "noImplicitAny": true,
9
10
  "module": "esnext",
10
- "moduleResolution": "node16",
11
+ "moduleResolution": "nodenext",
11
12
  "strictNullChecks": true,
12
13
  "stripInternal": true,
13
14
  "noFallthroughCasesInSwitch": true,
@@ -16,5 +17,5 @@
16
17
  "rootDir": "./src",
17
18
  "skipLibCheck": true
18
19
  },
19
- "exclude": ["dist"]
20
+ "exclude": ["dist", "jest.config.ts"]
20
21
  }
@@ -1,50 +0,0 @@
1
- /* eslint-disable */
2
- const path = require('path')
3
-
4
- module.exports = {
5
- entry: {
6
- lib: './src/processor.ts',
7
- },
8
- devtool: 'inline-source-map',
9
- module: {
10
- rules: [
11
- {
12
- test: /\.tsx?$/,
13
- use: 'ts-loader',
14
- exclude: /node_modules/,
15
- },
16
- ],
17
- },
18
- resolve: {
19
- extensions: ['.ts', '.js'],
20
- },
21
- output: {
22
- filename: '[name].js',
23
- path: path.resolve(process.cwd(), 'dist'),
24
- },
25
- target: 'node',
26
- mode: 'production',
27
- externals: [
28
- {
29
- protobufjs: 'commonjs2 protobufjs',
30
- aptos: 'commonjs2 aptos-sdk',
31
- ethers: 'commonjs2 ethers',
32
- bs58: 'commonjs2 bs58',
33
- "bignumber.js": 'commonjs2 bignumber.js',
34
- 'bn.js': 'commonjs2 bn.js',
35
- 'csv-parse': 'commonjs2 csv-parse',
36
- },
37
- function ({ context, request }, callback) {
38
- if (/^@(ethersproject|solana|project-serum|nice-grpc).*$/.test(request)) {
39
- return callback(null, 'commonjs ' + request)
40
- }
41
- if (/^nice-grpc.*$/.test(request)) {
42
- return callback(null, 'commonjs ' + request)
43
- }
44
- if (/^@sentio\/(sdk|runtime|base|protos|bigdecimal).*$/.test(request)) {
45
- return callback(null, 'commonjs ' + request)
46
- }
47
- callback()
48
- },
49
- ],
50
- }
@@ -1,50 +0,0 @@
1
- /* eslint-disable */
2
- const path = require('path')
3
-
4
- module.exports = {
5
- entry: {
6
- lib: './src/processor.ts',
7
- },
8
- devtool: 'inline-source-map',
9
- module: {
10
- rules: [
11
- {
12
- test: /\.tsx?$/,
13
- use: 'ts-loader',
14
- exclude: /node_modules/,
15
- },
16
- ],
17
- },
18
- resolve: {
19
- extensions: ['.ts', '.js'],
20
- },
21
- output: {
22
- filename: '[name].js',
23
- path: path.resolve(process.cwd(), 'dist'),
24
- },
25
- target: 'node',
26
- mode: 'production',
27
- externals: [
28
- {
29
- protobufjs: 'commonjs2 protobufjs',
30
- aptos: 'commonjs2 aptos-sdk',
31
- ethers: 'commonjs2 ethers',
32
- bs58: 'commonjs2 bs58',
33
- "bignumber.js": 'commonjs2 bignumber.js',
34
- 'bn.js': 'commonjs2 bn.js',
35
- 'csv-parse': 'commonjs2 csv-parse',
36
- },
37
- function ({ context, request }, callback) {
38
- if (/^@(ethersproject|solana|project-serum|nice-grpc).*$/.test(request)) {
39
- return callback(null, 'commonjs ' + request)
40
- }
41
- if (/^nice-grpc.*$/.test(request)) {
42
- return callback(null, 'commonjs ' + request)
43
- }
44
- if (/^@sentio\/(sdk|runtime|base|protos|bigdecimal).*$/.test(request)) {
45
- return callback(null, 'commonjs ' + request)
46
- }
47
- callback()
48
- },
49
- ],
50
- }
@@ -1,7 +0,0 @@
1
- /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2
-
3
- module.exports = {
4
- preset: 'ts-jest',
5
- testEnvironment: 'node',
6
- modulePathIgnorePatterns: ["<rootDir>/dist/"]
7
- };
@@ -1,7 +0,0 @@
1
- /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2
-
3
- module.exports = {
4
- preset: 'ts-jest',
5
- testEnvironment: 'node',
6
- modulePathIgnorePatterns: ["<rootDir>/dist/"]
7
- };
@@ -1,7 +0,0 @@
1
- /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2
-
3
- module.exports = {
4
- preset: 'ts-jest',
5
- testEnvironment: 'node',
6
- modulePathIgnorePatterns: ["<rootDir>/dist/"]
7
- };