Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
alextim committed Jul 27, 2022
1 parent ed9cd0c commit 13433ce
Show file tree
Hide file tree
Showing 16 changed files with 332 additions and 329 deletions.
4 changes: 2 additions & 2 deletions examples/robots-txt/advanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"preview": "astro preview"
},
"devDependencies": {
"@astrojs/sitemap": "^0.2.6",
"astro": "^1.0.0-beta.73",
"@astrojs/sitemap": "^0.3.0",
"astro": "^1.0.0-rc.1",
"astro-robots-txt": "latest"
}
}
4 changes: 2 additions & 2 deletions examples/robots-txt/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"preview": "astro preview"
},
"devDependencies": {
"@astrojs/sitemap": "^0.2.6",
"astro": "^1.0.0-beta.73",
"@astrojs/sitemap": "^0.3.0",
"astro": "^1.0.0-rc.1",
"astro-robots-txt": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/sitemap/advanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.73",
"astro": "^1.0.0-rc.1",
"astro-sitemap": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/sitemap/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.73",
"astro": "^1.0.0-rc.1",
"astro-sitemap": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/sitemap/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.73",
"astro": "^1.0.0-rc.1",
"astro-sitemap": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/webmanifest/advanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.73",
"astro": "^1.0.0-rc.1",
"astro-webmanifest": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/webmanifest/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.73",
"astro": "^1.0.0-rc.1",
"astro-webmanifest": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/webmanifest/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.73",
"astro": "^1.0.0-rc.1",
"astro-webmanifest": "latest"
}
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
"version": "changeset version && pnpm install --no-frozen-lockfile && pnpm run format"
},
"devDependencies": {
"@changesets/cli": "^2.23.2",
"@types/node": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"astro": "^1.0.0-beta.73",
"@changesets/cli": "^2.24.1",
"@types/node": "^18.6.1",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"astro": "^1.0.0-rc.1",
"c8": "^7.12.0",
"commitlint": "^17.0.3",
"esbuild": "^0.14.49",
"esbuild": "^0.14.50",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
Expand All @@ -46,8 +46,8 @@
"prettier": "^2.7.1",
"turbo": "^1.3.4",
"typescript": "^4.7.4",
"vite": "^3.0.2",
"vitest": "^0.18.1"
"vite": "^3.0.3",
"vitest": "^0.19.1"
},
"engines": {
"pnpm": ">=7.0.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/astro-robots-txt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
"zod": "^3.17.10"
},
"devDependencies": {
"@types/node": "^18.0.6",
"astro": "^1.0.0-beta.73",
"@types/node": "^18.6.1",
"astro": "^1.0.0-rc.1",
"at-scripts": "workspace:*",
"c8": "^7.12.0",
"typescript": "^4.7.4",
"vite": "^3.0.2",
"vitest": "^0.18.1"
"vite": "^3.0.3",
"vitest": "^0.19.1"
},
"publishConfig": {
"access": "public",
Expand Down
8 changes: 4 additions & 4 deletions packages/astro-sitemap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
},
"devDependencies": {
"@types/minimatch": "^3.0.5",
"@types/node": "^18.0.6",
"astro": "^1.0.0-beta.73",
"@types/node": "^18.6.1",
"astro": "^1.0.0-rc.1",
"at-scripts": "workspace:*",
"c8": "^7.12.0",
"typescript": "^4.7.4",
"vite": "^3.0.2",
"vitest": "^0.18.1"
"vite": "^3.0.3",
"vitest": "^0.19.1"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 2 additions & 2 deletions packages/astro-sitemap/src/sitemap/sitemap-simple-extended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createWriteStream, WriteStream, promises } from 'node:fs';
import { normalize, resolve } from 'node:path';
import { Readable, pipeline } from 'node:stream';
import { createGzip } from 'node:zlib';
import { promisify } from 'node:util';
import { format, promisify } from 'node:util';
import { URL } from 'node:url';

import { NSArgs } from '../index';
Expand Down Expand Up @@ -76,7 +76,7 @@ export const simpleSitemapAndIndexExtended = async ({
xmlns,
});

const chunkName = SITEMAP_CHUNK_TEMPLATE.replace('%d', i.toString(10)) + suffix;
const chunkName = format(SITEMAP_CHUNK_TEMPLATE, i) + suffix;
result.push(chunkName);

const writePath = resolve(destinationDir, chunkName);
Expand Down
8 changes: 4 additions & 4 deletions packages/astro-webmanifest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
"zod": "^3.17.10"
},
"devDependencies": {
"@types/node": "^18.0.6",
"@types/node": "^18.6.1",
"@types/sharp": "^0.30.4",
"astro": "^1.0.0-beta.73",
"astro": "^1.0.0-rc.1",
"at-scripts": "workspace:*",
"c8": "^7.12.0",
"typescript": "^4.7.4",
"vite": "^3.0.2",
"vitest": "^0.18.1"
"vite": "^3.0.3",
"vitest": "^0.19.1"
},
"publishConfig": {
"access": "public",
Expand Down
6 changes: 3 additions & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"coverage": "vitest run --coverage"
},
"devDependencies": {
"@types/node": "^18.0.6",
"@types/node": "^18.6.1",
"c8": "^7.12.0",
"typescript": "^4.7.4",
"vite": "^3.0.2",
"vitest": "^0.18.1"
"vite": "^3.0.3",
"vitest": "^0.19.1"
}
}
Loading

0 comments on commit 13433ce

Please sign in to comment.