Skip to content

Commit 888610a

Browse files
authored
fix: resolve publishing and entry point issues (#10)
* feat: add custom styling and release automation - Implement custom CSS injection and URL rewriting to allow users to style PDFs and fix cross-environment links. - Add release-please GitHub Action to automate the release process and enable secure NPM publishing. * improvement: Remove npm auth from yarn configuration - Remove npmAlwaysAuth and npmAuthToken from .yarnrc.yml to improve security by avoiding explicit token references in configuration. - Update yarn.lock and install state to ensure the dependency tree is consistent with the new configuration. * revert: automated release-please workflow - Reverts the commit that implemented release-please-action to simplify the release process. - Removes the automated release-please workflow and replaces it with a manual version-check publish script. - Restores manual version management in package.json to provide more direct control over the release cycle. * fix: resolve publishing and entry point issues - Switch npm registry to the official server to ensure stable publishing and dependency resolution. - Update main entry point and files field in package.json to correctly export the built distribution.
1 parent 9af5bc3 commit 888610a

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version: '20'
22-
registry-url: 'https://registry.npmjs.org'
2322

2423
- name: Install dependencies
2524
run: yarn install

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ npmPublishAccess: public
55

66
npmPublishRegistry: "https://registry.npmjs.org"
77

8-
npmRegistryServer: "https://repo.huaweicloud.com/repository/npm/"
8+
npmRegistryServer: "https://registry.npmjs.org"
99

1010
yarnPath: .yarn/releases/yarn-4.9.2.cjs

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"name": "docusaurus-docs-to-pdf",
33
"version": "0.0.4",
44
"description": "A command-line tool to convert Docusaurus documentation sites to a single PDF file.",
5-
"main": "main.js",
5+
"main": "dist/main.js",
6+
"files": [
7+
"dist"
8+
],
69
"bin": "./dist/main.js",
710
"repository": "https://github.com/fastone-open/docusaurus-docs-to-pdf.git",
811
"author": "Xiangcheng Kuo <xiangcheng.guo@fastonetech.com>",

0 commit comments

Comments
 (0)