Browse Source

rename dist/ to lib/ && do not push anything except lib/ to npm

pull/1/head
rozetko 2 years ago
parent
commit
6455ac865d
  1. 2
      .gitignore
  2. 2
      build/webpack.base.conf.js
  3. 7
      package.json
  4. 2
      tsconfig.json

2
.gitignore vendored

@ -1,3 +1,5 @@
node_modules
.vscode
dist
lib

2
build/webpack.base.conf.js

@ -31,7 +31,7 @@ module.exports = {
},
output: {
filename: 'index.js',
path: resolve('dist'),
path: resolve('lib'),
libraryTarget: 'umd',
umdNamedDefine: true
}

7
package.json

@ -2,8 +2,11 @@
"name": "@chartwerk/core",
"version": "0.6.13",
"description": "Chartwerk core",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"/lib"
],
"scripts": {
"build": "webpack --config build/webpack.prod.conf.js",
"dev": "webpack --config build/webpack.dev.conf.js",

2
tsconfig.json

@ -4,7 +4,7 @@
"rootDir": "./src",
"module": "esnext",
"declaration": true,
"declarationDir": "dist",
"declarationDir": "lib",
"allowSyntheticDefaultImports": true,
"inlineSourceMap": false,
"sourceMap": true,

Loading…
Cancel
Save