Browse Source

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

pull/1/head
rozetko 1 year 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 node_modules
.vscode .vscode
dist dist
lib

2
build/webpack.base.conf.js

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

7
package.json

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

2
tsconfig.json

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

Loading…
Cancel
Save