Skip to content

Commit

Permalink
build: update build configs
Browse files Browse the repository at this point in the history
  • Loading branch information
shc261392 committed Nov 9, 2023
1 parent 2a966e3 commit e96266f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/lib/
/test/
custom-elements.json
.npmrc
# top level source
capture-eye.js
capture-eye.js.map
Expand Down
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dev
docs
docs-src
examples
test
.eleventy.cjs
.vscode
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "@numbersprotocol/capture-eye",
"version": "0.0.1",
"version": "0.0.2",
"description": "Capture Eye widget seamlessly integrates into your website, facilitating secure and transparent provenance display and purchases of digital content directly from the creator",
"main": "capture-eye.js",
"module": "capture-eye.js",
"types": "capture-eye.d.ts",
"type": "module",
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"clean": "rimraf capture-eye.{d.ts,d.ts.map,js,js.map} test/capture-eye.{d.ts,d.ts.map,js,js.map} test/capture-eye_test.{d.ts,d.ts.map,js,js.map}",
"build": "tsc && rollup -c",
"build:watch": "tsc --watch && rollup -c",
"clean": "rimraf capture-eye.{d.ts,d.ts.map,js,js.map,bundled.js} test/capture-eye.{d.ts,d.ts.map,js,js.map} test/capture-eye_test.{d.ts,d.ts.map,js,js.map}",
"lint": "npm run lint:lit-analyzer && npm run lint:eslint",
"lint:eslint": "eslint 'src/**/*.ts'",
"lint:lit-analyzer": "lit-analyzer",
Expand Down Expand Up @@ -65,6 +66,5 @@
"rollup-plugin-terser": "^7.0.2",
"typescript": "~5.2.0"
},
"customElements": "custom-elements.json",
"types": "capture-eye.d.ts"
"customElements": "custom-elements.json"
}
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {
output: {
file: 'capture-eye.bundled.js',
format: 'esm',
name: 'CaptureEye',
},
onwarn(warning) {
if (warning.code !== 'THIS_IS_UNDEFINED') {
Expand Down

0 comments on commit e96266f

Please sign in to comment.