Skip to content

Commit c2cb42b

Browse files
authored
Merge pull request #20 from github/typescript
Replace Babel + Flow with TypeScript
2 parents 48599c9 + 5418a4d commit c2cb42b

File tree

15 files changed

+200
-1287
lines changed

15 files changed

+200
-1287
lines changed

.eslintrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.flowconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [8.x, 10.x, 12.x]
14+
node-version: [10.x, 12.x]
1515

1616
steps:
1717
- uses: actions/checkout@v1

examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h2>Branch</h4>
2626
<textarea cols="50" rows="10"></textarea>
2727
</div>
2828
<script type="module">
29-
import {install} from '../dist/quote-selection.esm.js'
29+
import {install} from '../dist/index.js'
3030

3131
for(const container of document.querySelectorAll('[data-quote-selection-region]')) {
3232
install(container)

index.d.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
module.exports = function (config) {
22
config.set({
33
frameworks: ['mocha', 'chai'],
4-
files: ['../dist/quote-selection.umd.js', 'test.js'],
4+
files: [
5+
{pattern: 'dist/index.js', type: 'module'},
6+
{pattern: 'test/test.js', type: 'module'}
7+
],
58
reporters: ['mocha'],
69
port: 9876,
710
colors: true,

0 commit comments

Comments
 (0)