Skip to content

Commit

Permalink
Merge pull request #24 from decentraland/fix/package-typings
Browse files Browse the repository at this point in the history
fix: Package typings
  • Loading branch information
LautaroPetaccio authored Apr 5, 2023
2 parents 34a6514 + 46c3249 commit 2267011
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*.d.ts
*.css
lib
dist
node_modules
lib

.vscode
.DS_Store
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"paths": { "*": ["types/*"] },
"outDir": "lib",
"outDir": "dist",
"module": "commonjs",
"target": "es5",
"lib": ["es7", "dom"],
Expand Down
3 changes: 1 addition & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 2267011

Please sign in to comment.