@untestutils/sveltekit 0.5.0 → 0.5.1
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/dist/index.d.mts +15 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -2
- package/package.json +16 -16
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type FrameworkBaseOptions, type Recipe } from "@untestutils/core";
|
|
2
|
+
export type SvelteKitRun = "preview" | "server" | "dev";
|
|
3
|
+
export interface SvelteKitOptions extends FrameworkBaseOptions {
|
|
4
|
+
run?: SvelteKitRun;
|
|
5
|
+
/** adapter-node output entry relative to root (default `build/index.js`). */
|
|
6
|
+
serverEntry?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* SvelteKit Recipe factory.
|
|
10
|
+
* `run: 'preview'` (default) — `vite build` + `vite preview`
|
|
11
|
+
* `run: 'server'` — build + `node build` (adapter-node)
|
|
12
|
+
* `run: 'dev'` — `vite dev`
|
|
13
|
+
*/
|
|
14
|
+
export declare function sveltekit(opts: SvelteKitOptions): Recipe;
|
|
15
|
+
export default sveltekit;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FrameworkBaseOptions } from '@untestutils/core';
|
|
1
|
+
import { type FrameworkBaseOptions, type Recipe } from '@untestutils/core';
|
|
2
2
|
export type SvelteKitRun = 'preview' | 'server' | 'dev';
|
|
3
3
|
export interface SvelteKitOptions extends FrameworkBaseOptions {
|
|
4
4
|
run?: SvelteKitRun;
|
|
@@ -11,6 +11,6 @@ export interface SvelteKitOptions extends FrameworkBaseOptions {
|
|
|
11
11
|
* `run: 'server'` — build + `node build` (adapter-node)
|
|
12
12
|
* `run: 'dev'` — `vite dev`
|
|
13
13
|
*/
|
|
14
|
-
export declare function sveltekit(opts: SvelteKitOptions):
|
|
14
|
+
export declare function sveltekit(opts: SvelteKitOptions): Recipe;
|
|
15
15
|
export default sveltekit;
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;AAExD,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB,6EAA6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAYD;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAkFxD;AAED,eAAe,SAAS,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { join, resolve } from "pathe";
|
|
3
|
-
import { loopbackUrl } from "@untestutils/core";
|
|
4
|
-
import { cliFrameworkRecipe, frameworkRoots, resolveBin } from "@untestutils/core";
|
|
3
|
+
import { loopbackUrl, cliFrameworkRecipe, frameworkRoots, resolveBin } from "@untestutils/core";
|
|
5
4
|
function resolveViteBin(root) {
|
|
6
5
|
return resolveBin({
|
|
7
6
|
label: "sveltekit",
|
package/package.json
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@untestutils/sveltekit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"homepage": "https://s00d.github.io/untestutils/",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/s00d/untestutils.git",
|
|
9
|
+
"directory": "packages/sveltekit"
|
|
10
|
+
},
|
|
4
11
|
"files": [
|
|
5
12
|
"dist"
|
|
6
13
|
],
|
|
7
14
|
"type": "module",
|
|
8
15
|
"sideEffects": false,
|
|
16
|
+
"main": "./dist/index.mjs",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
9
18
|
"exports": {
|
|
10
19
|
".": {
|
|
11
20
|
"types": "./dist/index.d.ts",
|
|
@@ -14,15 +23,18 @@
|
|
|
14
23
|
},
|
|
15
24
|
"./package.json": "./package.json"
|
|
16
25
|
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
17
29
|
"dependencies": {
|
|
18
30
|
"pathe": "^2.0.3",
|
|
19
|
-
"@untestutils/core": "0.5.
|
|
31
|
+
"@untestutils/core": "0.5.1"
|
|
20
32
|
},
|
|
21
33
|
"devDependencies": {
|
|
22
34
|
"@types/node": "^26.6.1",
|
|
35
|
+
"obuild": "^0.4.40",
|
|
23
36
|
"publint": "^0.3.24",
|
|
24
|
-
"typescript": "^6.0.3"
|
|
25
|
-
"obuild": "^0.4.40"
|
|
37
|
+
"typescript": "^6.0.3"
|
|
26
38
|
},
|
|
27
39
|
"peerDependencies": {
|
|
28
40
|
"@sveltejs/kit": "*"
|
|
@@ -38,18 +50,6 @@
|
|
|
38
50
|
"engines": {
|
|
39
51
|
"node": ">=20"
|
|
40
52
|
},
|
|
41
|
-
"license": "MIT",
|
|
42
|
-
"homepage": "https://s00d.github.io/untestutils/",
|
|
43
|
-
"repository": {
|
|
44
|
-
"type": "git",
|
|
45
|
-
"url": "git+https://github.com/s00d/untestutils.git",
|
|
46
|
-
"directory": "packages/sveltekit"
|
|
47
|
-
},
|
|
48
|
-
"main": "./dist/index.mjs",
|
|
49
|
-
"types": "./dist/index.d.ts",
|
|
50
|
-
"publishConfig": {
|
|
51
|
-
"access": "public"
|
|
52
|
-
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "obuild && tsc -p tsconfig.build.json",
|
|
55
55
|
"publint": "publint --strict"
|