@sentio/cli 1.0.3 → 1.0.4

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 (42) hide show
  1. package/package.json +4 -2
  2. package/src/commands/run-create.ts +6 -3
  3. package/src/utils.ts +1 -1
  4. package/templates/solana/.gitignore +107 -0
  5. package/templates/solana/jest.config.js +7 -0
  6. package/templates/solana/package.json +20 -0
  7. package/templates/solana/sentio.yaml +3 -0
  8. package/templates/solana/src/processor.test.ts +14 -0
  9. package/templates/solana/src/processor.ts +16 -0
  10. package/templates/solana/tsconfig.json +20 -0
  11. package/templates/solana/yarn.lock +4095 -0
  12. package/lib/build.d.ts +0 -2
  13. package/lib/build.js +0 -80
  14. package/lib/build.js.map +0 -1
  15. package/lib/cli.d.ts +0 -2
  16. package/lib/cli.js +0 -186
  17. package/lib/cli.js.map +0 -1
  18. package/lib/commands/login-server.d.ts +0 -7
  19. package/lib/commands/login-server.js +0 -133
  20. package/lib/commands/login-server.js.map +0 -1
  21. package/lib/commands/run-create.d.ts +0 -1
  22. package/lib/commands/run-create.js +0 -112
  23. package/lib/commands/run-create.js.map +0 -1
  24. package/lib/commands/run-login.d.ts +0 -1
  25. package/lib/commands/run-login.js +0 -136
  26. package/lib/commands/run-login.js.map +0 -1
  27. package/lib/commands/run-version.d.ts +0 -1
  28. package/lib/commands/run-version.js +0 -39
  29. package/lib/commands/run-version.js.map +0 -1
  30. package/lib/config.d.ts +0 -14
  31. package/lib/config.js +0 -64
  32. package/lib/config.js.map +0 -1
  33. package/lib/key.d.ts +0 -2
  34. package/lib/key.js +0 -44
  35. package/lib/key.js.map +0 -1
  36. package/lib/upload.d.ts +0 -2
  37. package/lib/upload.js +0 -189
  38. package/lib/upload.js.map +0 -1
  39. package/lib/utils.d.ts +0 -2
  40. package/lib/utils.js +0 -23
  41. package/lib/utils.js.map +0 -1
  42. package/lib/webpack.config.js +0 -47
@@ -1,47 +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 (request.startsWith("@sentio/sdk")) {
42
- return callback(null, 'commonjs2 ' + request)
43
- }
44
- callback()
45
- },
46
- ],
47
- }