Skip to content

Commit

Permalink
[FEAT] ~minor ✨ Typescript experimental y modulos nativos de ECMAScript
Browse files Browse the repository at this point in the history
[Link a la tarea ](https://apps.edicomgroup.com/JDev/#idstask|)
/label ~"status::needs triage" ~type::feat ~minor
/assign me
  • Loading branch information
jsan committed Feb 23, 2022
1 parent 959f638 commit 1e58a88
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 37 deletions.
186 changes: 154 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "hashcode-2022-cryptobros",
"type": "module",
"version": "0.0.1",
"description": "Google HashCode Competition 2022 - Cryptobros team",
"author": "Cryptobros",
Expand All @@ -18,7 +19,7 @@
},
"scripts": {
"start": "ts-node src/main",
"practice": "ts-node practice_round/src/main.ts",
"practice": "TS_NODE_TRANSPILE_ONLY=true node --loader ts-node/esm practice_round/src/main.ts",
"lint": "eslint src/ --ext .js,.jsx,.ts,.tsx",
"clean": "rm -rf dist build package",
"ts-node": "ts-node --transpile-only",
Expand All @@ -44,7 +45,7 @@
"prettier": "2.5.1",
"ts-node": "^10.5.0",
"typedoc": "^0.22.12",
"typescript": "^4.5.5"
"typescript": "^4.7.0-dev.20220223"
},
"dependencies": {
"lodash": "^4.17.21",
Expand Down
3 changes: 2 additions & 1 deletion practice_round/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
},
"editor.minimap.maxColumn": 250,
"html.format.wrapLineLength": 175,
"html.format.wrapAttributes": "aligned-multiple"
"html.format.wrapAttributes": "aligned-multiple",
"typescript.tsdk": "./node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion practice_round/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path';
import { readDataset } from '../utils/dataset-reader';
import { readDataset } from '../utils/dataset-reader.js';

readDataset(path.resolve(process.cwd(), './practice_round/datasets/a_an_example.in.txt')).then(
(dataset) => console.log(dataset),
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"typeRoots": ["./src/@types"],
"target": "es6",
"module": "commonjs",
"module": "ESNext",
"moduleResolution": "node",
"declaration": true,
"allowJs": true,
Expand Down

0 comments on commit 1e58a88

Please sign in to comment.