@arcblock/erc721did-contract 0.3.1 → 0.3.2

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
@@ -3,18 +3,23 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.1",
7
- "main": "./lib",
8
- "module": "./lib",
9
- "typings": "./lib",
6
+ "version": "0.3.2",
10
7
  "exports": {
11
8
  ".": {
12
- "import": "./lib",
13
- "require": "./lib"
9
+ "import": "./lib/esm",
10
+ "require": "./lib/cjs"
11
+ },
12
+ "./lib/*": {
13
+ "import": "./lib/esm/*",
14
+ "require": "./lib/cjs/*"
15
+ },
16
+ "./lib/contract": {
17
+ "import": "./lib/esm/contract.js",
18
+ "require": "./lib/cjs/contract.js"
14
19
  },
15
20
  "./contract": {
16
- "import": "./lib/contract.js",
17
- "require": "./lib/contract.js"
21
+ "import": "./lib/esm/contract.js",
22
+ "require": "./lib/cjs/contract.js"
18
23
  }
19
24
  },
20
25
  "files": [
@@ -28,8 +33,11 @@
28
33
  "@ocap/merkle-tree": "1.18.34",
29
34
  "@ocap/wallet": "1.18.34",
30
35
  "@openzeppelin/contracts": "^4.9.0",
36
+ "@rollup/plugin-commonjs": "^25.0.0",
37
+ "@rollup/plugin-json": "^6.0.0",
38
+ "@rollup/plugin-node-resolve": "^15.0.2",
31
39
  "@types/mocha": "^10.0.1",
32
- "@types/node": "^18.16.14",
40
+ "@types/node": "^18.16.16",
33
41
  "chai": "^4.3.7",
34
42
  "dotenv-flow": "^3.2.0",
35
43
  "envfile": "^6.18.0",
@@ -37,11 +45,13 @@
37
45
  "ethereum-waffle": "^3.4.4",
38
46
  "ethereumjs-util": "^7.1.5",
39
47
  "ethereumjs-wallet": "^1.0.2",
48
+ "glob": "^10.2.6",
40
49
  "hardhat": "^2.14.0",
41
50
  "hardhat-contract-sizer": "^2.9.0",
42
51
  "hardhat-deploy": "^0.9.29",
43
52
  "hardhat-gas-reporter": "^1.0.9",
44
53
  "prettier": "^2.8.8",
54
+ "rollup-plugin-copy": "^3.4.0",
45
55
  "solidity-coverage": "^0.7.22",
46
56
  "web3": "^1.10.0",
47
57
  "web3-utils": "^1.10.0"
@@ -55,10 +65,10 @@
55
65
  "p-wait-for": "^3.2.0"
56
66
  },
57
67
  "scripts": {
58
- "copy-to-lib": "node tools/copy-to-lib.js",
59
- "lint": "eslint tests tools lib",
60
- "test": "hardhat test",
61
- "test:local": "NODE_ENV=local hardhat test --network localhost",
68
+ "copy-to-lib": "node tools/copy-to-lib.js && npx rollup -c",
69
+ "lint": "eslint tests tools",
70
+ "test": "NODE_ENV=local hardhat test --network localhost",
71
+ "test:local": "pnpm run test",
62
72
  "deploy": "hardhat deploy",
63
73
  "deploy:local": "NODE_ENV=local hardhat deploy --network localhost",
64
74
  "clean": "hardhat clean",
@@ -67,6 +77,6 @@
67
77
  "coverage": "hardhat coverage",
68
78
  "codesize": "hardhat size-contracts",
69
79
  "node": "ps -ef | grep hardhat | grep -v grep | awk '{print $2}' | xargs kill -9 && hardhat node",
70
- "dev": "NODE_ENV=local nodemon --exec 'npm run copy-to-lib' --ignore 'lib/*' --ignore 'tools/*.json'"
80
+ "dev": "npm run compile && NODE_ENV=local nodemon --exec 'npm run copy-to-lib' --ignore 'lib/*' --ignore 'tools/*.json'"
71
81
  }
72
82
  }