Skip to content

Commit

Permalink
chore: change published filename & update pkg main (#46)
Browse files Browse the repository at this point in the history
Let's make things easy for ourselves:

- don't include the version in the filename published to npm
- update package.json `main` to point to the config file
  • Loading branch information
gmaclennan authored Apr 18, 2024
1 parent 60fcf2c commit 589250c
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 59 deletions.
177 changes: 120 additions & 57 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"scripts": {
"build": "mkdirp build && mapeo-settings build -l 'en' -o build/mapeo-default-config-v${npm_package_version}.mapeoconfig",
"build:dist": "mapeo-settings build -l 'en' -o dist/mapeo-default-config-v${npm_package_version}.mapeoconfig",
"build:dist": "mapeo-settings build -l 'en' -o dist/mapeo-default-config.mapeoconfig",
"extract-messages": "mkdirp messages && mapeo-settings extract-messages -o messages/en.json",
"prepack": "rimraf dist && mkdirp dist && npm run -s build:dist",
"test": "mapeo-settings lint"
Expand All @@ -20,7 +20,7 @@
"files": [
"dist"
],
"main": "dist/presets.json",
"main": "dist/mapeo-default-config.mapeoconfig",
"repository": {
"type": "git",
"url": "git+https://github.com/digidem/mapeo-default-config.git"
Expand Down

0 comments on commit 589250c

Please sign in to comment.