@devvit/protos 0.10.20-next-2024-05-03-b0e9ed4bc.0 → 0.10.20-next-2024-05-06-a9757fbcc.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/protos",
3
- "version": "0.10.20-next-2024-05-03-b0e9ed4bc.0",
3
+ "version": "0.10.20-next-2024-05-06-a9757fbcc.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,8 @@
11
11
  "scripts": {
12
12
  "build": "yarn gen-protos && yarn build:docs && tsc",
13
13
  "build:docs": "PROTO_TYPES_ONLY=1 yarn gen-protos",
14
- "clean": "rm -rf .turbo coverage dist src/types docs.json docs src/index.ts src/twirp-server.ts",
14
+ "build:min": "esbuild --bundle --format=esm --metafile=dist/meta.min.json --minify --outfile=dist/protos.min.js --sourcemap=linked --target=es2020 src/index.ts",
15
+ "clean": "rm -rf .turbo coverage dist src/types docs.json docs",
15
16
  "clobber": "yarn clean && rm -rf node_modules",
16
17
  "dev:build": "chokidar ./schema --command 'yarn build'",
17
18
  "format": "./scripts/format.mjs",
@@ -22,7 +23,8 @@
22
23
  "prepublish-cleanup": "node ./scripts/prepublish-cleanup.js",
23
24
  "prepublishOnly": "cp -a ./schema ./dist && yarn prepublish-cleanup && publish-package-json",
24
25
  "redditapi:validate": "node ./scripts/redditapi/validate-protos.js",
25
- "test": "yarn test:unit && yarn test:types",
26
+ "test": "yarn test:unit && yarn test:types && yarn test:size",
27
+ "test:size": "yarn build:min && filesize",
26
28
  "test:types": "tsc --noEmit && tsc --noEmit --project scripts",
27
29
  "test:unit": "vitest run",
28
30
  "test:unit-with-coverage": "vitest run --coverage"
@@ -41,11 +43,13 @@
41
43
  }
42
44
  },
43
45
  "devDependencies": {
46
+ "@ampproject/filesize": "4.3.0",
44
47
  "@devvit/eslint-config": "0.10.19",
45
48
  "@devvit/repo-tools": "0.10.19",
46
- "@devvit/tsconfig": "0.10.20-next-2024-05-03-b0e9ed4bc.0",
49
+ "@devvit/tsconfig": "0.10.20-next-2024-05-06-a9757fbcc.0",
47
50
  "@types/long": "4.0.2",
48
51
  "chokidar-cli": "3.0.0",
52
+ "esbuild": "0.18.12",
49
53
  "eslint": "8.9.0",
50
54
  "glob": "10.3.10",
51
55
  "ts-proto": "1.172.0",
@@ -56,5 +60,11 @@
56
60
  "publishConfig": {
57
61
  "directory": "dist"
58
62
  },
59
- "gitHead": "10fd46fd76f915822037ebfb5a71d9f3230ca87f"
63
+ "filesize": {
64
+ "dist/protos.min.js": {
65
+ "gzip": "283.7 KB",
66
+ "none": "2051.1 KB"
67
+ }
68
+ },
69
+ "gitHead": "35fab6835e502ea8f72d9cb1426a465826541091"
60
70
  }