Skip to content

Commit

Permalink
fixing build result
Browse files Browse the repository at this point in the history
  • Loading branch information
EmaSuriano committed Sep 21, 2020
1 parent 62a22da commit bf761e0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 deletions.
8 changes: 0 additions & 8 deletions demo/src/.eslintrc

This file was deleted.

10 changes: 3 additions & 7 deletions nwb.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
module.exports = {
type: 'react-component',
npm: {
esModules: true,
umd: {
global: 'react-scroll-section',
externals: {
react: 'React',
},
},
cjs: false,
esModules: false,
umd: false,
},
webpack: {
config: (config) => {
Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
"version": "3.0.0",
"description": "React library to provide a declarative scroll to between sections",
"main": "lib/index.js",
"module": "es/index.js",
"files": [
"css",
"es",
"lib",
"umd"
"lib"
],
"scripts": {
"start": "nwb serve-react-demo",
"clean": "nwb clean-module && nwb clean-demo",
"build": "nwb build-react-component",
"build": "tsc",
"lint": "yarn eslint . --ext .ts,.tsx",
"test": "cypress run",
"test:open": "cypress open",
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"module": "esnext",
"baseUrl": "src",
"target": "es5",
"lib": ["es6", "dom"],
"lib": ["dom", "dom.iterable", "esnext"],
"sourceMap": true,
"jsx": "react",
"moduleResolution": "node",
Expand All @@ -14,6 +15,5 @@
"skipLibCheck": true,
"types": []
},
"include": ["src/**/*", "demo/src/**/*"],
"exclude": ["node_modules", "lib", "es"]
"include": ["src/**/*"]
}

0 comments on commit bf761e0

Please sign in to comment.