Skip to content

Commit

Permalink
fix: add type module to package (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealPaulPlay committed Jan 23, 2025
1 parent e2c3787 commit 34385be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/m-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
src/
dist/
resources/
src/example.html
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"name": "playpeerjs",
"version": "1.0.2",
"description": "WebRTC-based wrapper for creating robust peer-2-peer multiplayer systems with ease.",
"main": "dist/playpeer.js",
"module": "dist/playpeer.js",
"type": "module",
"main": "src/index.js",
"module": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rollup -c rollup.config.js"
Expand Down

0 comments on commit 34385be

Please sign in to comment.