Skip to content

Commit

Permalink
fix: missing config schema json in dist (#134)
Browse files Browse the repository at this point in the history
# Description

This PR fixes missing config schemas in the build.

# Changes

- [x] Package the config schema JSON

## How to test

Edit the `config.example.json` as necessary.

1. `yarn build`
2. `node ./dist/src/index.js run --config-path ./config.example.json`
3. Observe the watch-tower starts without faults.
  • Loading branch information
mfw78 authored Jan 18, 2024
1 parent 597e30b commit 4e35e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"main": "dist/src/index.js",
"scripts": {
"build": "rm -rf dist && rm -rf src/types/generated && yarn typechain && tsc",
"build": "rm -rf dist && rm -rf src/types/generated && yarn typechain && tsc && cp ./src/types/config.schema.json dist/src/types/config.schema.json",
"fmt": "prettier --write \"src/**/*.ts\"",
"lint": "eslint \"src/**/*.ts\" && prettier --check \"src/**/*.ts\"",
"lint:fix": "eslint --fix \"src/**/*.ts\" && prettier --write \"src/**/*.ts\"",
Expand Down

0 comments on commit 4e35e56

Please sign in to comment.