UPDATE package evolved into astro-itchio-publisher, a more powerful tool astro-fix-paths ~unpublished astro-itchio-publisher live on astrojs integrations
An AstroJS integration that fixes output paths for Itch.io deployment.
Installation
npm install astro-fix-paths
Usage Modify astro.config.mjs:
import { defineConfig } from 'astro/config';
import astroFixPaths from 'astro-fix-paths';
export default defineConfig({
integrations: [astroFixPaths()],
});
๐ Done!
Publishing to NPM
Login to NPM
First, if youโre not already logged in, run:
npm login
Publish Your Package Run:
npm publish --access public