@joyzl/eno 1.1.6 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@joyzl/eno",
3
- "version": "1.1.6",
3
+ "version": "1.2.1",
4
4
  "description": "Easy Node Object",
5
- "main": "index.js",
5
+ "main": "dist/joyzl-eno.js",
6
+ "module": "index.js",
6
7
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "build": "webpack --mode=production"
8
10
  },
9
11
  "repository": {
10
12
  "type": "git",
@@ -12,6 +14,7 @@
12
14
  },
13
15
  "keywords": [
14
16
  "eno",
17
+ "joyzl",
15
18
  "webpack",
16
19
  "html",
17
20
  "json"
@@ -23,6 +26,7 @@
23
26
  },
24
27
  "homepage": "https://github.com/JoyLinks/eno#readme",
25
28
  "devDependencies": {
26
- "webpack": "^5.91.0"
29
+ "webpack": "^5.91.0",
30
+ "webpack-cli": "^5.1.4"
27
31
  }
28
32
  }
@@ -0,0 +1,14 @@
1
+ const path = require('path');
2
+
3
+ module.exports = {
4
+ entry: './index.js',
5
+ output: {
6
+ path: path.resolve(__dirname, 'dist'),
7
+ filename: 'joyzl-eno.js',
8
+ library: {
9
+ name: 'eno',
10
+ type: 'umd'
11
+ },
12
+ clean: true
13
+ }
14
+ };