Skip to content

Commit

Permalink
Merge pull request #76 from indec-it/chore/package
Browse files Browse the repository at this point in the history
chore(package): add files to package.json
  • Loading branch information
maximilianoforlenza authored Jun 23, 2022
2 parents 4782e05 + c017911 commit 322401b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: npm install && npm run build
run: |
npm install
npm run build
- name: Publish package on NPM 📦
run: npm publish
run: npm publish lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 0 additions & 15 deletions .npmignore

This file was deleted.

14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
{
"name": "@indec/react-commons",
"version": "5.0.0",
"version": "5.0.1",
"description": "Common reactjs components for apps",
"private": false,
"main": "src/index.js",
"main": "lib/index.js",
"scripts": {
"start": "start-storybook -p 6006",
"build": "NODE_ENV=production babel src --out-dir dist",
"build": "NODE_ENV=production babel src --out-dir lib",
"build-storybook": "build-storybook -o docs-build",
"test": "jest --config=jest.config.json",
"test:watch": "jest --config=jest.config.json --watch",
"eslint": "eslint ./src",
"validate": "npm run test && npm run eslint",
"prepare": "husky install"
},
"files": [
"README.md",
"package.json",
"lib",
"!lib/**/*.test.js",
"!lib/**/*.stories.js",
"!lib/utils/__tests__"
],
"dependencies": {
"@chakra-ui/react": "^2.2.1",
"@emotion/react": "^11.9.3",
Expand Down

0 comments on commit 322401b

Please sign in to comment.