@untestutils/astro 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.
@@ -0,0 +1,15 @@
1
+ import { type FrameworkBaseOptions, type Recipe } from "@untestutils/core";
2
+ export type AstroRun = "preview" | "server" | "dev";
3
+ export interface AstroOptions extends FrameworkBaseOptions {
4
+ run?: AstroRun;
5
+ /** SSR entry relative to root (default dist/server/entry.mjs). */
6
+ serverEntry?: string;
7
+ }
8
+ /**
9
+ * Astro Recipe factory.
10
+ * `run: 'preview'` (default) — `astro build` + `astro preview`
11
+ * `run: 'server'` — build + `node dist/server/entry.mjs`
12
+ * `run: 'dev'` — `astro dev`
13
+ */
14
+ export declare function astro(opts: AstroOptions): Recipe;
15
+ export default astro;
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 AstroRun = 'preview' | 'server' | 'dev';
3
3
  export interface AstroOptions extends FrameworkBaseOptions {
4
4
  run?: AstroRun;
@@ -11,6 +11,6 @@ export interface AstroOptions extends FrameworkBaseOptions {
11
11
  * `run: 'server'` — build + `node dist/server/entry.mjs`
12
12
  * `run: 'dev'` — `astro dev`
13
13
  */
14
- export declare function astro(opts: AstroOptions): import("@untestutils/core").Recipe;
14
+ export declare function astro(opts: AstroOptions): Recipe;
15
15
  export default astro;
16
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEpD,MAAM,WAAW,YAAa,SAAQ,oBAAoB;IACxD,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAYD;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,YAAY,sCA+EvC;AAED,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEpD,MAAM,WAAW,YAAa,SAAQ,oBAAoB;IACxD,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAYD;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CA+EhD;AAED,eAAe,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,20 @@
1
1
  {
2
2
  "name": "@untestutils/astro",
3
- "version": "0.5.0",
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/astro"
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.0"
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
  "astro": "*"
@@ -35,18 +47,6 @@
35
47
  "engines": {
36
48
  "node": ">=20"
37
49
  },
38
- "license": "MIT",
39
- "homepage": "https://s00d.github.io/untestutils/",
40
- "repository": {
41
- "type": "git",
42
- "url": "git+https://github.com/s00d/untestutils.git",
43
- "directory": "packages/astro"
44
- },
45
- "main": "./dist/index.mjs",
46
- "types": "./dist/index.d.ts",
47
- "publishConfig": {
48
- "access": "public"
49
- },
50
50
  "scripts": {
51
51
  "build": "obuild && tsc -p tsconfig.build.json",
52
52
  "publint": "publint --strict"