diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 82d5a39..fab9fc2 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -33,7 +33,7 @@ jobs: - name: Install Node modules run: | npm install - npm run rollup + npm run build - name: Setup Pages uses: actions/configure-pages@v2 - name: Upload artifact diff --git a/README.md b/README.md index 244ae66..cb1cab5 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,11 @@ Visit https://espressif.github.io/esptool-js/ to see this tool in action. ``` npm install -npm run rollup +npm run build python3 -m http.server 8008 ``` -Then open http://localhost:8008 in Chrome or Edge. The `npm run rollup` step builds the `bundle.js` used in the example `index.html`. +Then open http://localhost:8008 in Chrome or Edge. The `npm run build` step builds the `bundle.js` used in the example `index.html`. ## License diff --git a/package.json b/package.json index de739fe..67c1d37 100644 --- a/package.json +++ b/package.json @@ -9,15 +9,14 @@ "bundle.js" ], "scripts": { - "build": "npm run clean && tsc", + "build": "npm run clean && tsc && rollup --config", "clean": "rimraf lib bundle.js", "format": "prettier --write \"src/**/*.ts\"", "lint": "eslint . --ext .ts", "lintAndFix": "eslint . --ext .ts --fix", "prepare": "npm run build", "test": "echo \"Error: no test specified\"", - "prepublishOnly": "npm run test && npm run lint", - "rollup": "npm run build && rollup --config" + "prepublishOnly": "npm run test && npm run lint" }, "repository": { "type": "git",