diff --git a/.gitignore b/.gitignore index c39c435..6aabdb7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *.d.ts *.css -lib +dist node_modules -lib + +.vscode +.DS_Store \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 3662b37..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "typescript.tsdk": "node_modules/typescript/lib" -} \ No newline at end of file diff --git a/package.json b/package.json index 51dd120..1d01aca 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,14 @@ "name": "react-tile-map", "version": "0.3.3", "description": "", - "main": "lib/index.js", - "typings": "lib/src/index.d.ts", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", + "files": [ + "dist" + ], "scripts": { "start": "start-storybook -p 6006", - "build": "rimraf lib && webpack --config webpack.config.js && rimraf lib/stories", + "build": "rimraf dist && webpack --config webpack.config.js", "build-storybook": "build-storybook", "prepublish": "npm run build", "deploy": "npm run build-storybook && now alias $(now storybook-static --public) tile-map --scope=decentraland" diff --git a/tsconfig.json b/tsconfig.json index e434558..d86bbbd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "paths": { "*": ["types/*"] }, - "outDir": "lib", + "outDir": "dist", "module": "commonjs", "target": "es5", "lib": ["es7", "dom"], diff --git a/webpack.config.js b/webpack.config.js index e7fdb3c..fda5747 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,12 +1,11 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin') -const postcssPresetEnv = require('postcss-preset-env') const path = require('path') module.exports = { mode: 'production', entry: './src/index.ts', output: { - path: path.resolve(__dirname, 'lib'), + path: path.resolve(__dirname, 'dist'), filename: 'index.js', library: 'TileMap', libraryTarget: 'umd',