@sentio/cli 1.37.2 → 1.37.3

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.
@@ -0,0 +1,50 @@
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).*$/.test(request)) {
45
+ return callback(null, 'commonjs ' + request)
46
+ }
47
+ callback()
48
+ },
49
+ ],
50
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sentio/cli",
3
3
  "license": "Apache-2.0",
4
4
  "private": false,
5
- "version": "1.37.2",
5
+ "version": "1.37.3",
6
6
  "scripts": {
7
7
  "compile": "tsc -p . && cp src/webpack.config.js lib/",
8
8
  "build": "yarn compile",
@@ -54,5 +54,5 @@
54
54
  "engines": {
55
55
  "node": ">=16"
56
56
  },
57
- "gitHead": "a81f7882edb6c2fb6a9735131eff35055309fa66"
57
+ "gitHead": "81fe678056a4f76621990a35e545e59bf3b44cae"
58
58
  }
@@ -3,7 +3,6 @@ import commandLineUsage from 'command-line-usage'
3
3
  import path from 'path'
4
4
  import fs from 'fs-extra'
5
5
  import chalk from 'chalk'
6
- import { getCliVersion } from '../utils'
7
6
  import latestVersion from 'latest-version'
8
7
 
9
8
  export async function runCreate(argv: string[]) {