@gmod/trix 0.2.1 → 2.0.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,59 +1,45 @@
1
1
  {
2
- "version": "0.2.1",
2
+ "version": "2.0.1",
3
3
  "license": "Apache-2.0",
4
4
  "main": "dist/index.js",
5
- "typings": "dist/index.d.ts",
5
+ "module": "esm/index.js",
6
6
  "files": [
7
7
  "dist",
8
- "src"
8
+ "esm"
9
9
  ],
10
10
  "engines": {
11
11
  "node": ">=10"
12
12
  },
13
13
  "scripts": {
14
- "start": "tsdx watch",
15
- "build": "tsdx build",
16
- "test": "tsdx test",
17
- "test:watch": "tsdx test --watch",
18
- "lint": "tsdx lint",
19
- "prepare": "tsdx build",
20
- "size": "size-limit",
21
- "analyze": "size-limit --why"
22
- },
23
- "husky": {
24
- "hooks": {
25
- "pre-commit": "tsdx lint"
26
- }
27
- },
28
- "prettier": {
29
- "printWidth": 80,
30
- "semi": true,
31
- "singleQuote": true,
32
- "trailingComma": "es5"
14
+ "lint": "eslint --report-unused-disable-directives --max-warnings 0 --ext .js,.ts src ",
15
+ "prebuild": "rimraf dist esm",
16
+ "build:esm": "tsc --target es2018 --outDir esm",
17
+ "build:es5": "tsc --target es5 --outDir dist",
18
+ "build": "npm run build:esm && npm run build:es5",
19
+ "preversion": "npm run lint && npm test && npm run build",
20
+ "postversion": "git push --follow-tags",
21
+ "test": "jest"
33
22
  },
34
23
  "name": "@gmod/trix",
35
24
  "author": "Matt Morgan",
36
- "module": "dist/trix.esm.js",
37
25
  "repository": "GMOD/trix-js",
38
- "size-limit": [
39
- {
40
- "path": "dist/trix.cjs.production.min.js",
41
- "limit": "10 KB"
42
- },
43
- {
44
- "path": "dist/trix.esm.js",
45
- "limit": "10 KB"
46
- }
47
- ],
48
26
  "devDependencies": {
49
- "@size-limit/preset-small-lib": "^4.10.1",
50
- "@types/node": "^14.14.37",
27
+ "@types/jest": "^27.0.3",
28
+ "@types/node": "^16.11.13",
29
+ "@typescript-eslint/eslint-plugin": "^5.7.0",
30
+ "@typescript-eslint/parser": "^5.7.0",
31
+ "eslint": "^7.0.0",
32
+ "eslint-config-airbnb-base": "^15.0.0",
33
+ "eslint-config-airbnb-typescript": "^16.1.0",
34
+ "eslint-config-prettier": "^8.3.0",
35
+ "eslint-plugin-import": "^2.25.3",
36
+ "eslint-plugin-prettier": "^4.0.0",
51
37
  "generic-filehandle": "^2.1.0",
52
- "husky": "^5.1.3",
53
- "size-limit": "^4.10.1",
54
- "tsdx": "^0.14.1",
55
- "tslib": "^2.1.0",
56
- "typescript": "^4.2.3"
38
+ "jest": "^27.0.6",
39
+ "prettier": "^2.5.1",
40
+ "rimraf": "^3.0.2",
41
+ "ts-jest": "^27.0.4",
42
+ "typescript": "^4.3.5"
57
43
  },
58
44
  "dependencies": {},
59
45
  "publishConfig": {