@amekusa/util.js 1.2.1 → 2.0.0

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
@@ -5,7 +5,7 @@
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
8
- "version": "1.2.1",
8
+ "version": "2.0.0",
9
9
  "description": "General purpose utility for JS",
10
10
  "type": "module",
11
11
  "files": [
@@ -13,17 +13,18 @@
13
13
  ],
14
14
  "exports": {
15
15
  ".": {
16
- "import": "./dist/import/bundle.js",
17
- "require": "./dist/require/bundle.cjs"
18
- }
16
+ "import": "./dist/amekusa.util.js",
17
+ "require": "./dist/amekusa.util.cjs"
18
+ },
19
+ "./browser": "./dist/amekusa.util.br.es.js"
19
20
  },
20
21
  "scripts": {
21
22
  "dev": "npm-watch",
22
23
  "test": "c8 mocha",
23
24
  "lint": "eslint .",
24
- "build": "npm run lint && rollup -c rollup.js",
25
+ "build": "npm run lint && rollup -c",
25
26
  "clean": "rm -rf ./dist",
26
- "prod": "npm run clean; NODE_ENV=production npm run build",
27
+ "prod": "npm run clean; NODE_ENV=production npm run build && npm run test",
27
28
  "docs": "npm run docs:gen && npm run docs:publish",
28
29
  "docs:gen": "npm run docs:clean; jsdoc -c jsdoc.json && cd docs/@amekusa/util.js && ln -sfn $npm_package_version latest",
29
30
  "docs:clean": "rm -rf docs/@amekusa/util.js/$npm_package_version",
@@ -59,6 +60,6 @@
59
60
  "author": "Satoshi Soma (https://amekusa.com)",
60
61
  "license": "MIT",
61
62
  "devDependencies": {
62
- "@amekusa/nodeutil": "^3.4.0"
63
+ "@rollup/plugin-terser": "^0.4.4"
63
64
  }
64
65
  }