diff --git a/.eslintrc.cjs b/.eslintrc.cjs index feda5ee3ef1d..d78ef42005d9 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,5 +1,3 @@ module.exports = { - extends: [ - "@fig/autocomplete" - ], + extends: ["@fig/autocomplete"], }; diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af219892fd..a926c364e691 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,2 @@ #!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx lint-staged diff --git a/dangerfile-greeting.ts b/dangerfile-greeting.ts index e961aa913130..bb11656824e8 100644 --- a/dangerfile-greeting.ts +++ b/dangerfile-greeting.ts @@ -10,7 +10,7 @@ schedule(async () => { }); const hasGreetingComment = comments.some((comment) => - comment.body.includes("id: greetingComment") + comment.body?.includes("id: greetingComment") ); if (!hasGreetingComment) { diff --git a/package.json b/package.json index eb065e91f9b8..a4ff78037823 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,8 @@ "dev": "npx @withfig/autocomplete-tools dev", "create-spec": "npx @withfig/autocomplete-tools create-spec", "build": "npx @withfig/autocomplete-tools compile", - "lint": "eslint '**/*.ts' && npx prettier --check '**/*.ts' --parser typescript", - "lint:fix": "eslint '**/*.ts' --fix && npx prettier --write '**/*.ts' --parser typescript", + "lint": "eslint 'src/**/*.ts' && npx prettier --check 'src/**/*.ts' --parser typescript", + "lint:fix": "eslint 'src/**/*.ts' --fix && npx prettier --write 'src/**/*.ts' --parser typescript", "test": "tsc --noEmit && echo 'All specs passed validation. You are ready to push!'", "prepare": "husky install" }, @@ -92,7 +92,7 @@ }, "dependencies": { "@fig/autocomplete-generators": "^2.4.0", - "@fig/autocomplete-helpers": "^1.0.7", + "@fig/autocomplete-helpers": "2.0.0", "semver": "^7.6.3", "strip-json-comments": "^5.0.1", "yaml": "^2.7.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0eddbdaa6361..95f8f2aec398 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^2.4.0 version: 2.4.0 '@fig/autocomplete-helpers': - specifier: ^1.0.7 - version: 1.0.7 + specifier: 2.0.0 + version: 2.0.0 semver: specifier: ^7.6.3 version: 7.6.3 @@ -383,9 +383,6 @@ packages: '@fig/autocomplete-generators@2.4.0': resolution: {integrity: sha512-fiaaCGmsgnbUJbVbNAcVDmrnCGj/SmfarK6WKt/lfQP9k1hLHkkmZQ836VSMJvPP1vAKFAiXpdJziG6EGyjAYg==} - '@fig/autocomplete-helpers@1.0.7': - resolution: {integrity: sha512-5jq01q2JtaLAjl8t3hOvE9GOp4a4Agj7YmxlBxRjuSwJY3qskfx/mdAgOX2qjgxZ74bHONAxQ1hzudwSICqZFg==} - '@fig/autocomplete-helpers@2.0.0': resolution: {integrity: sha512-lzD9LbpvJC3hXwxvLAb91/AwO83lfIhW4dEITAn1wINKHaHOmP39wU82Q25bKp8A6/UMcF6Iobik/R4sUZmgNA==} @@ -1699,11 +1696,6 @@ packages: resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} engines: {node: '>=10'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} - hasBin: true - typescript@5.5.4: resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} engines: {node: '>=14.17'} @@ -1947,11 +1939,6 @@ snapshots: '@fig/autocomplete-generators@2.4.0': {} - '@fig/autocomplete-helpers@1.0.7': - dependencies: - semver: 7.6.3 - typescript: 4.9.5 - '@fig/autocomplete-helpers@2.0.0': dependencies: semver: 7.6.3 @@ -3360,8 +3347,6 @@ snapshots: type-fest@0.20.2: {} - typescript@4.9.5: {} - typescript@5.5.4: {} undici-types@5.26.5: {} diff --git a/src/@magnolia/cli.ts b/src/@magnolia/cli.ts index faf14a1ec0a2..07cdbebd3e3f 100644 --- a/src/@magnolia/cli.ts +++ b/src/@magnolia/cli.ts @@ -1 +1 @@ -export { default } from "../mgnl"; +export { default } from "../mgnl.js"; diff --git a/src/argo.ts b/src/argo.ts index 86fbc0b1614e..2d16f9196581 100644 --- a/src/argo.ts +++ b/src/argo.ts @@ -1,5 +1,3 @@ -import fig from "./fig"; - const sharedArgs = { UID: { name: "UID", diff --git a/src/aws/cloudformation.ts b/src/aws/cloudformation.ts index 233893cd4866..a0421444ace9 100644 --- a/src/aws/cloudformation.ts +++ b/src/aws/cloudformation.ts @@ -1,4 +1,4 @@ -import awsRegions from "./regions"; +import awsRegions from "./regions.js"; const callAs = ["SELF", "DELEGATED_ADMIN"]; const typeSuggestion = ["RESOURCE", "MODULE"]; const permissionModel = ["SERVICE_MANAGED", "SELF_MANAGED"]; diff --git a/src/aws/lambda.ts b/src/aws/lambda.ts index b38eae5c5285..672591731858 100644 --- a/src/aws/lambda.ts +++ b/src/aws/lambda.ts @@ -1,4 +1,4 @@ -import awsRegions from "./regions"; +import awsRegions from "./regions.js"; const awsPrincipals = [ "a4b.amazonaws.com", "acm-pca.amazonaws.com", diff --git a/src/aws/s3.ts b/src/aws/s3.ts index 8dd34813acdf..df2fd9c7188a 100644 --- a/src/aws/s3.ts +++ b/src/aws/s3.ts @@ -1,5 +1,5 @@ // TODO: suggest available s3 endpoints -import awsRegions from "./regions"; +import awsRegions from "./regions.js"; const storageClasses = [ "STANDARD", diff --git a/src/aws/secretsmanager.ts b/src/aws/secretsmanager.ts index 4a76b9d5e1bb..8366c2113adf 100644 --- a/src/aws/secretsmanager.ts +++ b/src/aws/secretsmanager.ts @@ -1,4 +1,4 @@ -import awsRegions from "./regions"; +import awsRegions from "./regions.js"; const ttl = 30000; const appendFolderPath = (tokens: string[], prefix: string): string[] => { const baseLsCommand = ["ls", "-1ApL"]; diff --git a/src/blitz.ts b/src/blitz.ts index 5377460f9502..427c585de038 100644 --- a/src/blitz.ts +++ b/src/blitz.ts @@ -1,4 +1,4 @@ -import prismaSpec from "./prisma"; +import prismaSpec from "./prisma.js"; const prismaCommands = (prismaSpec as Fig.Subcommand).subcommands; diff --git a/src/br.ts b/src/br.ts index 11e7f6a62ec0..2db3becaa4bc 100644 --- a/src/br.ts +++ b/src/br.ts @@ -1 +1 @@ -export { default } from "./broot"; +export { default } from "./broot.js"; diff --git a/src/build-storybook.ts b/src/build-storybook.ts index bd20502223ee..e79ecfc4dc70 100644 --- a/src/build-storybook.ts +++ b/src/build-storybook.ts @@ -1,4 +1,4 @@ -import { storybookCommonOptions } from "./start-storybook"; +import { storybookCommonOptions } from "./start-storybook.js"; const completionSpec: Fig.Spec = { name: "build-storybook", diff --git a/src/bun.ts b/src/bun.ts index dfbe1cba77ae..d20823ba250c 100644 --- a/src/bun.ts +++ b/src/bun.ts @@ -7,9 +7,9 @@ import { npmScriptsGenerator, npmSearchGenerator, dependenciesGenerator, -} from "./npm"; -import { npxSuggestions } from "./npx"; -import { createCLIsGenerator } from "./yarn"; +} from "./npm.js"; +import { npxSuggestions } from "./npx.js"; +import { createCLIsGenerator } from "./yarn.js"; const icon = "data:image/svg+xml;base64,PHN2ZyBpZD0iQnVuIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4MCA3MCI+PHRpdGxlPkJ1biBMb2dvPC90aXRsZT48cGF0aCBpZD0iU2hhZG93IiBkPSJNNzEuMDksMjAuNzRjLS4xNi0uMTctLjMzLS4zNC0uNS0uNXMtLjMzLS4zNC0uNS0uNS0uMzMtLjM0LS41LS41LS4zMy0uMzQtLjUtLjUtLjMzLS4zNC0uNS0uNS0uMzMtLjM0LS41LS41LS4zMy0uMzQtLjUtLjVBMjYuN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GN4PSI1My4yMiIgY3k9IjQwLjE4IiByeD0iNS44NSIgcnk9IjMuNDQiIHN0eWxlPSJmaWxsOiNmZWJiZDAiLz48ZWxsaXBzZSBpZD0iTGVmdF9CbHVjaCIgZGF0YS1uYW1lPSJMZWZ0IEJsdWNoIiBjeD0iMjIuOTUiIGN5PSI0MC4xOCIgcng9IjUuODUiIHJ5PSIzLjQ0IiBzdHlsZT0iZmlsbDojZmViYmQwIi8+PHBhdGggaWQ9IkV5ZXMiIGQ9Ik0yNS43LDM4LjhhNS41MSw1LjUxLDAsMSwwLTUuNS01LjUxQTUuNTEsNS41MSwwLDAsMCwyNS43LDM4LjhabTI0Ljc3LDBBNS41MSw1LjUxLDAsMSwwLDQ1LDMzLjI5LDUuNSw1LjUsMCwwLDAsNTAuNDcsMzguOFoiIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZCIvPjxwYXRoIGlkPSJJcmlzIiBkPSJNMjQsMzMuNjRhMi4wNywyLjA3LDAsMSwwLTIuMDYtMi4wN0EyLjA3LDIuMDcsMCwwLDAsMjQsMzMuNjRabTI0Ljc3LDBhMi4wNywyLjA3LDAsMSwwLTIuMDYtMi4wN0EyLjA3LDIuMDcsMCwwLDAsNDguNzUsMzMuNjRaIiBzdHlsZT0iZmlsbDojZmZmO2ZpbGwtcnVsZTpldmVub2RkIi8+PC9nPjwvc3ZnPg=="; diff --git a/src/bunx.ts b/src/bunx.ts index f3ed883d3489..9c586b5a25d3 100644 --- a/src/bunx.ts +++ b/src/bunx.ts @@ -1,4 +1,4 @@ -import { npxSuggestions } from "./npx"; +import { npxSuggestions } from "./npx.js"; const bunx: Fig.Spec = { name: "bunx", diff --git a/src/c++.ts b/src/c++.ts index 74f52a1ea768..5400fc46e2b7 100644 --- a/src/c++.ts +++ b/src/c++.ts @@ -1,4 +1,4 @@ -import clangpp from "./clang++"; +import clangpp from "./clang++.js"; const completionSpec: Fig.Spec = { ...clangpp, name: "c++", diff --git a/src/cal.ts b/src/cal.ts index da084a735a0d..87fc491ac5f7 100644 --- a/src/cal.ts +++ b/src/cal.ts @@ -1,4 +1,4 @@ -import { monthSuggestions } from "./ncal"; +import { monthSuggestions } from "./ncal.js"; const completionSpec: Fig.Spec = { name: "cal", diff --git a/src/cap.ts b/src/cap.ts index 7f9c603fefed..1d790457ccae 100644 --- a/src/cap.ts +++ b/src/cap.ts @@ -1,4 +1,4 @@ -import capacitor from "./capacitor"; +import capacitor from "./capacitor.js"; const completionSpec: Fig.Spec = { ...capacitor, diff --git a/src/cl.ts b/src/cl.ts index dfa4a222c49c..0a53ca46c386 100644 --- a/src/cl.ts +++ b/src/cl.ts @@ -1,2 +1,2 @@ -import completionSpec from "./commercelayer"; +import completionSpec from "./commercelayer.js"; export default completionSpec; diff --git a/src/clang++.ts b/src/clang++.ts index 2499de805e8e..cf58f69d7af7 100644 --- a/src/clang++.ts +++ b/src/clang++.ts @@ -3,7 +3,7 @@ import { stdCPPSuggestions, stdOpenCLCPPSuggestions, stdHLSLSuggestions, -} from "./clang"; +} from "./clang.js"; const completionSpec: Fig.Spec = { ...clangBase, diff --git a/src/clion.ts b/src/clion.ts index 928cce7fe457..f15f70f42ab8 100644 --- a/src/clion.ts +++ b/src/clion.ts @@ -1,4 +1,4 @@ -import { generateInteliJCompletionSpec } from "./idea"; +import { generateInteliJCompletionSpec } from "./idea.js"; const completionSpec = generateInteliJCompletionSpec("clion", "CLion"); export default completionSpec; diff --git a/src/code-insiders.ts b/src/code-insiders.ts index 884168fb8e48..410354d7f36e 100644 --- a/src/code-insiders.ts +++ b/src/code-insiders.ts @@ -1,4 +1,4 @@ -import code from "./code"; +import code from "./code.js"; const completionSpec: Fig.Spec = { ...code, diff --git a/src/deno.ts b/src/deno.ts index 5db8fd55d6f7..d679750731e9 100644 --- a/src/deno.ts +++ b/src/deno.ts @@ -5,7 +5,7 @@ import { generateTasks, generateVersions, generateUrlScript, -} from "./deno/generators"; +} from "./deno/generators.js"; const completion: Fig.Spec = { name: "deno", diff --git a/src/deno/generators.ts b/src/deno/generators.ts index 6df0c2450fad..4ece7eeb7cfd 100644 --- a/src/deno/generators.ts +++ b/src/deno/generators.ts @@ -3,14 +3,14 @@ import { filepaths, valueList } from "@fig/autocomplete-generators"; import stripJsonComments from "strip-json-comments"; -import type { DenoConfigurationFileSchema } from "./config_schema"; +import type { DenoConfigurationFileSchema } from "./config_schema.js"; import type { ClassMethodDef, ClassPropertyDef, DocNode, InterfaceMethodDef, InterfacePropertyDef, -} from "./deno_doc"; +} from "./deno_doc.js"; // --- Generate documentation symbols diff --git a/src/fig/1.0.0.ts b/src/fig/1.0.0.ts index 923883795cda..0428a92bb6f9 100644 --- a/src/fig/1.0.0.ts +++ b/src/fig/1.0.0.ts @@ -11,7 +11,7 @@ import { sshHostsGenerator, sshIdentityGenerator, userGenerator, -} from "./shared"; +} from "./shared.js"; const completion: Fig.Subcommand = { name: "fig", diff --git a/src/fig/2.0.0.ts b/src/fig/2.0.0.ts index 67f4e858e4e3..8333dc24913a 100644 --- a/src/fig/2.0.0.ts +++ b/src/fig/2.0.0.ts @@ -13,7 +13,7 @@ import { themesGenerator, tokensGenerators, userGenerator, -} from "./shared"; +} from "./shared.js"; const completion: Fig.Subcommand = { name: "fig", diff --git a/src/fly.ts b/src/fly.ts index ffd947685259..ae1a873d079e 100644 --- a/src/fly.ts +++ b/src/fly.ts @@ -6,7 +6,7 @@ // transition, note that where you see flyctl as a command it can be replaced // with fly. -import completionSpec from "./flyctl"; +import completionSpec from "./flyctl.js"; export default { ...completionSpec, diff --git a/src/g++.ts b/src/g++.ts index f016c4c0101b..425c6455de71 100644 --- a/src/g++.ts +++ b/src/g++.ts @@ -1,5 +1,5 @@ -import { gccBase } from "./gcc"; -import { stdCPPSuggestions } from "./clang"; +import { gccBase } from "./gcc.js"; +import { stdCPPSuggestions } from "./clang.js"; const completionSpec: Fig.Spec = { ...gccBase, diff --git a/src/gcc.ts b/src/gcc.ts index ca0f4a4a14b4..4eea21d5be28 100644 --- a/src/gcc.ts +++ b/src/gcc.ts @@ -1,4 +1,4 @@ -import { stdCSuggestions, stdCPPSuggestions } from "./clang"; +import { stdCSuggestions, stdCPPSuggestions } from "./clang.js"; export const stdOption: Fig.Option = { name: "-std", diff --git a/src/goland.ts b/src/goland.ts index da8c0e2e1d9f..0763fb91c678 100644 --- a/src/goland.ts +++ b/src/goland.ts @@ -1,4 +1,4 @@ -import { generateInteliJCompletionSpec } from "./idea"; +import { generateInteliJCompletionSpec } from "./idea.js"; const completionSpec = generateInteliJCompletionSpec("goland", "GoLand"); export default completionSpec; diff --git a/src/heroku/8.0.0.ts b/src/heroku/8.0.0.ts index 9632ba525357..96ab062ac042 100644 --- a/src/heroku/8.0.0.ts +++ b/src/heroku/8.0.0.ts @@ -1,4 +1,4 @@ -import { getAppGenerator } from "./shared"; +import { getAppGenerator } from "./shared.js"; const completionSpec: Fig.Spec = { name: "heroku", diff --git a/src/heroku/8.6.0.ts b/src/heroku/8.6.0.ts index 90d8ec24db2d..a5c71e3a5b86 100644 --- a/src/heroku/8.6.0.ts +++ b/src/heroku/8.6.0.ts @@ -1,4 +1,4 @@ -import { getAppGenerator } from "./shared"; +import { getAppGenerator } from "./shared.js"; const completionSpec: Fig.Spec = { name: "heroku", diff --git a/src/https.ts b/src/https.ts index e94a49c26c07..b0de6f9db505 100644 --- a/src/https.ts +++ b/src/https.ts @@ -1,4 +1,4 @@ -import completionSpec from "./http"; +import completionSpec from "./http.js"; export default { ...completionSpec, name: "https", diff --git a/src/hub.ts b/src/hub.ts index ba606751d73a..decc073932cc 100644 --- a/src/hub.ts +++ b/src/hub.ts @@ -1 +1 @@ -export { default } from "./git"; +export { default } from "./git.js"; diff --git a/src/iex.ts b/src/iex.ts index f985c52b9771..652ff795ee97 100644 --- a/src/iex.ts +++ b/src/iex.ts @@ -1,4 +1,4 @@ -import elixir from "./elixir"; +import elixir from "./elixir.js"; const completionSpec: Fig.Spec = { ...elixir, diff --git a/src/j.ts b/src/j.ts index e2726ca08381..0108adb9d171 100644 --- a/src/j.ts +++ b/src/j.ts @@ -1,4 +1,4 @@ -import autojump from "./autojump"; +import autojump from "./autojump.js"; const completionSpec: Fig.Spec = { name: "j", diff --git a/src/kubecolor.ts b/src/kubecolor.ts index da22093aa49c..96840ec75fce 100644 --- a/src/kubecolor.ts +++ b/src/kubecolor.ts @@ -1,2 +1,2 @@ // Kubecolor (https://github.com/dty1er/kubecolor) takes identical arguments to kubectl. -export { default } from "./kubectl"; +export { default } from "./kubectl.js"; diff --git a/src/mgnl.ts b/src/mgnl.ts index 81018e881e60..84f62b7b6b28 100644 --- a/src/mgnl.ts +++ b/src/mgnl.ts @@ -1,4 +1,4 @@ -import { createNpmSearchHandler, npmSearchGenerator } from "./npm"; +import { createNpmSearchHandler, npmSearchGenerator } from "./npm.js"; const pathOption = (description: string): Fig.Option => ({ name: ["-p", "--path"], diff --git a/src/mosh.ts b/src/mosh.ts index 28f1da1e9d56..d845c0e8f7cb 100644 --- a/src/mosh.ts +++ b/src/mosh.ts @@ -1,4 +1,4 @@ -import { knownHosts, configHosts } from "./ssh"; +import { knownHosts, configHosts } from "./ssh.js"; const completionSpec: Fig.Spec = { name: "mosh", diff --git a/src/n.ts b/src/n.ts index 1d58f0d7fd84..33eff28fac8e 100644 --- a/src/n.ts +++ b/src/n.ts @@ -1,4 +1,4 @@ -import node from "./node"; +import node from "./node.js"; const versionArg: Fig.Arg = { name: "version", diff --git a/src/nativescript.ts b/src/nativescript.ts index 1b91f42ad2d3..a0b02a9d7581 100644 --- a/src/nativescript.ts +++ b/src/nativescript.ts @@ -1 +1 @@ -export { default } from "./ns"; +export { default } from "./ns.js"; diff --git a/src/ni.ts b/src/ni.ts index fe8874d18047..5005909ab6d4 100644 --- a/src/ni.ts +++ b/src/ni.ts @@ -1,4 +1,4 @@ -import { npmSearchGenerator } from "./npm"; +import { npmSearchGenerator } from "./npm.js"; const completionSpec: Fig.Spec = { name: "ni", diff --git a/src/npx.ts b/src/npx.ts index d50a6d49efae..ab816b0c4735 100644 --- a/src/npx.ts +++ b/src/npx.ts @@ -1,4 +1,4 @@ -import autocannon from "./autocannon"; +import autocannon from "./autocannon.js"; export const npxSuggestions: Fig.Suggestion[] = [ { diff --git a/src/nr.ts b/src/nr.ts index dd13cb89cc90..6dadb368de75 100644 --- a/src/nr.ts +++ b/src/nr.ts @@ -1,4 +1,4 @@ -import { npmScriptsGenerator } from "./npm"; +import { npmScriptsGenerator } from "./npm.js"; const completionSpec: Fig.Spec = { name: "nr", diff --git a/src/nrm.ts b/src/nrm.ts index bba4ad93cf1f..4a3f4f3259b2 100644 --- a/src/nrm.ts +++ b/src/nrm.ts @@ -1,4 +1,4 @@ -import { dependenciesGenerator } from "./npm"; +import { dependenciesGenerator } from "./npm.js"; const completionSpec: Fig.Spec = { name: "nrm", diff --git a/src/phpstorm.ts b/src/phpstorm.ts index ab234e2cfe6c..da24412b809d 100644 --- a/src/phpstorm.ts +++ b/src/phpstorm.ts @@ -1,4 +1,4 @@ -import { generateInteliJCompletionSpec } from "./idea"; +import { generateInteliJCompletionSpec } from "./idea.js"; const completionSpec = generateInteliJCompletionSpec("phpstorm", "PhpStorm"); export default completionSpec; diff --git a/src/pip3.ts b/src/pip3.ts index 61b5f2492540..079d1e928676 100644 --- a/src/pip3.ts +++ b/src/pip3.ts @@ -1,4 +1,4 @@ -import pipCompletionSpec from "./pip"; +import pipCompletionSpec from "./pip.js"; const completionSpec: Fig.Spec = { ...pipCompletionSpec, diff --git a/src/pipenv.ts b/src/pipenv.ts index 3039e9b1a4f1..8270f5183b14 100644 --- a/src/pipenv.ts +++ b/src/pipenv.ts @@ -1,6 +1,6 @@ // REFERENCE: https://pipenv.pypa.io/en/stable/cli/ import { filepaths } from "@fig/autocomplete-generators"; -import { packageList } from "./pip"; +import { packageList } from "./pip.js"; const completionSpec: Fig.Spec = { name: "pipenv", diff --git a/src/pnpm.ts b/src/pnpm.ts index 25632202510d..7ed5019286c0 100644 --- a/src/pnpm.ts +++ b/src/pnpm.ts @@ -1,7 +1,7 @@ // GENERATORS -import { npmScriptsGenerator, npmSearchGenerator } from "./npm"; -import { dependenciesGenerator, nodeClis } from "./yarn"; +import { npmScriptsGenerator, npmSearchGenerator } from "./npm.js"; +import { dependenciesGenerator, nodeClis } from "./yarn.js"; const filterMessages = (out: string): string => { return out.startsWith("warning:") || out.startsWith("error:") diff --git a/src/pre-commit.ts b/src/pre-commit.ts index 3d384122a139..8eb15507e0e1 100644 --- a/src/pre-commit.ts +++ b/src/pre-commit.ts @@ -1,5 +1,5 @@ import YAML from "yaml"; -import { gitGenerators } from "./git"; +import { gitGenerators } from "./git.js"; const hooksInConfig: Fig.Generator = { script: ["cat", ".pre-commit-config.yaml"], diff --git a/src/preset.ts b/src/preset.ts index ff92221427c7..114a242a15a5 100644 --- a/src/preset.ts +++ b/src/preset.ts @@ -1 +1 @@ -export { default } from "./@preset/cli"; +export { default } from "./@preset/cli.js"; diff --git a/src/pycharm.ts b/src/pycharm.ts index 2b39e1ed515d..86148429c18e 100644 --- a/src/pycharm.ts +++ b/src/pycharm.ts @@ -1,4 +1,4 @@ -import { generateInteliJCompletionSpec } from "./idea"; +import { generateInteliJCompletionSpec } from "./idea.js"; const completionSpec = generateInteliJCompletionSpec("pycharm", "PyCharm"); export default completionSpec; diff --git a/src/redwood.ts b/src/redwood.ts index 21c56ca78d91..9e2ae5f62798 100644 --- a/src/redwood.ts +++ b/src/redwood.ts @@ -1,4 +1,4 @@ -import prismaSpec from "./prisma"; +import prismaSpec from "./prisma.js"; const icon = "https://avatars.githubusercontent.com/u/45050444?s=200&v=4"; diff --git a/src/rsync.ts b/src/rsync.ts index 79600b873b8c..aa7d52330bbd 100644 --- a/src/rsync.ts +++ b/src/rsync.ts @@ -1,4 +1,4 @@ -import { knownHosts, configHosts } from "./ssh"; +import { knownHosts, configHosts } from "./ssh.js"; const infoArgs: Fig.SingleOrArray = [ { name: "BACKUP", description: "Mention files backed up" }, diff --git a/src/rubymine.ts b/src/rubymine.ts index 6dd98e451b8e..0868621ff68d 100644 --- a/src/rubymine.ts +++ b/src/rubymine.ts @@ -1,4 +1,4 @@ -import { generateInteliJCompletionSpec } from "./idea"; +import { generateInteliJCompletionSpec } from "./idea.js"; const completionSpec = generateInteliJCompletionSpec("rubymine", "RubyMine"); export default completionSpec; diff --git a/src/rush.ts b/src/rush.ts index dece2fcfd7bf..539fd6b6d79a 100644 --- a/src/rush.ts +++ b/src/rush.ts @@ -1,5 +1,5 @@ import stripJsonComments from "strip-json-comments"; -import { npmSearchGenerator } from "./npm"; +import { npmSearchGenerator } from "./npm.js"; interface IRushConfigurationProjectJson { packageName: string; diff --git a/src/rushx.ts b/src/rushx.ts index 905ed77797c0..54d07d6885c4 100644 --- a/src/rushx.ts +++ b/src/rushx.ts @@ -1,5 +1,5 @@ -import { npmScriptsGenerator } from "./npm"; -import { yarnScriptParserDirectives } from "./yarn"; +import { npmScriptsGenerator } from "./npm.js"; +import { yarnScriptParserDirectives } from "./yarn.js"; const completionSpec: Fig.Spec = { name: "rushx", diff --git a/src/rustrover.ts b/src/rustrover.ts index 8f2756368255..9da095b37cb5 100644 --- a/src/rustrover.ts +++ b/src/rustrover.ts @@ -1,4 +1,4 @@ -import { generateInteliJCompletionSpec } from "./idea"; +import { generateInteliJCompletionSpec } from "./idea.js"; const completionSpec = generateInteliJCompletionSpec("rustrover", "RustRover"); export default completionSpec; diff --git a/src/sam.ts b/src/sam.ts index 735c4cba309b..1b070af3cde9 100644 --- a/src/sam.ts +++ b/src/sam.ts @@ -1,4 +1,4 @@ -import { awsProfileGenerator } from "./aws"; +import { awsProfileGenerator } from "./aws.js"; const configEnvOption: Fig.Option = { name: "--config-env", diff --git a/src/scp.ts b/src/scp.ts index 93da019b6867..ac1c33040624 100644 --- a/src/scp.ts +++ b/src/scp.ts @@ -1,4 +1,4 @@ -import { knownHosts, configHosts } from "./ssh"; +import { knownHosts, configHosts } from "./ssh.js"; const completionSpec: Fig.Spec = { name: "scp", diff --git a/src/sftp.ts b/src/sftp.ts index a202ba156baf..f3b226e09f70 100644 --- a/src/sftp.ts +++ b/src/sftp.ts @@ -1,4 +1,4 @@ -import { knownHosts, configHosts } from "./ssh"; +import { knownHosts, configHosts } from "./ssh.js"; const completionSpec: Fig.Spec = { name: "sftp", diff --git a/src/sls.ts b/src/sls.ts index fe114e38f5c6..f87f3dbf67eb 100644 --- a/src/sls.ts +++ b/src/sls.ts @@ -1,4 +1,4 @@ -import serverless from "./serverless"; +import serverless from "./serverless.js"; const completionSpec: Fig.Spec = { ...serverless, name: "sls", diff --git a/src/st2.ts b/src/st2.ts index bda43b2861a3..06a43c339b51 100644 --- a/src/st2.ts +++ b/src/st2.ts @@ -1,4 +1,4 @@ -import { existingUsersandGroups } from "./chown"; +import { existingUsersandGroups } from "./chown.js"; const helpOption: Fig.Option = { name: ["-h", "--help"], diff --git a/src/sta.ts b/src/sta.ts index 6a451a4428f2..d041d5472a80 100644 --- a/src/sta.ts +++ b/src/sta.ts @@ -1 +1 @@ -export { default } from "./swagger-typescript-api"; +export { default } from "./swagger-typescript-api.js"; diff --git a/src/task.ts b/src/task.ts index 57aa910fc0c2..dddf8c2d2342 100644 --- a/src/task.ts +++ b/src/task.ts @@ -1,5 +1,5 @@ -import goTask from "./task/go-task"; -import taskWarrior from "./task/taskwarrior"; +import goTask from "./task/go-task.js"; +import taskWarrior from "./task/taskwarrior.js"; const completionSpec: Fig.Spec = { name: "task", diff --git a/src/tccutil.ts b/src/tccutil.ts index 318ed879a1dd..46a16c1dad42 100644 --- a/src/tccutil.ts +++ b/src/tccutil.ts @@ -1,4 +1,4 @@ -import { generateBundleIds } from "./open"; +import { generateBundleIds } from "./open.js"; const commands: Fig.Suggestion[] = [ { diff --git a/src/tns.ts b/src/tns.ts index 1b91f42ad2d3..a0b02a9d7581 100644 --- a/src/tns.ts +++ b/src/tns.ts @@ -1 +1 @@ -export { default } from "./ns"; +export { default } from "./ns.js"; diff --git a/src/ts-node.ts b/src/ts-node.ts index 62863c5c4325..9019fa90ac17 100644 --- a/src/ts-node.ts +++ b/src/ts-node.ts @@ -1,4 +1,4 @@ -import { dependenciesGenerator } from "./npm"; +import { dependenciesGenerator } from "./npm.js"; import { filepaths } from "@fig/autocomplete-generators"; const completionSpec: Fig.Spec = { diff --git a/src/tsh.ts b/src/tsh.ts index 7efc7e047527..adbff70f5131 100644 --- a/src/tsh.ts +++ b/src/tsh.ts @@ -1,4 +1,4 @@ -import sshSpec from "./ssh"; +import sshSpec from "./ssh.js"; const globalOptions: Fig.Option[] = [ { name: ["-l", "--login"], description: "Remote host login" }, diff --git a/src/turbo.ts b/src/turbo.ts index 9757208a451d..062dc20545a4 100644 --- a/src/turbo.ts +++ b/src/turbo.ts @@ -1,4 +1,4 @@ -import { gitGenerators } from "./git"; +import { gitGenerators } from "./git.js"; const turboIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAjlSURBVHgBdVd7cFTlFT/fvXffu8lCsoFASdKWx4xaCX1AlVJhLGMlyKNPSamN1SLEPvAPm2BhCLaFYOmobVF0psJggT+0DqIC/QMBsVXbmYKVqSgW8pDmHXaz79378He+u7vZG/ALd+/lnu+8fufxnSvoOutkx9lw0oi2jEXTt6UT2ca8aTToeYNM/FmgW/wjxu+CmeSzIEW+EuRSFVIUcS4Y8nX5Krwvr95++77r6RITXxzdfHLVUP/Y3o+7RsLDQ3GKp9KUyeukmwYZFuuxrhFilQlj5SpfiiCfW6OQ30eRmgqaNmNyV2R65bamXy/Z96kGvNx24vHLF/o3XrrYR8OxJCXyecqaOuXhuQF3zYI6aYTlcN0hTCEhL5dQyKeoFHB7KFIZpM/NnEJ1s2o6Vu9auu0aA1755YmtH5y/0nHxgz4aTCQoYeQpY+mUswzSWbk0wPbVEhNcLwoS9juJgrCR8AgVRmhWQHWLSNBPs2bV0py5055YsXPpQyW+Yx1vtFx698re8+/1UH88QT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vcnBt8b+EX/R8M0lkxT1rA/SozCB4n8K3wQ2bOfVYqBKHwXloeldMTL6lIkAhVBH02dWU1TvhDZtqBzUYfDAF7vtJ/uGP0wtnXofyMYLPibMC8HSKMwHdvRLfs6tCYIEGUfJtjM3RUJaHlcmghW+Kjm81UUmVP15Jc7F2505lDZOvvoWy3xj1NbYz2xhvhQgjLJHOmYlgyzpLhgSsmGwok5/iSzH4msuRAOn5tC1QEKN4SjwYjv3nm/ufXwBJuvv85ueaslO5ZdmU3pjWbeaDANy+n9dVZRmBxyNBw2mtLl9mvnPGHv6XClZ99nkW8TeT4B9zHkJ/LQsiMAAAAASUVORK5CYII="; diff --git a/src/ua.ts b/src/ua.ts index b9440a8af89a..75cf7ccb79f0 100644 --- a/src/ua.ts +++ b/src/ua.ts @@ -1,4 +1,4 @@ -import completionSpec from "./pro"; +import completionSpec from "./pro.js"; const Spec: Fig.Spec = { ...completionSpec, name: "ua", diff --git a/src/ubuntu-advantage.ts b/src/ubuntu-advantage.ts index fa2599bc33cc..29ceb44691f7 100644 --- a/src/ubuntu-advantage.ts +++ b/src/ubuntu-advantage.ts @@ -1,4 +1,4 @@ -import completionSpec from "./pro"; +import completionSpec from "./pro.js"; const Spec: Fig.Spec = { ...completionSpec, name: "ubuntu-advantage", diff --git a/src/unix2dos.ts b/src/unix2dos.ts index b1ea190c6fc8..86ae7941c5fb 100644 --- a/src/unix2dos.ts +++ b/src/unix2dos.ts @@ -1,4 +1,4 @@ -import dos2unix from "./dos2unix"; +import dos2unix from "./dos2unix.js"; const completionSpec: Fig.Spec = { ...dos2unix, diff --git a/src/vsce.ts b/src/vsce.ts index 3e69a96d0457..368ed0b50747 100644 --- a/src/vsce.ts +++ b/src/vsce.ts @@ -1,5 +1,5 @@ import { filepaths } from "@fig/autocomplete-generators"; -import { gitGenerators } from "./git"; +import { gitGenerators } from "./git.js"; const targetSuggestions: string[] = [ "win32-x64", diff --git a/src/webstorm.ts b/src/webstorm.ts index b630296a2ac9..66151f3e0fe2 100644 --- a/src/webstorm.ts +++ b/src/webstorm.ts @@ -1,4 +1,4 @@ -import { generateInteliJCompletionSpec } from "./idea"; +import { generateInteliJCompletionSpec } from "./idea.js"; const completionSpec = generateInteliJCompletionSpec("webstorm", "WebStorm"); export default completionSpec; diff --git a/src/yarn.ts b/src/yarn.ts index 034420f9b542..6c03bbd0415f 100644 --- a/src/yarn.ts +++ b/src/yarn.ts @@ -1,4 +1,4 @@ -import { npmScriptsGenerator, npmSearchGenerator } from "./npm"; +import { npmScriptsGenerator, npmSearchGenerator } from "./npm.js"; export const yarnScriptParserDirectives: Fig.Arg["parserDirectives"] = { alias: async (token, executeShellCommand) => { diff --git a/src/zig.ts b/src/zig.ts index c55515b73c7e..a23985fe0922 100644 --- a/src/zig.ts +++ b/src/zig.ts @@ -1,4 +1,4 @@ -import { clangBase } from "./clang"; +import { clangBase } from "./clang.js"; const colorOption: Fig.Option = { name: "--color", diff --git a/tsconfig.json b/tsconfig.json index 4c902ba52ec5..9a19dc8e521c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,25 +1,15 @@ { "compilerOptions": { - "moduleResolution": "node", "outDir": "./build", + "moduleResolution": "Node16", + "module": "Node16", "target": "ES2018", - "module": "ESNext", - "lib": [ - "ES2018", - "DOM" - ], + "lib": ["ES2018", "DOM"], "noImplicitAny": false, "allowSyntheticDefaultImports": true, "baseUrl": "./", - "types": [ - "@withfig/autocomplete-types" - ] + "types": ["@withfig/autocomplete-types"] }, - "exclude": [ - "node_modules/" - ], - "include": [ - "./src/**/*", - "dangerfile.ts" - ] -} \ No newline at end of file + "exclude": ["node_modules/"], + "include": ["./src/**/*", "dangerfile.ts"] +}