Skip to content

Commit

Permalink
chore(deps): run update
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeleet committed Jun 4, 2023
1 parent b4bf739 commit 96f1b45
Show file tree
Hide file tree
Showing 22 changed files with 665 additions and 297 deletions.
35 changes: 19 additions & 16 deletions deno.lock

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

34 changes: 34 additions & 0 deletions vendor/deno.land/x/dir@1.5.1/data_local_dir/mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/** Returns the path to the user's local data directory.
*
* The returned value depends on the operating system and is either a string,
* containing a value from the following table, or `null`.
*
* | Platform | Value | Example |
* | -------- | ---------------------------------------- | -------------------------------------------- |
* | Linux | `$XDG_DATA_HOME` or `$HOME`/.local/share | /home/justjavac/.local/share |
* | macOS | `$HOME`/Library/Application Support | /Users/justjavac/Library/Application Support |
* | Windows | `$LOCALAPPDATA` | C:\Users\justjavac\AppData\Local |
*/
export default function dataDir(): string | null {
switch (Deno.build.os) {
case "linux": {
const xdg = Deno.env.get("XDG_DATA_HOME");
if (xdg) return xdg;

const home = Deno.env.get("HOME");
if (home) return `${home}/.local/share`;
break;
}

case "darwin": {
const home = Deno.env.get("HOME");
if (home) return `${home}/Library/Application Support`;
break;
}

case "windows":
return Deno.env.get("LOCALAPPDATA") ?? null;
}

return null;
}
23 changes: 0 additions & 23 deletions vendor/deno.land/x/dnt@0.34.0/lib/types.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export function getCompilerScriptTarget(target: ScriptTarget) {
return ts.ScriptTarget.ES2020;
case "ES2021":
return ts.ScriptTarget.ES2021;
case "ES2022":
return ts.ScriptTarget.ES2022;
case "Latest":
return ts.ScriptTarget.Latest;
default:
Expand All @@ -43,97 +45,100 @@ export function getCompilerScriptTarget(target: ScriptTarget) {
}

// Created from https://github.com/microsoft/TypeScript/blob/0ad5f82d6243db80d42bc0abb7a191dd380e980e/src/compiler/commandLineParser.ts
// then aligned with tsconfig.json's casing
export type LibName =
| "es5"
| "es6"
| "es2015"
| "es7"
| "es2016"
| "es2017"
| "es2018"
| "es2019"
| "es2020"
| "es2021"
| "es2022"
| "esnext"
| "dom"
| "dom.iterable"
| "webworker"
| "webworker.importscripts"
| "webworker.iterable"
| "scripthost"
| "es2015.core"
| "es2015.collection"
| "es2015.generator"
| "es2015.iterable"
| "es2015.promise"
| "es2015.proxy"
| "es2015.reflect"
| "es2015.symbol"
| "es2015.symbol.wellknown"
| "es2016.array.include"
| "es2017.object"
| "es2017.sharedmemory"
| "es2017.string"
| "es2017.intl"
| "es2017.typedarrays"
| "es2018.asyncgenerator"
| "es2018.asynciterable"
| "es2018.intl"
| "es2018.promise"
| "es2018.regexp"
| "es2019.array"
| "es2019.object"
| "es2019.string"
| "es2019.symbol"
| "es2020.bigint"
| "es2020.date"
| "es2020.promise"
| "es2020.sharedmemory"
| "es2020.string"
| "es2020.symbol.wellknown"
| "es2020.intl"
| "es2020.number"
| "es2021.promise"
| "es2021.string"
| "es2021.weakref"
| "es2021.intl"
| "es2022.array"
| "es2022.error"
| "es2022.intl"
| "es2022.object"
| "es2022.string"
| "esnext.array"
| "esnext.symbol"
| "esnext.asynciterable"
| "esnext.intl"
| "esnext.bigint"
| "esnext.string"
| "esnext.promise"
| "esnext.weakref";
| "ES5"
| "ES6"
| "ES2015"
| "ES7"
| "ES2016"
| "ES2017"
| "ES2018"
| "ES2019"
| "ES2020"
| "ES2021"
| "ES2022"
| "ESNext"
| "DOM"
| "DOM.Iterable"
| "WebWorker"
| "WebWorker.ImportScripts"
| "WebWorker.Iterable"
| "ScriptHost"
| "ES2015.Core"
| "ES2015.Collection"
| "ES2015.Generator"
| "ES2015.Iterable"
| "ES2015.Promise"
| "ES2015.Proxy"
| "ES2015.Reflect"
| "ES2015.Symbol"
| "ES2015.Symbol.WellKnown"
| "ES2016.Array.Include"
| "ES2017.Object"
| "ES2017.SharedMemory"
| "ES2017.String"
| "ES2017.Intl"
| "ES2017.TypedArrays"
| "ES2018.AsyncGenerator"
| "ES2018.AsyncIterable"
| "ES2018.Intl"
| "ES2018.Promise"
| "ES2018.RegExp"
| "ES2019.Array"
| "ES2019.Object"
| "ES2019.String"
| "ES2019.Symbol"
| "ES2020.BigInt"
| "ES2020.Date"
| "ES2020.Promise"
| "ES2020.SharedMemory"
| "ES2020.String"
| "ES2020.Symbol.WellKnown"
| "ES2020.Intl"
| "ES2020.Number"
| "ES2021.Promise"
| "ES2021.String"
| "ES2021.WeakRef"
| "ES2021.Intl"
| "ES2022.Array"
| "ES2022.Error"
| "ES2022.Intl"
| "ES2022.Object"
| "ES2022.String"
| "ESNext.Array"
| "ESNext.Symbol"
| "ESNext.AsyncIterable"
| "ESNext.Intl"
| "ESNext.BigInt"
| "ESNext.String"
| "ESNext.Promise"
| "ESNext.WeakRef";

export function getCompilerLibOption(target: ScriptTarget): LibName[] {
switch (target) {
case "ES3":
return [];
case "ES5":
return ["es5"];
return ["ES5"];
case "ES2015":
return ["es2015"];
return ["ES2015"];
case "ES2016":
return ["es2016"];
return ["ES2016"];
case "ES2017":
return ["es2017"];
return ["ES2017"];
case "ES2018":
return ["es2018"];
return ["ES2018"];
case "ES2019":
return ["es2019"];
return ["ES2019"];
case "ES2020":
return ["es2020"];
return ["ES2020"];
case "ES2021":
return ["es2021"];
return ["ES2021"];
case "ES2022":
return ["ES2022"];
case "Latest":
return ["esnext"];
return ["ESNext"];
default: {
const _assertNever: never = target;
throw new Error(`Unknown target compiler option: ${target}`);
Expand All @@ -145,7 +150,7 @@ export function libNamesToCompilerOption(names: LibName[]) {
const libFileNames: string[] = [];
const libMap = (ts as any).libMap as Map<string, string>;
for (const name of names) {
const fileName = libMap.get(name);
const fileName = libMap.get(name.toLowerCase());
if (fileName == null) {
throw new Error(`Could not find filename for lib: ${name}`);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,18 @@ export function getNpmIgnoreText(options: {
const filePath = file.filePath.replace(/\.ts$/i, ".js");
const dtsFilePath = file.filePath.replace(/\.ts$/i, ".d.ts");
if (options.includeEsModule) {
yield `esm/${filePath}`;
const esmFilePath = `esm/${filePath}`;
yield esmFilePath;
if (options.sourceMap === true) {
yield `${esmFilePath}.map`;
}
}
if (options.includeScriptModule) {
yield `script/${filePath}`;
const scriptFilePath = `script/${filePath}`;
yield scriptFilePath;
if (options.sourceMap === true) {
yield `${scriptFilePath}.map`;
}
}
yield `types/${dtsFilePath}`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import type { EntryPoint, ShimOptions } from "../mod.ts";
import { TransformOutput } from "../transform.ts";
import { PackageJsonObject } from "./types.ts";
import { PackageJson } from "./types.ts";

export interface GetPackageJsonOptions {
transformOutput: TransformOutput;
entryPoints: EntryPoint[];
package: PackageJsonObject;
package: PackageJson;
includeEsModule: boolean | undefined;
includeScriptModule: boolean | undefined;
includeDeclarations: boolean | undefined;
Expand Down Expand Up @@ -64,9 +64,9 @@ export function getPackageJson({
};
const testDevDependencies = testEnabled
? ({
...(!Object.keys(dependencies).includes("chalk")
...(!Object.keys(dependencies).includes("picocolors")
? {
"chalk": "^4.1.2",
"picocolors": "^1.0.0",
}
: {}),
// add dependencies from transform
Expand Down
Loading

0 comments on commit 96f1b45

Please sign in to comment.