Skip to content

Commit

Permalink
chore: npmrc update (withastro#2742)
Browse files Browse the repository at this point in the history
* Updated npmrc

* Removed volta in favor of engines

* ignore pnpm lock

* move comments
  • Loading branch information
JuanM04 committed Mar 9, 2022
1 parent c5361a1 commit 0281d6a
Show file tree
Hide file tree
Showing 4 changed files with 1,801 additions and 1,793 deletions.
5 changes: 5 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Important! Never install `astro` even when new version is in registry
prefer-workspace-packages=true
link-workspace-packages=true
save-workspace-protocol=false # This prevents the examples to have the `workspace:` prefix

use-node-version=14.19.0

# Rather than shamefully hoisting everything, just make problematic packages public
public-hoist-pattern[]=autoprefixer
public-hoist-pattern[]=astro
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ examples/blog/**/*.md
# Files
README.md
packages/webapi/mod.d.ts
pnpm-lock.yaml
17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@
"packages/astro/test/fixtures/custom-elements/my-component-lib",
"packages/astro/test/fixtures/static build/pkg"
],
"volta": {
"node": "14.17.0",
"npm": "7.11.2"
"engines": {
"node": "^14.15.0 || >=16.0.0",
"pnpm": ">=6.32.3"
},
"packageManager": "[email protected]",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
Expand All @@ -46,6 +47,9 @@
]
}
},
"dependencies": {
"@astrojs/webapi": "workspace:*"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.2",
"@changesets/cli": "^2.16.0",
Expand All @@ -63,12 +67,5 @@
"tiny-glob": "^0.2.8",
"turbo": "^1.1.5",
"typescript": "4.5.2"
},
"engines": {
"node": "^14.15.0 || >=16.0.0"
},
"packageManager": "[email protected]",
"dependencies": {
"@astrojs/webapi": "workspace:*"
}
}
Loading

0 comments on commit 0281d6a

Please sign in to comment.