Skip to content

Commit 0dd405a

Browse files
authored
Merge pull request #3 from a-bugaj/deploy
chore: Prepared deploy script
2 parents 6616d05 + e925fc3 commit 0dd405a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules
2+
package-lock.json
3+
coverage
4+
*.tgz
5+
lib
6+
.eslintrc.json
7+
.prettierrc
8+
jest.config.ts
9+
tsconfig.json
10+
webpack.config.ts
11+
__tests__

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
"name": "awesome-pubsub-js",
33
"version": "1.0.0",
44
"description": "JavaScript implementation of the Publish/Subscribe pattern with TypeScript support.",
5-
"main": "./dist/index.js",
5+
"main": "index.js",
66
"scripts": {
77
"build": "webpack --config webpack.config.ts --bail --progress",
8+
"build:package": "npm run build && cp package.json ./dist && cp README.md ./dist && cd dist && npm publish",
89
"check-types": "tsc",
910
"test": "jest --collectCoverage",
1011
"prettier": "prettier --check 'lib/**/*.ts' '__tests__/**/*.ts'",

0 commit comments

Comments
 (0)