aboutsummaryrefslogtreecommitdiffstats
path: root/packages/theme
diff options
context:
space:
mode:
Diffstat (limited to 'packages/theme')
-rw-r--r--packages/theme/package.json7
-rw-r--r--packages/theme/src/themes/dark/index.ts2
-rw-r--r--packages/theme/src/themes/default/index.ts2
-rw-r--r--packages/theme/webpack.config.js25
4 files changed, 29 insertions, 7 deletions
diff --git a/packages/theme/package.json b/packages/theme/package.json
index 0bc0423bf..8b4cb8ef6 100644
--- a/packages/theme/package.json
+++ b/packages/theme/package.json
@@ -6,9 +6,6 @@
6 "homepage": "https://github.com/meetfranz/franz", 6 "homepage": "https://github.com/meetfranz/franz",
7 "license": "Apache-2.0", 7 "license": "Apache-2.0",
8 "main": "lib/index.js", 8 "main": "lib/index.js",
9 "files": [
10 "lib/**/*"
11 ],
12 "publishConfig": { 9 "publishConfig": {
13 "access": "public" 10 "access": "public"
14 }, 11 },
@@ -17,8 +14,8 @@
17 "url": "git+https://github.com/meetfranz/franz.git" 14 "url": "git+https://github.com/meetfranz/franz.git"
18 }, 15 },
19 "scripts": { 16 "scripts": {
20 "dev": "tsc -w", 17 "dev": "NODE_ENV=development ../../node_modules/.bin/webpack -w",
21 "prepare": "tsc", 18 "prepare": "../../node_modules/.bin/webpack",
22 "preprepare": "npm run test", 19 "preprepare": "npm run test",
23 "test": "npx mocha" 20 "test": "npx mocha"
24 }, 21 },
diff --git a/packages/theme/src/themes/dark/index.ts b/packages/theme/src/themes/dark/index.ts
index 7eac5a3c3..3c17d03ae 100644
--- a/packages/theme/src/themes/dark/index.ts
+++ b/packages/theme/src/themes/dark/index.ts
@@ -1,4 +1,4 @@
1import color from 'color'; 1import * as color from 'color';
2 2
3import * as legacyStyles from '../legacy'; 3import * as legacyStyles from '../legacy';
4 4
diff --git a/packages/theme/src/themes/default/index.ts b/packages/theme/src/themes/default/index.ts
index b22730413..f7d58a375 100644
--- a/packages/theme/src/themes/default/index.ts
+++ b/packages/theme/src/themes/default/index.ts
@@ -1,4 +1,4 @@
1import color from 'color'; 1import * as color from 'color';
2 2
3import * as legacyStyles from '../legacy'; 3import * as legacyStyles from '../legacy';
4 4
diff --git a/packages/theme/webpack.config.js b/packages/theme/webpack.config.js
new file mode 100644
index 000000000..f7311109d
--- /dev/null
+++ b/packages/theme/webpack.config.js
@@ -0,0 +1,25 @@
1const path = require('path');
2
3console.log(__dirname);
4
5module.exports = {
6 context: __dirname,
7 entry: path.join(__dirname, '/src/index.ts'),
8 output: {
9 filename: 'index.js',
10 path: path.join(__dirname, 'lib'),
11 libraryTarget: 'commonjs2',
12 },
13 module: {
14 rules: [{
15 test: /\.tsx?$/,
16 loader: 'ts-loader',
17 exclude: /node_modules/,
18 }],
19 },
20 resolve: {
21 extensions: ['.tsx', '.ts', '.js'],
22 },
23 devtool: 'inline-source-map',
24 mode: process.env.NODE_ENV === 'development' ? 'development' : 'production',
25};