Skip to content

Commit 3fa8b67

Browse files
dev: convert to typescript
1 parent 53b4039 commit 3fa8b67

File tree

8 files changed

+379
-178
lines changed

8 files changed

+379
-178
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"targets": ["Firefox ESR", "last 2 chrome versions", "last 2 safari versions"],
77
"loose": false
88
}
9-
]
9+
],
10+
["@babel/preset-typescript", { "rewriteImportExtensions": true }]
1011
]
1112
}

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"license": "MIT",
1313
"scripts": {
1414
"build": "yarn run build:yarn && yarn run build:dist",
15-
"build:yarn": "babel source --out-dir distribution --presets=@babel/preset-env",
15+
"build:yarn": "babel source --extensions .ts --out-dir distribution --presets=@babel/preset-env,@babel/preset-typescript",
1616
"build:dist": "cross-env NODE_OPTIONS=--openssl-legacy-provider webpack",
1717
"test": "echo 'doing nothing'",
1818
"docs": "jsdoc source/*.js -d ./docs/"
@@ -21,6 +21,10 @@
2121
"@babel/cli": "^7.26.4",
2222
"@babel/core": "^7.26.9",
2323
"@babel/preset-env": "^7.26.9",
24+
"@babel/preset-typescript": "^7.26.0",
25+
"@types/event-emitter-es6": "^1.1.4",
26+
"@types/sharedb": "^5.1.0",
27+
"ace-builds": "^1.38.0",
2428
"amd-loader": "^0.0.8",
2529
"assert": "^2.1.0",
2630
"babel-loader": "^8.1.0",
@@ -31,8 +35,10 @@
3135
"eslint": "^7.6.0",
3236
"jsdom": "^16.3.0",
3337
"mocha": "^8.1.1",
38+
"react-ace": "^14.0.1",
39+
"typescript": "^5.7.3",
3440
"webpack": "^5.98.0",
35-
"webpack-cli": "^5.1.4"
41+
"webpack-cli": "^6.0.1"
3642
},
3743
"dependencies": {
3844
"@convergencelabs/ace-collab-ext": "^0.6.0",

0 commit comments

Comments
 (0)