|
6 | 6 | "types": "./types/src/index.d.ts", |
7 | 7 | "type": "module", |
8 | 8 | "scripts": { |
9 | | - "build": "npm run build:js && npm run build:types", |
10 | | - "build:js": "ipjs build --tests --main && npm run build:copy", |
11 | | - "build:copy": "cp -a tsconfig.json src vendor test dist/ && rm -rf dist/test/ts-use", |
12 | | - "build:types": "npm run build:copy && cd dist && tsc --build", |
13 | | - "build:vendor": "npm run build:vendor:varint && npm run build:vendor:base-x", |
14 | | - "build:vendor:varint": "npm_config_yes=true npx brrp -x varint > vendor/varint.js", |
15 | | - "build:vendor:base-x": "npm_config_yes=true npx brrp -x @multiformats/base-x > vendor/base-x.js", |
16 | | - "lint": "standard", |
17 | | - "test:cjs": "npm run build:js && mocha dist/cjs/node-test/test-*.js && npm run test:cjs:browser", |
18 | | - "test:esm": "npm run build:js && mocha dist/esm/node-test/test-*.js && npm run test:esm:browser", |
19 | | - "test:node": "c8 --check-coverage --branches 100 --functions 100 --lines 100 mocha test/test-*.js", |
20 | | - "test:cjs:browser": "polendina --page --worker --serviceworker --cleanup dist/cjs/browser-test/test-*.js", |
21 | | - "test:esm:browser": "polendina --page --worker --serviceworker --cleanup dist/esm/browser-test/test-*.js", |
22 | | - "test:ts": "npm run build:types && npm run test --prefix test/ts-use", |
23 | | - "test": "npm run lint && npm run test:node && npm run test:esm && npm run test:ts", |
24 | | - "test:ci": "npm run lint && npm run test:node && npm run test:esm && npm run test:cjs && npm run test:ts", |
25 | | - "coverage": "c8 --reporter=html mocha test/test-*.js && npm_config_yes=true npx st -d coverage -p 8080" |
| 9 | + "lint": "aegir lint", |
| 10 | + "release": "aegir release", |
| 11 | + "build": "aegir build", |
| 12 | + "test": "aegir test", |
| 13 | + "test:node": "aegir test --target node", |
| 14 | + "test:browser": "aegir test --target browser" |
26 | 15 | }, |
27 | | - "c8": { |
28 | | - "exclude": [ |
29 | | - "test/**", |
30 | | - "vendor/**" |
31 | | - ] |
| 16 | + "aegir": { |
| 17 | + "build": { |
| 18 | + "bundle": false |
| 19 | + }, |
| 20 | + "test": { |
| 21 | + "cov": true, |
| 22 | + "target": ["node", "browser"] |
| 23 | + } |
32 | 24 | }, |
33 | 25 | "keywords": [ |
34 | 26 | "ipfs", |
|
111 | 103 | "@types/chai-as-promised": "^7.1.4", |
112 | 104 | "@types/mocha": "^9.0.0", |
113 | 105 | "@types/node": "^18.0.0", |
114 | | - "@typescript-eslint/eslint-plugin": "^5.6.0", |
115 | | - "@typescript-eslint/parser": "^5.6.0", |
| 106 | + "aegir": "^37.5.1", |
116 | 107 | "buffer": "^6.0.3", |
117 | | - "c8": "^7.10.0", |
118 | 108 | "chai": "^4.3.4", |
119 | 109 | "chai-as-promised": "^7.1.1", |
120 | | - "cids": "^1.1.9", |
121 | | - "ipjs": "^5.2.0", |
122 | | - "mocha": "^10.0.0", |
123 | | - "polendina": "^3.0.0", |
124 | | - "standard": "^17.0.0", |
125 | | - "typescript": "^4.5.4" |
126 | | - }, |
127 | | - "standard": { |
128 | | - "ignore": [ |
129 | | - "dist", |
130 | | - "vendor" |
131 | | - ] |
| 110 | + "cids": "^1.1.9" |
132 | 111 | }, |
133 | 112 | "directories": { |
134 | 113 | "test": "test" |
|
150 | 129 | "types/*" |
151 | 130 | ] |
152 | 131 | } |
153 | | - }, |
154 | | - "release": { |
155 | | - "branches": [ |
156 | | - "master" |
157 | | - ], |
158 | | - "plugins": [ |
159 | | - [ |
160 | | - "@semantic-release/commit-analyzer", |
161 | | - { |
162 | | - "preset": "conventionalcommits", |
163 | | - "releaseRules": [ |
164 | | - { |
165 | | - "breaking": true, |
166 | | - "release": "major" |
167 | | - }, |
168 | | - { |
169 | | - "revert": true, |
170 | | - "release": "patch" |
171 | | - }, |
172 | | - { |
173 | | - "type": "feat", |
174 | | - "release": "minor" |
175 | | - }, |
176 | | - { |
177 | | - "type": "fix", |
178 | | - "release": "patch" |
179 | | - }, |
180 | | - { |
181 | | - "type": "chore", |
182 | | - "release": "patch" |
183 | | - }, |
184 | | - { |
185 | | - "type": "docs", |
186 | | - "release": "patch" |
187 | | - }, |
188 | | - { |
189 | | - "type": "test", |
190 | | - "release": "patch" |
191 | | - }, |
192 | | - { |
193 | | - "scope": "no-release", |
194 | | - "release": false |
195 | | - } |
196 | | - ] |
197 | | - } |
198 | | - ], |
199 | | - [ |
200 | | - "@semantic-release/release-notes-generator", |
201 | | - { |
202 | | - "preset": "conventionalcommits", |
203 | | - "presetConfig": { |
204 | | - "types": [ |
205 | | - { |
206 | | - "type": "feat", |
207 | | - "section": "Features" |
208 | | - }, |
209 | | - { |
210 | | - "type": "fix", |
211 | | - "section": "Bug Fixes" |
212 | | - }, |
213 | | - { |
214 | | - "type": "chore", |
215 | | - "section": "Trivial Changes" |
216 | | - }, |
217 | | - { |
218 | | - "type": "docs", |
219 | | - "section": "Trivial Changes" |
220 | | - }, |
221 | | - { |
222 | | - "type": "test", |
223 | | - "section": "Tests" |
224 | | - } |
225 | | - ] |
226 | | - } |
227 | | - } |
228 | | - ], |
229 | | - "@semantic-release/changelog", |
230 | | - [ |
231 | | - "@semantic-release/npm", |
232 | | - { |
233 | | - "pkgRoot": "dist" |
234 | | - } |
235 | | - ], |
236 | | - "@semantic-release/github", |
237 | | - "@semantic-release/git" |
238 | | - ] |
239 | 132 | } |
240 | 133 | } |
0 commit comments