Skip to content

Commit

Permalink
fix(modules): Fix window not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
syfxlin committed Oct 27, 2024
1 parent 22b3a5d commit 3358ce9
Show file tree
Hide file tree
Showing 16 changed files with 56 additions and 83 deletions.
59 changes: 0 additions & 59 deletions .releaserc.json

This file was deleted.

7 changes: 1 addition & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import config from "@syfxlin/eslint-config";

export default config({
jsx: true,
react: true,
typescript: true,
formatters: true,
});
export default config();
37 changes: 37 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
export default {
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"semantic-release-replace-plugin",
{
replacements: [
{
files: ["src/depker.ts"],
from: `this.version = ".*"`,
to: `this.version = "\${nextRelease.version}"`,
},
],
},
],
[
"@semantic-release/git",
{
assets: ["src/depker.ts"],
},
],
[
"@semantic-release/github",
{
assets: [
{ label: "depker.win.amd64.exe", path: "bin/depker.win.amd64.exe" },
{ label: "depker.win.arm64.exe", path: "bin/depker.win.arm64.exe" },
{ label: "depker.linux.amd64", path: "bin/depker.linux.amd64" },
{ label: "depker.linux.arm64", path: "bin/depker.linux.arm64" },
{ label: "depker.mac.amd64", path: "bin/depker.mac.amd64" },
{ label: "depker.mac.arm64", path: "bin/depker.mac.arm64" },
],
},
],
],
};
2 changes: 1 addition & 1 deletion src/deps/jsr/ansi.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://jsr.io/@cliffy/ansi/1.0.0-rc.5/ansi.ts";
export * from "https://jsr.io/@cliffy/ansi/1.0.0-rc.7/ansi.ts";
2 changes: 1 addition & 1 deletion src/deps/jsr/colors.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://jsr.io/@cliffy/ansi/1.0.0-rc.5/colors.ts";
export * from "https://jsr.io/@cliffy/ansi/1.0.0-rc.7/colors.ts";
2 changes: 1 addition & 1 deletion src/deps/jsr/command.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://jsr.io/@cliffy/command/1.0.0-rc.5/mod.ts";
export * from "https://jsr.io/@cliffy/command/1.0.0-rc.7/mod.ts";
6 changes: 3 additions & 3 deletions src/deps/jsr/dax.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export * from "https://jsr.io/@david/dax/0.41.0/mod.ts";
export * from "https://jsr.io/@david/dax/0.42.0/mod.ts";

declare module "https://jsr.io/@david/dax/0.41.0/mod.ts" {
declare module "https://jsr.io/@david/dax/0.42.0/mod.ts" {
// @ts-expect-error
import { CommandBuilder as CB, RequestBuilder as RB } from "https://jsr.io/@david/dax/0.41.0/mod.ts";
import { CommandBuilder as CB, RequestBuilder as RB } from "https://jsr.io/@david/dax/0.42.0/mod.ts";

// @ts-expect-error
interface CommandBuilder extends CB {
Expand Down
2 changes: 1 addition & 1 deletion src/deps/jsr/password.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import generator from "https://jsr.io/@rabbit-company/password-generator/2.1.0/src/password-generator.ts";
import generator from "https://jsr.io/@rabbit-company/password-generator/2.2.0/src/password-generator.ts";

export default generator;
2 changes: 1 addition & 1 deletion src/deps/jsr/prompt.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://jsr.io/@cliffy/prompt/1.0.0-rc.5/mod.ts";
export * from "https://jsr.io/@cliffy/prompt/1.0.0-rc.7/mod.ts";
2 changes: 1 addition & 1 deletion src/deps/jsr/table.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://jsr.io/@cliffy/table/1.0.0-rc.5/mod.ts";
export * from "https://jsr.io/@cliffy/table/1.0.0-rc.7/mod.ts";
2 changes: 1 addition & 1 deletion src/deps/npm/ignore.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import ignore from "https://esm.sh/ignore@5.3.2";
import ignore from "https://esm.sh/ignore@6.0.2";

export default ignore;
2 changes: 1 addition & 1 deletion src/deps/std/collections.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import * as collections from "https://jsr.io/@std/collections/1.0.5/mod.ts";
import * as collections from "https://jsr.io/@std/collections/1.0.9/mod.ts";

export default collections;
2 changes: 1 addition & 1 deletion src/deps/std/dotenv.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import * as dotenv from "https://jsr.io/@std/dotenv/0.225.0/mod.ts";
import * as dotenv from "https://jsr.io/@std/dotenv/0.225.2/mod.ts";

export default dotenv;
8 changes: 4 additions & 4 deletions src/deps/std/fs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from "https://jsr.io/@std/fs/1.0.1/mod.ts";
import * as fs from "https://jsr.io/@std/fs/1.0.5/mod.ts";

export { isSubdir } from "https://jsr.io/@std/fs/1.0.1/_is_subdir.ts";
export { toPathString } from "https://jsr.io/@std/fs/1.0.1/_to_path_string.ts";
export { getFileInfoType } from "https://jsr.io/@std/fs/1.0.1/_get_file_info_type.ts";
export { isSubdir } from "https://jsr.io/@std/fs/1.0.5/_is_subdir.ts";
export { toPathString } from "https://jsr.io/@std/fs/1.0.5/_to_path_string.ts";
export { getFileInfoType } from "https://jsr.io/@std/fs/1.0.5/_get_file_info_type.ts";

export default fs;
2 changes: 1 addition & 1 deletion src/deps/std/path.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import * as path from "https://jsr.io/@std/path/1.0.2/mod.ts";
import * as path from "https://jsr.io/@std/path/1.0.7/mod.ts";

export default path;
2 changes: 1 addition & 1 deletion src/deps/std/yaml.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import * as yaml from "https://jsr.io/@std/yaml/1.0.2/mod.ts";
import * as yaml from "https://jsr.io/@std/yaml/1.0.5/mod.ts";

export default yaml;

0 comments on commit 3358ce9

Please sign in to comment.