Skip to content

Commit

Permalink
refactor: Initial refactor to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
aholstenson committed Sep 28, 2019
1 parent db7f473 commit fb3bcc3
Show file tree
Hide file tree
Showing 213 changed files with 8,600 additions and 9,596 deletions.
22 changes: 0 additions & 22 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion build/unicode.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ const source = Object.keys(matchers).map(m =>
).join('');

fs.writeFileSync(
path.join(__dirname, '..', 'src', 'language', 'matchers.js'),
path.join(__dirname, '..', 'src', 'language', 'matchers.ts'),
source
);
26 changes: 26 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
transform: {
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/"
],
"collectCoverageFrom": [
"src/**/*.{js,ts}"
],
globals: {
"ts-jest": {
"diagnostics": {
"ignoreCodes": "TS2531"
}
}
}
}
5 changes: 3 additions & 2 deletions language/en/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"main": "../../cjs/language/en/index.js",
"module": "../../src/language/en/index.js"
"main": "../../dist/cjs/language/en/index.js",
"module": "../../dist/esm/language/en/index.js",
"types":"../../dist/types/language/en/index.d.ts"
}
Loading

0 comments on commit fb3bcc3

Please sign in to comment.