@keplr-wallet/proto-types 0.10.2 → 0.10.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keplr-wallet/proto-types",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"author": "chainapsis",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"private": false,
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"clean": "npx zx ./proto-types-gen/scripts/clean.mjs; rm -rf node_modules; rm -rf proto-types-gen/build; rm -rf proto-types-gen/src",
|
|
12
12
|
"build": "npx zx ./proto-types-gen/scripts/proto-gen.mjs",
|
|
13
|
+
"dev": "npx zx ./proto-types-gen/scripts/proto-gen.mjs",
|
|
13
14
|
"lint-test": "eslint \"proto-types-gen/scripts/**/*\" && prettier --check \"proto-types-gen/scripts/**/*\"",
|
|
14
15
|
"lint-fix": "eslint --fix \"proto-types-gen/scripts/**/*\" && prettier --write \"proto-types-gen/scripts/**/*\""
|
|
15
16
|
},
|
|
@@ -22,5 +23,5 @@
|
|
|
22
23
|
"glob": "^7.2.0",
|
|
23
24
|
"ts-proto": "^1.106.2"
|
|
24
25
|
},
|
|
25
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "2cb09aee74eb6372b8ebf509880bd09acb898154"
|
|
26
27
|
}
|
|
@@ -123,13 +123,18 @@ function setOutputHash(root, hash) {
|
|
|
123
123
|
|
|
124
124
|
$.verbose = false;
|
|
125
125
|
|
|
126
|
+
// Move tsconfig.json to package root
|
|
127
|
+
await $`cp ${packageRoot}/proto-types-gen/tsconfig.json ${packageRoot}/tsconfig.json`;
|
|
128
|
+
|
|
126
129
|
// Build javascript output
|
|
127
|
-
|
|
128
|
-
cd(rootDir);
|
|
130
|
+
cd(packageRoot);
|
|
129
131
|
await $`npx tsc`;
|
|
130
132
|
|
|
133
|
+
// Remove used tsconfig.json
|
|
134
|
+
await $`rm ${packageRoot}/tsconfig.json`;
|
|
135
|
+
|
|
131
136
|
// Move javascript output to proto-types package
|
|
132
|
-
const buildOutDir = path.join(
|
|
137
|
+
const buildOutDir = path.join(packageRoot, "proto-types-gen/build");
|
|
133
138
|
|
|
134
139
|
// Remove previous output if exist
|
|
135
140
|
const previous = glob.sync(`${packageRoot}/**/*.+(ts|js|cjs|mjs|map)`);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"baseUrl": ".",
|
|
5
|
-
"outDir": "build",
|
|
5
|
+
"outDir": "proto-types-gen/build",
|
|
6
6
|
"declaration": true,
|
|
7
|
-
"rootDir": "src"
|
|
7
|
+
"rootDir": "proto-types-gen/src"
|
|
8
8
|
},
|
|
9
9
|
"include": [
|
|
10
|
-
"src/**/*"
|
|
10
|
+
"proto-types-gen/src/**/*"
|
|
11
11
|
]
|
|
12
12
|
}
|