Skip to content

Commit

Permalink
Upgrade to node16 module resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
grant0417 committed Jan 14, 2025
1 parent e88e1dd commit 04b4a43
Show file tree
Hide file tree
Showing 79 changed files with 93 additions and 124 deletions.
4 changes: 1 addition & 3 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module.exports = {
extends: [
"@fig/autocomplete"
],
extends: ["@fig/autocomplete"],
};
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
2 changes: 1 addition & 1 deletion dangerfile-greeting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ schedule(async () => {
});

const hasGreetingComment = comments.some((comment) =>
comment.body.includes("id: greetingComment")
comment.body?.includes("id: greetingComment")
);

if (!hasGreetingComment) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
Expand Down
19 changes: 2 additions & 17 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/@magnolia/cli.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from "../mgnl";
export { default } from "../mgnl.js";
2 changes: 0 additions & 2 deletions src/argo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import fig from "./fig";

const sharedArgs = {
UID: {
name: "UID",
Expand Down
2 changes: 1 addition & 1 deletion src/aws/cloudformation.ts
Original file line number Diff line number Diff line change
@@ -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"];
Expand Down
2 changes: 1 addition & 1 deletion src/aws/lambda.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import awsRegions from "./regions";
import awsRegions from "./regions.js";
const awsPrincipals = [
"a4b.amazonaws.com",
"acm-pca.amazonaws.com",
Expand Down
2 changes: 1 addition & 1 deletion src/aws/s3.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// TODO: suggest available s3 endpoints
import awsRegions from "./regions";
import awsRegions from "./regions.js";

const storageClasses = [
"STANDARD",
Expand Down
2 changes: 1 addition & 1 deletion src/aws/secretsmanager.ts
Original file line number Diff line number Diff line change
@@ -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"];
Expand Down
2 changes: 1 addition & 1 deletion src/blitz.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import prismaSpec from "./prisma";
import prismaSpec from "./prisma.js";

const prismaCommands = (prismaSpec as Fig.Subcommand).subcommands;

Expand Down
2 changes: 1 addition & 1 deletion src/br.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from "./broot";
export { default } from "./broot.js";
2 changes: 1 addition & 1 deletion src/build-storybook.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { storybookCommonOptions } from "./start-storybook";
import { storybookCommonOptions } from "./start-storybook.js";

const completionSpec: Fig.Spec = {
name: "build-storybook",
Expand Down
6 changes: 3 additions & 3 deletions src/bun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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+PHRpdGxlPkJ1biBMb2dvPC90aXRsZT48cGF0aCBpZD0iU2hhZG93IiBkPSJNNzEuMDksMjAuNzRjLS4xNi0uMTctLjMzLS4zNC0uNS0uNXMtLjMzLS4zNC0uNS0uNS0uMzMtLjM0LS41LS41LS4zMy0uMzQtLjUtLjUtLjMzLS4zNC0uNS0uNS0uMzMtLjM0LS41LS41LS4zMy0uMzQtLjUtLjVBMjYuNDYsMjYuNDYsMCwwLDEsNzUuNSwzNS43YzAsMTYuNTctMTYuODIsMzAuMDUtMzcuNSwzMC4wNS0xMS41OCwwLTIxLjk0LTQuMjMtMjguODMtMTAuODZsLjUuNS41LjUuNS41LjUuNS41LjUuNS41LjUuNUMxOS41NSw2NS4zLDMwLjE0LDY5Ljc1LDQyLDY5Ljc1YzIwLjY4LDAsMzcuNS0xMy40OCwzNy41LTMwQzc5LjUsMzIuNjksNzYuNDYsMjYsNzEuMDksMjAuNzRaIi8+PGcgaWQ9IkJvZHkiPjxwYXRoIGlkPSJCYWNrZ3JvdW5kIiBkPSJNNzMsMzUuN2MwLDE1LjIxLTE1LjY3LDI3Lj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Sw1LjUxLDAsMSwwLDQ1LDMzLjI5LDUuNSw1LjUsMCwwLDAsNTAuNDcsMzguOFoiIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZCIvPjxwYXRoIGlkPSJJcmlzIiBkPSJNMjQsMzMuNjRhMi4wNywyLjA3LDAsMSwwLTIuMDYtMi4wN0EyLjA3LDIuMDcsMCwwLDAsMjQsMzMuNjRabTI0Ljc3LDBhMi4wNywyLjA3LDAsMSwwLTIuMDYtMi4wN0EyLjA3LDIuMDcsMCwwLDAsNDguNzUsMzMuNjRaIiBzdHlsZT0iZmlsbDojZmZmO2ZpbGwtcnVsZTpldmVub2RkIi8+PC9nPjwvc3ZnPg==";
Expand Down
2 changes: 1 addition & 1 deletion src/bunx.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { npxSuggestions } from "./npx";
import { npxSuggestions } from "./npx.js";

const bunx: Fig.Spec = {
name: "bunx",
Expand Down
2 changes: 1 addition & 1 deletion src/c++.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clangpp from "./clang++";
import clangpp from "./clang++.js";
const completionSpec: Fig.Spec = {
...clangpp,
name: "c++",
Expand Down
2 changes: 1 addition & 1 deletion src/cal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { monthSuggestions } from "./ncal";
import { monthSuggestions } from "./ncal.js";

const completionSpec: Fig.Spec = {
name: "cal",
Expand Down
2 changes: 1 addition & 1 deletion src/cap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import capacitor from "./capacitor";
import capacitor from "./capacitor.js";

const completionSpec: Fig.Spec = {
...capacitor,
Expand Down
2 changes: 1 addition & 1 deletion src/cl.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import completionSpec from "./commercelayer";
import completionSpec from "./commercelayer.js";
export default completionSpec;
2 changes: 1 addition & 1 deletion src/clang++.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
stdCPPSuggestions,
stdOpenCLCPPSuggestions,
stdHLSLSuggestions,
} from "./clang";
} from "./clang.js";

const completionSpec: Fig.Spec = {
...clangBase,
Expand Down
2 changes: 1 addition & 1 deletion src/clion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { generateInteliJCompletionSpec } from "./idea";
import { generateInteliJCompletionSpec } from "./idea.js";

const completionSpec = generateInteliJCompletionSpec("clion", "CLion");
export default completionSpec;
2 changes: 1 addition & 1 deletion src/code-insiders.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import code from "./code";
import code from "./code.js";

const completionSpec: Fig.Spec = {
...code,
Expand Down
2 changes: 1 addition & 1 deletion src/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
generateTasks,
generateVersions,
generateUrlScript,
} from "./deno/generators";
} from "./deno/generators.js";

const completion: Fig.Spec = {
name: "deno",
Expand Down
4 changes: 2 additions & 2 deletions src/deno/generators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/fig/1.0.0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
sshHostsGenerator,
sshIdentityGenerator,
userGenerator,
} from "./shared";
} from "./shared.js";

const completion: Fig.Subcommand = {
name: "fig",
Expand Down
2 changes: 1 addition & 1 deletion src/fig/2.0.0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
themesGenerator,
tokensGenerators,
userGenerator,
} from "./shared";
} from "./shared.js";

const completion: Fig.Subcommand = {
name: "fig",
Expand Down
2 changes: 1 addition & 1 deletion src/fly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/g++.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/gcc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stdCSuggestions, stdCPPSuggestions } from "./clang";
import { stdCSuggestions, stdCPPSuggestions } from "./clang.js";

export const stdOption: Fig.Option = {
name: "-std",
Expand Down
2 changes: 1 addition & 1 deletion src/goland.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { generateInteliJCompletionSpec } from "./idea";
import { generateInteliJCompletionSpec } from "./idea.js";

const completionSpec = generateInteliJCompletionSpec("goland", "GoLand");
export default completionSpec;
2 changes: 1 addition & 1 deletion src/heroku/8.0.0.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getAppGenerator } from "./shared";
import { getAppGenerator } from "./shared.js";

const completionSpec: Fig.Spec = {
name: "heroku",
Expand Down
2 changes: 1 addition & 1 deletion src/heroku/8.6.0.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getAppGenerator } from "./shared";
import { getAppGenerator } from "./shared.js";

const completionSpec: Fig.Spec = {
name: "heroku",
Expand Down
2 changes: 1 addition & 1 deletion src/https.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import completionSpec from "./http";
import completionSpec from "./http.js";
export default {
...completionSpec,
name: "https",
Expand Down
2 changes: 1 addition & 1 deletion src/hub.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from "./git";
export { default } from "./git.js";
2 changes: 1 addition & 1 deletion src/iex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import elixir from "./elixir";
import elixir from "./elixir.js";

const completionSpec: Fig.Spec = {
...elixir,
Expand Down
2 changes: 1 addition & 1 deletion src/j.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import autojump from "./autojump";
import autojump from "./autojump.js";

const completionSpec: Fig.Spec = {
name: "j",
Expand Down
2 changes: 1 addition & 1 deletion src/kubecolor.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Kubecolor (https://github.com/dty1er/kubecolor) takes identical arguments to kubectl.
export { default } from "./kubectl";
export { default } from "./kubectl.js";
2 changes: 1 addition & 1 deletion src/mgnl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createNpmSearchHandler, npmSearchGenerator } from "./npm";
import { createNpmSearchHandler, npmSearchGenerator } from "./npm.js";

const pathOption = (description: string): Fig.Option => ({
name: ["-p", "--path"],
Expand Down
2 changes: 1 addition & 1 deletion src/mosh.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { knownHosts, configHosts } from "./ssh";
import { knownHosts, configHosts } from "./ssh.js";

const completionSpec: Fig.Spec = {
name: "mosh",
Expand Down
2 changes: 1 addition & 1 deletion src/n.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import node from "./node";
import node from "./node.js";

const versionArg: Fig.Arg = {
name: "version",
Expand Down
2 changes: 1 addition & 1 deletion src/nativescript.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from "./ns";
export { default } from "./ns.js";
2 changes: 1 addition & 1 deletion src/ni.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { npmSearchGenerator } from "./npm";
import { npmSearchGenerator } from "./npm.js";

const completionSpec: Fig.Spec = {
name: "ni",
Expand Down
2 changes: 1 addition & 1 deletion src/npx.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import autocannon from "./autocannon";
import autocannon from "./autocannon.js";

export const npxSuggestions: Fig.Suggestion[] = [
{
Expand Down
2 changes: 1 addition & 1 deletion src/nr.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { npmScriptsGenerator } from "./npm";
import { npmScriptsGenerator } from "./npm.js";

const completionSpec: Fig.Spec = {
name: "nr",
Expand Down
2 changes: 1 addition & 1 deletion src/nrm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dependenciesGenerator } from "./npm";
import { dependenciesGenerator } from "./npm.js";

const completionSpec: Fig.Spec = {
name: "nrm",
Expand Down
2 changes: 1 addition & 1 deletion src/phpstorm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { generateInteliJCompletionSpec } from "./idea";
import { generateInteliJCompletionSpec } from "./idea.js";

const completionSpec = generateInteliJCompletionSpec("phpstorm", "PhpStorm");
export default completionSpec;
2 changes: 1 addition & 1 deletion src/pip3.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pipCompletionSpec from "./pip";
import pipCompletionSpec from "./pip.js";

const completionSpec: Fig.Spec = {
...pipCompletionSpec,
Expand Down
2 changes: 1 addition & 1 deletion src/pipenv.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/pnpm.ts
Original file line number Diff line number Diff line change
@@ -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:")
Expand Down
2 changes: 1 addition & 1 deletion src/pre-commit.ts
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
Loading

0 comments on commit 04b4a43

Please sign in to comment.