|
76 | 76 | "lib/" |
77 | 77 | ], |
78 | 78 | "scripts": { |
79 | | - "prettier": "prettier --ignore-path .gitignore --write \"src/**/*.{ts,tsx,js,jsx}\"", |
80 | | - "prettier:check": "prettier --ignore-path .gitignore --list-different 'src/**/*.{ts,tsx,js,jsx}'", |
| 79 | + "prettier": "npx prettier@3.2.5 --ignore-path .gitignore --write \"src/**/*.{ts,tsx,js,jsx}\"", |
| 80 | + "prettier:check": "npx prettier@3.2.5 --ignore-path .gitignore --list-different 'src/**/*.{ts,tsx,js,jsx}'", |
81 | 81 | "lint": "yarn tslint", |
82 | 82 | "lint:fix": "yarn tslint --fix", |
83 | 83 | "tslint": "tslint 'src/**/*.{js,jsx,ts,tsx}' -t verbose --project .", |
84 | | - "clean": "rimraf lib es6 es2019 es2020 esm typedocs coverage gh-pages yarn-error.log", |
| 84 | + "clean": "npx rimraf@5.0.5 lib es6 es2019 es2020 esm typedocs coverage gh-pages yarn-error.log src/**/__bench__/node_modules src/**/__bench__/yarn-error.log", |
85 | 85 | "build:es2020": "tsc --project tsconfig.build.json --module commonjs --target es2020 --outDir lib", |
86 | | - "build:all": "concurrently \"yarn build:es2020\"", |
| 86 | + "build:all": "npx concurrently@8.2.2 \"yarn build:es2020\"", |
87 | 87 | "build": "yarn build:es2020", |
88 | | - "jest": "node -r ts-node/register ./node_modules/.bin/jest", |
| 88 | + "jest": "jest", |
89 | 89 | "test": "jest --maxWorkers 7", |
90 | 90 | "test:all": "yarn lint && yarn test && yarn build:all && yarn test:cli:pointer && yarn test:cli:patch && yarn test:cli:pack && yarn demo:json-patch && yarn demo:json-pointer", |
91 | 91 | "test:ci": "yarn jest --maxWorkers 3 --no-cache", |
92 | 92 | "test:cli": "yarn test:cli:pointer && yarn test:cli:patch && yarn test:cli:pack", |
93 | 93 | "test:cli:pointer": "./bin/json-pointer-test.js ./bin/json-pointer.js", |
94 | 94 | "test:cli:patch": "./bin/json-patch-test.js ./bin/json-patch.js", |
95 | 95 | "test:cli:pack": "./bin/json-pack-test.js ./bin/json-pack.js", |
96 | | - "demo:json-patch": "ts-node src/json-patch/__demos__/json-patch.ts", |
97 | | - "demo:json-pointer": "ts-node src/json-pointer/__demos__/json-pointer.ts", |
| 96 | + "demo:json-patch": "npx ts-node src/json-patch/__demos__/json-patch.ts", |
| 97 | + "demo:json-pointer": "npx ts-node src/json-pointer/__demos__/json-pointer.ts", |
| 98 | + "bench:json-crdt:traces:crdt-libs": "cd src/json-crdt/__bench__ && yarn && yarn bench:traces:crdt-libs", |
| 99 | + "bench:json-crdt:traces:non-crdt-libs": "cd src/json-crdt/__bench__ && yarn && yarn bench:traces:non-crdt-libs", |
| 100 | + "bench:json-crdt:concurrent-traces": "cd src/json-crdt/__bench__ && yarn && yarn bench:concurrent-traces", |
| 101 | + "bench:json-crdt:codecs:encoding": "cd src/json-crdt/__bench__ && yarn && yarn bench:codecs:encoding", |
| 102 | + "bench:json-crdt:codecs:decoding": "cd src/json-crdt/__bench__ && yarn && yarn bench:codecs:decoding", |
| 103 | + "bench:json-crdt:codecs:encoding:json": "cd src/json-crdt/__bench__ && yarn && yarn bench:codecs:encoding:json", |
| 104 | + "bench:json-crdt:codecs:encoding:libs": "cd src/json-crdt/__bench__ && yarn && yarn bench:codecs:encoding:libs", |
| 105 | + "bench:json-crdt:codecs:sizes": "cd src/json-crdt/__bench__ && yarn && yarn bench:codecs:sizes", |
| 106 | + "bench:json-ot:ot-string:apply": "cd src/json-ot/__bench__ && yarn && yarn bench:ot-string:apply", |
| 107 | + "bench:json-ot:ot-string:compose-and-transform": "yarn build && cd src/json-ot/__bench__ && yarn && yarn bench:ot-string:compose-and-transform", |
98 | 108 | "coverage": "yarn test --collectCoverage", |
99 | | - "typedoc": "typedoc", |
100 | | - "build:pages": "rimraf gh-pages && mkdir -p gh-pages && cp -r typedocs/* gh-pages && cp -r coverage gh-pages/coverage", |
| 109 | + "typedoc": "npx typedoc@0.25.13 --tsconfig tsconfig.build.json", |
| 110 | + "build:pages": "npx rimraf@5.0.5 gh-pages && mkdir -p gh-pages && cp -r typedocs/* gh-pages && cp -r coverage gh-pages/coverage", |
101 | 111 | "deploy:pages": "gh-pages -d gh-pages", |
102 | 112 | "publish-coverage-and-typedocs": "yarn typedoc && yarn coverage && yarn build:pages && yarn deploy:pages", |
103 | | - "jj": "ts-node src/json-cli/jj.ts" |
| 113 | + "jj": "npx ts-node src/json-cli/jj.ts" |
104 | 114 | }, |
105 | 115 | "peerDependencies": { |
106 | | - "quill-delta": "^5", |
107 | 116 | "rxjs": "7", |
108 | 117 | "tslib": "2" |
109 | 118 | }, |
110 | 119 | "peerDependenciesMeta": { |
111 | | - "quill-delta": { |
112 | | - "optional": true |
113 | | - }, |
114 | 120 | "rxjs": { |
115 | 121 | "optional": true |
116 | 122 | } |
|
125 | 131 | "thingies": "^1.20.0" |
126 | 132 | }, |
127 | 133 | "devDependencies": { |
128 | | - "@automerge/automerge": "2.1.13", |
129 | | - "@collabs/collabs": "0.13.4", |
130 | | - "@exodus/schemasafe": "^1.0.0-rc.6", |
131 | 134 | "@types/benchmark": "^2.1.2", |
132 | 135 | "@types/jest": "^29.5.12", |
133 | | - "@types/quill": "^2.0.14", |
134 | | - "ajv": "^8.11.0", |
135 | | - "app-root-path": "^3.1.0", |
136 | | - "axios": "^1.3.5", |
137 | 136 | "benchmark": "^2.1.4", |
138 | | - "concurrently": "^8.0.1", |
139 | | - "diamond-types-node": "1.0.2", |
| 137 | + "config-housekeeping": "https://github.com/streamich/housekeeping#3532d2abeac159315ddf403d70517859d079c801", |
140 | 138 | "editing-traces": "https://github.com/streamich/editing-traces#6494020428530a6e382378b98d1d7e31334e2d7b", |
141 | 139 | "fast-json-patch": "^3.0.0-1", |
142 | | - "fork-ts-checker-webpack-plugin": "^8.0.0", |
143 | | - "gh-pages": "^5.0.0", |
144 | | - "html-webpack-plugin": "^5.5.1", |
145 | | - "husky": "^8.0.3", |
146 | | - "isomorphic-ws": "^5.0.0", |
147 | 140 | "jest": "^29.7.0", |
148 | 141 | "json-crdt-traces": "https://github.com/streamich/json-crdt-traces#ec825401dc05cbb74b9e0b3c4d6527399f54d54d", |
149 | 142 | "json-logic-js": "^2.0.1", |
150 | | - "loro-crdt": "^0.4.1", |
151 | | - "nodemon": "^3.0.0", |
152 | | - "ot-text": "^1.0.2", |
153 | | - "ot-text-unicode": "^4.0.0", |
154 | | - "p4-css": "^1.5.1", |
155 | | - "prettier": "^3.2.5", |
156 | | - "pretty-quick": "^3.1.3", |
157 | | - "quill-delta": "^5.0.0", |
158 | | - "rimraf": "^5.0.0", |
159 | | - "rope.js": "0.1.0", |
160 | | - "tinybench": "^2.4.0", |
| 143 | + "rxjs": "^7.8.1", |
161 | 144 | "ts-jest": "^29.1.2", |
162 | | - "ts-loader": "^9.5.1", |
163 | | - "ts-node": "^10.9.2", |
164 | 145 | "tslib": "^2.6.2", |
165 | 146 | "tslint": "^6.1.3", |
166 | 147 | "tslint-config-common": "^1.6.2", |
167 | | - "typedoc": "^0.25.13", |
168 | | - "typescript": "^5.4.4", |
169 | | - "webpack": "^5.91.0", |
170 | | - "webpack-cli": "^5.1.4", |
171 | | - "webpack-dev-server": "^5.0.4", |
172 | | - "yjs": "13.6.14", |
173 | | - "ywasm": "0.16.10" |
| 148 | + "typescript": "^5.4.4" |
174 | 149 | }, |
175 | 150 | "jest": { |
176 | 151 | "verbose": true, |
|
187 | 162 | "transform": { |
188 | 163 | "^.+\\.ts$": "ts-jest" |
189 | 164 | }, |
190 | | - "transformIgnorePatterns": [], |
| 165 | + "transformIgnorePatterns": [ |
| 166 | + ".*/node_modules/.*" |
| 167 | + ], |
191 | 168 | "testRegex": ".*/(__tests__|__jest__|demo)/.*\\.(test|spec)\\.ts$" |
192 | 169 | }, |
193 | 170 | "prettier": { |
|
230 | 207 | ] |
231 | 208 | } |
232 | 209 | } |
| 210 | + }, |
| 211 | + "release": { |
| 212 | + "branches": [ |
| 213 | + "master", |
| 214 | + { |
| 215 | + "name": "next", |
| 216 | + "prerelease": true |
| 217 | + } |
| 218 | + ], |
| 219 | + "prepare": [ |
| 220 | + "@semantic-release/changelog", |
| 221 | + "@semantic-release/npm", |
| 222 | + "@semantic-release/git" |
| 223 | + ], |
| 224 | + "verifyConditions": [ |
| 225 | + "@semantic-release/changelog", |
| 226 | + "@semantic-release/npm", |
| 227 | + "@semantic-release/git" |
| 228 | + ] |
233 | 229 | } |
234 | 230 | } |
0 commit comments