@devvit/public-api 0.11.0-next-2024-08-14-961a212a4.0 → 0.11.0-next-2024-08-14-0fd71c398.0

Sign up to get free protection for your applications and to get access to all the features.
package/version.json ADDED
@@ -0,0 +1,75 @@
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
+ }
@@ -1,13 +0,0 @@
1
- /**
2
- * @devvit/public-api version. Eg, '1.2.3', '0.11.0-dev',
3
- * '0.10.23-next-2024-07-30-8bdb131a7.0'. This is a user input and may be
4
- * invalid.
5
- *
6
- * Defined by ESBuildPack. to-do: replace with JSON import once Node.js v18
7
- * support is dropped:
8
- *
9
- * // version.json is a symlink to public-api/package.json.
10
- * import pkg from '../../version.json' with { type: 'json' };
11
- */
12
- export declare const PUBLIC_API_VERSION: string;
13
- //# sourceMappingURL=public-api-version.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public-api-version.d.ts","sourceRoot":"","sources":["../../../src/devvit/internals/public-api-version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAsB,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * @devvit/public-api version. Eg, '1.2.3', '0.11.0-dev',
3
- * '0.10.23-next-2024-07-30-8bdb131a7.0'. This is a user input and may be
4
- * invalid.
5
- *
6
- * Defined by ESBuildPack. to-do: replace with JSON import once Node.js v18
7
- * support is dropped:
8
- *
9
- * // version.json is a symlink to public-api/package.json.
10
- * import pkg from '../../version.json' with { type: 'json' };
11
- */
12
- export const PUBLIC_API_VERSION = '{{version}}';