Skip to content

Commit

Permalink
Upgrade typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
mmgoodnow committed Dec 28, 2021
1 parent 90809e6 commit 8ac4d37
Show file tree
Hide file tree
Showing 8 changed files with 135 additions and 53 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Expand Up @@ -12,8 +12,8 @@
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 12
},
"ecmaVersion": 2020
},
"rules": {
"no-mixed-spaces-and-tabs": "off"
}
Expand Down
170 changes: 125 additions & 45 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -14,6 +14,7 @@
"files": [
"dist/"
],
"type": "module",
"repository": {
"type": "git",
"url": "git://github.com/mmgoodnow/cross-seed.git"
Expand Down Expand Up @@ -45,7 +46,7 @@
"lint-staged": "^12.1.4",
"np": "*",
"prettier": "^2.0.5",
"typescript": "^4.2.3"
"typescript": "^4.6.0-dev.20211227"
},
"prettier": {
"tabWidth": 4,
Expand Down
1 change: 1 addition & 0 deletions src/cmd.ts
@@ -1,6 +1,7 @@
#!/usr/bin/env node
import chalk from "chalk";
import { Option, program } from "commander";
// @ts-expect-error json imports are experimental
import packageDotJson from "../package.json";
import { generateConfig, getFileConfig } from "./configuration";
import { Action } from "./constants";
Expand Down
5 changes: 2 additions & 3 deletions src/config.template.docker.js
@@ -1,9 +1,8 @@
// All of the configuration can be overridden with command-line flags,
// and some are more useful as flags than permanent config (offset).
// All of the configuration can be overridden with command-line flags.
// If you find yourself always using the same command-line flag, you can set
// it here as a default.

module.exports = {
export default {
jackettServerUrl: "http://jackett:9117/jackett",
jackettApiKey: "YOUR_JACKETT_API_KEY_HERE",

Expand Down
2 changes: 1 addition & 1 deletion src/config.template.js
@@ -1,7 +1,7 @@
// If you find yourself always using the same command-line flag, you can set
// it here as a default.

module.exports = {
export default {
configVersion: 1,

jackettServerUrl: "http://localhost:9117/jackett",
Expand Down
1 change: 1 addition & 0 deletions src/configuration.ts
@@ -1,6 +1,7 @@
import chalk from "chalk";
import fs from "fs";
import path from "path";
// @ts-ignore
import packageDotJson from "../package.json";
import configTemplate from "./config.template";
import { Action, CONFIG_TEMPLATE_URL } from "./constants";
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -3,7 +3,7 @@
"outDir": "./dist",
"allowJs": true,
"target": "es2019",
"module": "CommonJS",
"module": "node12",
"esModuleInterop": true,
"resolveJsonModule": true,
"sourceMap": true
Expand Down

0 comments on commit 8ac4d37

Please sign in to comment.