Skip to content

Commit 5ebedf7

Browse files
domdomeggclaude
andauthored
Update npm scripts and documentation (#61)
- Simplify start script by combining build:watch and nodemon - Update CONTRIBUTING.md to reference npm start instead of npm run dev - Fix build:watch script to properly pass --watch flag Co-authored-by: Claude <noreply@anthropic.com>
1 parent dd80a57 commit 5ebedf7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
PRs are welcomed! To get started developing:
44
1. Install Node.js and NPM
55
2. Install dependencies with `npm install`
6-
3. Run `npm run dev` to run the dev server
6+
3. Run `npm start` to run the server
77
4. Run `npm test` to run tests with Jest
88

99
You can run `FILL_DEMO=true npm run test -- 'test/demo.test.ts'` to populate sample data into your locally running server.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@
1919
"branding"
2020
],
2121
"scripts": {
22-
"dev": "npm run build:watch && npm run start",
23-
"start": "nodemon ./dist/cli.js",
22+
"start": "npm run build:watch & nodemon ./dist/cli.js",
2423
"test": "vitest run && npm run test:binary_exists",
2524
"test:binary_exists": "npm run prepublishOnly && node -e \"require('fs').access(require('./package.json').bin['aws-ses-v2-local'], (err) => process.exit(err ? 1 : 0))\"",
2625
"test:watch": "vitest",
2726
"lint": "eslint",
2827
"format": "eslint --fix",
2928
"clean": "rm -rf dist",
3029
"build": "tsc --project tsconfig.build.json",
31-
"build:watch": "npm run build --watch",
30+
"build:watch": "npm run build -- --watch",
3231
"prepublishOnly": "npm run clean && npm run build",
3332
"build:docker": "docker build -t $DOCKER_IMAGE .",
3433
"publish:docker": "docker push $DOCKER_IMAGE"

0 commit comments

Comments
 (0)