@replit/protocol 0.4.18 → 0.4.19
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/README.md +4 -4
- package/gen.sh +11 -1
- package/iotester/index.d.ts +38258 -1769
- package/iotester/index.js +95975 -4227
- package/jsdoc.js +0 -0
- package/main/index.d.ts +5851 -5736
- package/main/index.js +17484 -16510
- package/package.json +7 -8
- package/pnpm-workspace.yaml +6 -0
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Developing
|
|
2
2
|
* Change goval/api/types.proto
|
|
3
3
|
* In this directory:
|
|
4
|
-
* `
|
|
4
|
+
* `pnpm build`
|
|
5
5
|
* Change repl-it-web/package.json:
|
|
6
6
|
```
|
|
7
7
|
"@replit/protocol": "^0.4.9",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
After your `.proto` changes are merged:
|
|
25
25
|
- create a new branch
|
|
26
26
|
- cd into `api/npm`
|
|
27
|
-
- `
|
|
27
|
+
- `pnpm --no-git-tag-version version <new-version>`
|
|
28
28
|
- submit a pull request
|
|
29
29
|
- merged
|
|
30
30
|
- pull latest `main`
|
|
31
31
|
- cd into `api/npm`
|
|
32
|
-
- `
|
|
33
|
-
- `
|
|
32
|
+
- `pnpm login` if you're not authed (will need to be in our npm org)
|
|
33
|
+
- `pnpm publish`
|
|
34
34
|
- it will run a build
|
|
35
35
|
- you be asked for 2fa
|
|
36
36
|
- package will be published
|
package/gen.sh
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
set -e
|
|
4
4
|
|
|
5
|
+
REPO_ROOT_DIR=$(git rev-parse --show-toplevel)
|
|
5
6
|
export PATH="${PATH}:./node_modules/.bin"
|
|
6
7
|
export TARGET="${TARGET:-./index}"
|
|
7
8
|
|
|
@@ -17,7 +18,16 @@ pbjs \
|
|
|
17
18
|
-w default \
|
|
18
19
|
-o "${TARGET}.js" \
|
|
19
20
|
--root "${TARGET}" \
|
|
20
|
-
"
|
|
21
|
+
--path "${REPO_ROOT_DIR}" \
|
|
22
|
+
"$REPO_ROOT_DIR/api/types.proto" \
|
|
23
|
+
"$REPO_ROOT_DIR/api/client.proto" \
|
|
24
|
+
"$REPO_ROOT_DIR/api/signing.proto" \
|
|
25
|
+
"$REPO_ROOT_DIR/api/token/token.proto" \
|
|
26
|
+
"$REPO_ROOT_DIR/api/lore/lore.proto" \
|
|
27
|
+
"$REPO_ROOT_DIR/api/lore/service.proto" \
|
|
28
|
+
"$REPO_ROOT_DIR/api/features/features.proto" \
|
|
29
|
+
"$REPO_ROOT_DIR/api/repl/repl.proto" \
|
|
30
|
+
"$REPO_ROOT_DIR/api/powerup.proto" \
|
|
21
31
|
|
|
22
32
|
if [ "$MODE" = "fix" ]; then
|
|
23
33
|
# TODO: Remove this hack
|