From 048104efdea787e850f4ec54b6b134be3834eae3 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sat, 18 Dec 2021 14:55:01 -0800 Subject: [PATCH] Clean up build config files --- packages/core-js/jsconfig.json | 2 +- packages/core-js/package.json | 11 ++++------- packages/mindplot/jsconfig.json | 4 +--- packages/mindplot/package.json | 2 +- packages/mindplot/stats.json | 0 packages/mindplot/webpack.common.js | 1 - packages/web2d/jsconfig.json | 2 +- packages/web2d/package.json | 12 ++++-------- packages/web2d/webpack.common.js | 2 +- 9 files changed, 13 insertions(+), 23 deletions(-) delete mode 100644 packages/mindplot/stats.json diff --git a/packages/core-js/jsconfig.json b/packages/core-js/jsconfig.json index 13231242..45ef1f1e 100644 --- a/packages/core-js/jsconfig.json +++ b/packages/core-js/jsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "baseUrl": ".", - "module": "commonjs", + "module": "ES6", }, "exclude": ["node_modules"] } diff --git a/packages/core-js/package.json b/packages/core-js/package.json index 569f991d..646d565e 100644 --- a/packages/core-js/package.json +++ b/packages/core-js/package.json @@ -1,13 +1,10 @@ { "name": "@wisemapping/core-js", - "version": "0.0.1", - "description": "core-js", - "license": "ISC", + "version": "0.4.0", + "description": "WiseMapping - Core Common Libraries", + "homepage": "http://www.wisemapping.org/", + "license": "MIT", "main": "dist/core.js", - "directories": { - "lib": "src", - "test": "__tests__" - }, "files": [ "src" ], diff --git a/packages/mindplot/jsconfig.json b/packages/mindplot/jsconfig.json index 77167148..b067ee2a 100644 --- a/packages/mindplot/jsconfig.json +++ b/packages/mindplot/jsconfig.json @@ -3,9 +3,7 @@ "baseUrl": ".", "module": "ES6", "paths": { - "@libraries/*": ["../../libraries/*"], - "@wisemapping/web2d": ["../web2d/*"] - } + "@libraries/*": ["../../libraries/*"] } }, "exclude": ["node_modules"] } diff --git a/packages/mindplot/package.json b/packages/mindplot/package.json index b83f3a17..d84dd0b1 100644 --- a/packages/mindplot/package.json +++ b/packages/mindplot/package.json @@ -32,7 +32,7 @@ }, "dependencies": { "@wisemapping/core-js": "^0.0.1", - "@wisemapping/web2d": "^0.0.1", + "@wisemapping/web2d": "^0.4.0", "jest": "^27.4.3", "jquery": "^3.6.0", "lodash": "^4.17.21" diff --git a/packages/mindplot/stats.json b/packages/mindplot/stats.json deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/mindplot/webpack.common.js b/packages/mindplot/webpack.common.js index fd1b20a2..514b88a8 100644 --- a/packages/mindplot/webpack.common.js +++ b/packages/mindplot/webpack.common.js @@ -26,7 +26,6 @@ module.exports = { resolve: { alias: { '@libraries': path.resolve(__dirname, '../../libraries/'), - '@wisemapping/web2d': path.resolve(__dirname, '../web2d/'), }, extensions: ['.js', '.json'], }, diff --git a/packages/web2d/jsconfig.json b/packages/web2d/jsconfig.json index 13231242..45ef1f1e 100644 --- a/packages/web2d/jsconfig.json +++ b/packages/web2d/jsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "baseUrl": ".", - "module": "commonjs", + "module": "ES6", }, "exclude": ["node_modules"] } diff --git a/packages/web2d/package.json b/packages/web2d/package.json index 084e62b2..51860ec3 100644 --- a/packages/web2d/package.json +++ b/packages/web2d/package.json @@ -1,21 +1,17 @@ { "name": "@wisemapping/web2d", - "version": "0.0.1", + "version": "0.4.0", "description": "WiseMapping - Web2D Render Library", "homepage": "http://www.wisemapping.org/", - "license": "ISC", - "main": "dist/main.js", - "directories": { - "src": "src", - "test": "__tests__" - }, + "license": "MIT", + "main": "dist/web2d.js", "files": [ "src" ], + "private": false, "publishConfig": { "registry": "https://registry.yarnpkg.com" }, - "private": false, "repository": { "type": "git", "url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git" diff --git a/packages/web2d/webpack.common.js b/packages/web2d/webpack.common.js index 4e96e467..e10f2869 100644 --- a/packages/web2d/webpack.common.js +++ b/packages/web2d/webpack.common.js @@ -5,7 +5,7 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin'); module.exports = { output: { path: path.resolve(__dirname, 'dist'), - filename: '[name].js', + filename: 'web2d.js', publicPath: '', library: { type: 'umd',