@devvit/build-pack 0.11.12 → 0.11.13-next-2025-04-08-7c41bbc8a.0
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/lib/BuildPack.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildPack.d.ts","sourceRoot":"","sources":["../../src/lib/BuildPack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC/G,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,eAAe,EAChB,MAAM,kEAAkE,CAAC;AAE1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,8BAAsB,SAAU,YAAW,gBAAgB;IACzD,oDAAoD;IACpD,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAa;IAElD,QAAQ,CAAC,OAAO,CACd,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAG,SAAS,GACrC,OAAO,CAAC,eAAe,CAAC;IAE3B,QAAQ,CAAC,KAAK,CACZ,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAG,SAAS,GACrC,UAAU,CAAC,eAAe,CAAC;IAE9B,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAClC;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,MAAM,CAExE;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,CAO3D;AAED,iEAAiE;AACjE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"BuildPack.d.ts","sourceRoot":"","sources":["../../src/lib/BuildPack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC/G,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,eAAe,EAChB,MAAM,kEAAkE,CAAC;AAE1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,8BAAsB,SAAU,YAAW,gBAAgB;IACzD,oDAAoD;IACpD,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAa;IAElD,QAAQ,CAAC,OAAO,CACd,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAG,SAAS,GACrC,OAAO,CAAC,eAAe,CAAC;IAE3B,QAAQ,CAAC,KAAK,CACZ,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAG,SAAS,GACrC,UAAU,CAAC,eAAe,CAAC;IAE9B,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAClC;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,MAAM,CAExE;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,CAO3D;AAED,iEAAiE;AACjE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAqBhE"}
|
package/lib/BuildPack.js
CHANGED
|
@@ -22,7 +22,11 @@ export function getModuleEntrypoint(root) {
|
|
|
22
22
|
// favor src/ if it exists. single file projects may point directly to the
|
|
23
23
|
// source directory.
|
|
24
24
|
const src = path.join(root, ACTOR_SRC_DIR);
|
|
25
|
-
|
|
25
|
+
// With the advent of webviews and LLMs, it's nice to have all devvit
|
|
26
|
+
// code in a single folder. This helps tsconfig.json support, LLM inference
|
|
27
|
+
// and general code hygiene!
|
|
28
|
+
const srcDevvit = path.join(src, 'devvit');
|
|
29
|
+
const dir = fs.existsSync(srcDevvit) ? srcDevvit : fs.existsSync(src) ? src : root;
|
|
26
30
|
// Support TSX files and give them priority is they exist.
|
|
27
31
|
// This is used to power UI (aka BlockKit)
|
|
28
32
|
// TS needs to have the `.tsx` extension separately because JSX has some
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BuildPack.test.d.ts","sourceRoot":"","sources":["../../src/lib/BuildPack.test.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/build-pack",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.13-next-2025-04-08-7c41bbc8a.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"types": "./index.d.ts",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@devvit/protos": "0.11.
|
|
27
|
-
"@devvit/shared-types": "0.11.
|
|
26
|
+
"@devvit/protos": "0.11.13-next-2025-04-08-7c41bbc8a.0",
|
|
27
|
+
"@devvit/shared-types": "0.11.13-next-2025-04-08-7c41bbc8a.0",
|
|
28
28
|
"esbuild": "0.23.0",
|
|
29
29
|
"rxjs": "7.8.1",
|
|
30
30
|
"tiny-glob": "0.2.9",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"typescript": "5.3.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@devvit/public-api": "0.11.
|
|
36
|
-
"@devvit/repo-tools": "0.11.
|
|
37
|
-
"@devvit/tsconfig": "0.11.
|
|
35
|
+
"@devvit/public-api": "0.11.13-next-2025-04-08-7c41bbc8a.0",
|
|
36
|
+
"@devvit/repo-tools": "0.11.13-next-2025-04-08-7c41bbc8a.0",
|
|
37
|
+
"@devvit/tsconfig": "0.11.13-next-2025-04-08-7c41bbc8a.0",
|
|
38
38
|
"@types/tsv": "0.2.1",
|
|
39
39
|
"eslint": "9.11.1",
|
|
40
40
|
"typescript": "5.3.2",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"directory": "dist"
|
|
45
45
|
},
|
|
46
46
|
"source": "./src/index.ts",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "7460585899d81f99a2bb9ecb98d554eb770e9671"
|
|
48
48
|
}
|