Skip to content

Commit

Permalink
fix: update package versions and configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed Aug 8, 2023
1 parent 38931e0 commit a16c770
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dadssa
strict-peer-dependencies=false
35 changes: 3 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,45 +73,16 @@ To generate an résumé locally:

```toml
[build.environment]
NODE_VERSION = "16"
NPM_FLAGS="--version"

[[plugins]]
package = "/.netlify/netlify-plugin-pnpm"
NODE_VERSION = "18"

[build]
# If you download your resume.json (and resume.private.json) from a gist please use the command below and uncomment the current command
# command = "npx pnpm@7 install --store-dir=.pnpm --frozen-lockfile && npx pnpm@7 run download:resume && npx pnpm@7 run build && npx pnpm@7 run build:pdf"
command = "npx pnpm@7 install --store-dir=.pnpm --frozen-lockfile && npx pnpm@7 run build && npx pnpm@7 run build:pdf"
# command = "pnpm run download:resume && pnpm run build && pnpm run build:pdf"
command = "pnpm run build && pnpm run build:pdf"
publish = "dist"

```

To use `pnpm` on netlify you need to create this file `.netlify/netlify-plugin-pnpm/index.js` and `.netlify/netlify-plugin-pnpm/manifest.yml`.

`.netlify/netlify-plugin-pnpm/index.js`:

```js
module.exports = {
// eslint-disable-next-line consistent-return
onPreBuild: async ({ utils: { build, run } }) => {
try {
await run.command("npm install -g pnpm");
await run.command("pnpm install --frozen-lockfile=false");
} catch (error) {
return build.failBuild(error);
}
},
};
```

`.netlify/netlify-plugin-pnpm/manifest.yml`:

```yaml
name: netlify-plugin-pnpm
inputs: []
```
## Why not use the PDF generated by the pipeline

The pipeline generates a PDF using the public information found in
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
},
"dependencies": {
"@anolilab/resume-schema": "2.0.3",
"@fontsource/noto-sans-sc": "^5.0.6",
"@fontsource/nunito": "^5.0.7",
"@fontsource/noto-sans-sc": "^5.0.7",
"@fontsource/nunito": "^5.0.8",
"@octokit/rest": "^20.0.1",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
Expand Down Expand Up @@ -73,7 +73,7 @@
"textlint": "^13.3.3",
"typescript": "^5.1.6",
"underscore.string": "^3.3.6",
"vite": "^4.4.8",
"vite": "^4.4.9",
"vite-plugin-favicon2": "^1.1.5",
"vite-plugin-handlebars": "^1.6.0",
"vite-plugin-static-copy": "^0.17.0",
Expand Down
38 changes: 19 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a16c770

Please sign in to comment.