astro-accelerator-utils 0.3.73 → 0.3.75
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/README.md +14 -4
- package/index.mjs +0 -1
- package/lib/v1/accelerator.d.mts +1 -1
- package/package.json +6 -4
- package/types/Site.d.ts +1 -0
package/README.md
CHANGED
|
@@ -7,22 +7,32 @@ Utility classes for Astro Accelerator
|
|
|
7
7
|
[](https://www.npmjs.com/package/astro-accelerator-utils/)
|
|
8
8
|
[](https://www.npmjs.com/package/astro-accelerator-utils/)
|
|
9
9
|
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
This package is tested with CucumberJS. The tests are written in the features folder and are run using the `pnpm test` command.
|
|
13
|
+
|
|
10
14
|
## Update Type Information
|
|
11
15
|
|
|
12
16
|
Run the command:
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
```bash
|
|
19
|
+
pnpm types
|
|
20
|
+
```
|
|
15
21
|
|
|
16
22
|
## Running Tests
|
|
17
23
|
|
|
18
24
|
Run the command:
|
|
19
25
|
|
|
20
|
-
|
|
26
|
+
```bash
|
|
27
|
+
pnpm test
|
|
28
|
+
```
|
|
21
29
|
|
|
22
30
|
## Create new version
|
|
23
31
|
|
|
24
32
|
Run the command:
|
|
25
33
|
|
|
26
|
-
|
|
34
|
+
```bash
|
|
35
|
+
pnpm refresh
|
|
36
|
+
```
|
|
27
37
|
|
|
28
|
-
This updates dependencies, increments the version number, and re-runs types and tests. If successful, committing the change updates the package on NPM.
|
|
38
|
+
This updates dependencies, increments the version number, and re-runs types and tests. If successful, committing the change updates the package on NPM.
|
package/index.mjs
CHANGED
package/lib/v1/accelerator.d.mts
CHANGED
|
@@ -8,7 +8,7 @@ export class Accelerator {
|
|
|
8
8
|
constructor(site: Site);
|
|
9
9
|
cacheMaxAge: number;
|
|
10
10
|
dateOptions: Intl.DateTimeFormatOptions;
|
|
11
|
-
shortDateOptions:
|
|
11
|
+
shortDateOptions: Intl.DateTimeFormatOptions;
|
|
12
12
|
siteUrl: string;
|
|
13
13
|
subfolder: string;
|
|
14
14
|
useTrailingUrlSlash: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro-accelerator-utils",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.75",
|
|
4
4
|
"description": "Astro utilities for Astro Accelerator.",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
"types": "index.d.mts",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"refresh": "npm version patch && pnpm update --latest && pnpm types && pnpm test",
|
|
17
|
-
"
|
|
17
|
+
"spell": "cspell lint \"**\"",
|
|
18
18
|
"types": "node ./clean.mjs && npx tsc index.mjs --allowJs --declaration --emitDeclarationOnly",
|
|
19
|
-
"test": "c8 --include='lib/**/*.mjs' --exclude='features/**' --reporter=text --all cucumber-js"
|
|
19
|
+
"test": "c8 --include='lib/**/*.mjs' --exclude='features/**' --reporter=text --all cucumber-js",
|
|
20
|
+
"update-node": "bash -c 'source $NVM_DIR/nvm.sh && nvm install --lts && npm install -g pnpm'"
|
|
20
21
|
},
|
|
21
22
|
"repository": {
|
|
22
23
|
"type": "git",
|
|
@@ -35,8 +36,9 @@
|
|
|
35
36
|
"homepage": "https://astro.stevefenton.co.uk/",
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@cucumber/cucumber": "^12.7.0",
|
|
38
|
-
"@types/node": "^25.
|
|
39
|
+
"@types/node": "^25.5.0",
|
|
39
40
|
"c8": "^11.0.0",
|
|
41
|
+
"cspell": "^9.7.0",
|
|
40
42
|
"rehype-stringify": "^10.0.1",
|
|
41
43
|
"remark-parse": "^11.0.0",
|
|
42
44
|
"remark-rehype": "^11.1.2",
|