@devvit/public-api 0.11.0-next-2024-08-12-bfcda6888.0 → 0.11.0-next-2024-08-13-f04661130.0
Sign up to get free protection for your applications and to get access to all the features.
- package/devvit/internals/context.js +2 -2
- package/devvit/internals/public-api-version.d.ts +13 -0
- package/devvit/internals/public-api-version.d.ts.map +1 -0
- package/devvit/internals/public-api-version.js +12 -0
- package/meta.json +10 -16
- package/meta.min.json +11 -17
- package/package.json +7 -7
- package/public-api.d.ts +13 -0
- package/public-api.iife.js +4 -78
- package/public-api.min.js +4 -4
- package/public-api.min.js.map +4 -4
- package/version.json +0 -75
package/version.json
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "@devvit/public-api",
|
3
|
-
"version": "0.11.0-dev",
|
4
|
-
"license": "BSD-3-Clause",
|
5
|
-
"repository": {
|
6
|
-
"type": "git",
|
7
|
-
"url": "https://developers.reddit.com/"
|
8
|
-
},
|
9
|
-
"type": "module",
|
10
|
-
"exports": {
|
11
|
-
".": "./dist/index.js",
|
12
|
-
"./package.json": "./package.json",
|
13
|
-
"./*": "./dist/*"
|
14
|
-
},
|
15
|
-
"main": "./dist/index.js",
|
16
|
-
"files": [
|
17
|
-
"dist/**"
|
18
|
-
],
|
19
|
-
"scripts": {
|
20
|
-
"build": "yarn build:icon-types && yarn build:semantic-colors && tsc && cp -af devvit.tsconfig.json dist/ && yarn build:types && yarn build:min && yarn build:unmin",
|
21
|
-
"build:icon-types": "make-icons src/types/icons.ts",
|
22
|
-
"build:min": "esbuild --bundle --sourcemap=linked --target=es2020 --format=esm --metafile=dist/meta.min.json --outfile=dist/public-api.min.js --external:@devvit/protos --minify src/index.ts",
|
23
|
-
"build:semantic-colors": "node scripts/make-semantic-colors.js",
|
24
|
-
"build:types": "api-extractor run && sed -ne '/declare global {/,$ p' src/devvit/Devvit.ts >> dist/public-api.d.ts",
|
25
|
-
"build:unmin": "esbuild --bundle --sourcemap=inline --target=es2020 --format=iife --metafile=dist/meta.json --outfile=dist/public-api.iife.js --global-name=devvitPublicAPI src/index.ts",
|
26
|
-
"clean": "rm -rf .turbo api-extractor coverage dist src/devvit/internals/semanticColors.ts src/types/icons.ts || :",
|
27
|
-
"clobber": "yarn clean && rm -rf node_modules",
|
28
|
-
"dev": "tsc -w",
|
29
|
-
"dev:build": "chokidar ./src --command 'yarn build' --ignore './src/types/icons.ts' --ignore './src/devvit/internals/semanticColors.ts'",
|
30
|
-
"lint": "redlint .",
|
31
|
-
"lint:fix": "yarn lint --fix",
|
32
|
-
"prepublishOnly": "publish-package-json",
|
33
|
-
"test": "yarn test:unit && yarn test:types && yarn test:size",
|
34
|
-
"test:size": "filesize",
|
35
|
-
"test:types": "tsc --noEmit",
|
36
|
-
"test:unit": "vitest run",
|
37
|
-
"test:unit-with-coverage": "vitest run --coverage"
|
38
|
-
},
|
39
|
-
"types": "./dist/index.d.ts",
|
40
|
-
"dependencies": {
|
41
|
-
"@devvit/protos": "0.11.0-dev",
|
42
|
-
"@devvit/shared-types": "0.11.0-dev",
|
43
|
-
"base64-js": "1.5.1",
|
44
|
-
"clone-deep": "4.0.1",
|
45
|
-
"core-js": "3.27.2",
|
46
|
-
"lodash.isequal": "4.5.0"
|
47
|
-
},
|
48
|
-
"devDependencies": {
|
49
|
-
"@ampproject/filesize": "4.3.0",
|
50
|
-
"@devvit/eslint-config": "0.11.0-dev",
|
51
|
-
"@devvit/repo-tools": "0.11.0-dev",
|
52
|
-
"@devvit/tsconfig": "0.11.0-dev",
|
53
|
-
"@microsoft/api-extractor": "7.41.0",
|
54
|
-
"@reddit/faceplate-ui": "16.1.0",
|
55
|
-
"@types/clone-deep": "4.0.1",
|
56
|
-
"@types/core-js": "2.5.6",
|
57
|
-
"@types/lodash.isequal": "4.5.6",
|
58
|
-
"@vitest/coverage-c8": "0.32.0",
|
59
|
-
"chokidar-cli": "3.0.0",
|
60
|
-
"esbuild": "0.23.0",
|
61
|
-
"eslint": "8.9.0",
|
62
|
-
"typescript": "5.3.2",
|
63
|
-
"vitest": "1.6.0"
|
64
|
-
},
|
65
|
-
"publishConfig": {
|
66
|
-
"directory": "dist"
|
67
|
-
},
|
68
|
-
"filesize": {
|
69
|
-
"dist/public-api.min.js": {
|
70
|
-
"gzip": "78 KB",
|
71
|
-
"none": "255 KB"
|
72
|
-
}
|
73
|
-
},
|
74
|
-
"source": "./src/index.ts"
|
75
|
-
}
|