Skip to content

Commit ad8820d

Browse files
Merge pull request #265 from xcomponent/fixpackagejson
update package.json
2 parents 843dcfb + c8a4776 commit ad8820d

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
- name: Install dependencies
5353
run: yarn install
5454

55+
- name: Build
56+
run: yarn build
57+
5558
- name: Detect tag type (RELEASE or BETA)
5659
id: tag_check
5760
run: |
@@ -75,5 +78,4 @@ jobs:
7578
if: steps.tag_check.outputs.tag_type == 'BETA'
7679
run: npm publish --tag next
7780
env:
78-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
79-
81+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
tsconfig.json
2-
src
32
.git
3+
.github
44
config
55
scripts
66
tslint.json
77
.travis.yml
88
_config.yml
99
checkTag.sh
1010
renovate.json
11-
*.tgz
11+
*.tgz
12+

package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "reactivexcomponent.js",
3-
"version": "7.0.3",
3+
"version": "7.0.4",
44
"description": "Javascript reactive client API for XComponent",
5-
"main": "./index.js",
6-
"module": "./index.js",
7-
"types": "./index.d.ts",
5+
"main": "dist/index.js",
6+
"module": "dist/index.js",
7+
"types": "dist/index.d.ts",
88
"exports": {
9-
"import": "./index.js",
10-
"require": "./index.js"
9+
"import": "./dist/index.js",
10+
"require": "./dist/index.js"
1111
},
1212
"directories": {
1313
"test": "test",
@@ -113,5 +113,8 @@
113113
"hooks": {
114114
"pre-commit": "pretty-quick --staged"
115115
}
116-
}
116+
},
117+
"files": [
118+
"dist/"
119+
]
117120
}

0 commit comments

Comments
 (0)