Skip to content

Commit

Permalink
cwd has moved to @cross/fs. Update deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Apr 21, 2024
1 parent b6263a0 commit 85460ee
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
8 changes: 4 additions & 4 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@cross/service",
"version": "1.0.1",
"version": "1.0.2",
"fmt": {
"lineWidth": 200
},
"tasks": {
"check": "deno fmt && deno lint && deno check service.ts && deno test --allow-read --allow-write --allow-env --allow-net"
},
"imports": {
"@cross/env": "jsr:@cross/env@^1.0.0",
"@cross/fs": "jsr:@cross/fs@^0.0.8",
"@cross/env": "jsr:@cross/env@^1.0.2",
"@cross/fs": "jsr:@cross/fs@^0.0.9",
"@cross/runtime": "jsr:@cross/runtime@^1.0.0",
"@cross/test": "jsr:@cross/test@^0.0.9",
"@cross/utils": "jsr:@cross/utils@^0.9.4",
"@cross/utils": "jsr:@cross/utils@^0.11.0",
"@std/assert": "jsr:@std/assert@^0.221.0",
"@std/path": "jsr:@std/path@^0.221.0"
},
Expand Down
4 changes: 2 additions & 2 deletions lib/managers/launchd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* @file lib/managers/launchd.ts
* @license MIT
*/
import { exists, mkdir, unlink, writeFile } from "@cross/fs";
import { cwd, exists, mkdir, unlink, writeFile } from "@cross/fs";
import { dirname } from "@std/path";
import { cwd, resolvedExecPath } from "@cross/utils";
import { resolvedExecPath } from "@cross/utils";
import type { ServiceInstallResult, ServiceManualStep, ServiceUninstallResult } from "../result.ts";
import type { InstallServiceOptions, UninstallServiceOptions } from "../service.ts";
const plistTemplate = `<?xml version="1.0" encoding="UTF-8"?>
Expand Down
4 changes: 2 additions & 2 deletions lib/managers/systemd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @license MIT
*/

import { exists, mkdir, mktempdir, unlink, writeFile } from "@cross/fs";
import { cwd, exists, mkdir, mktempdir, unlink, writeFile } from "@cross/fs";
import { dirname, join } from "@std/path";
import { cwd, resolvedExecPath, spawn } from "@cross/utils";
import { resolvedExecPath, spawn } from "@cross/utils";
import type { ServiceInstallResult, ServiceManualStep, ServiceUninstallResult } from "../result.ts";
import type { InstallServiceOptions, UninstallServiceOptions } from "../service.ts";

Expand Down
4 changes: 2 additions & 2 deletions lib/managers/upstart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @license MIT
*/

import { exists, mktempdir, unlink, writeFile } from "@cross/fs";
import { cwd, exists, mktempdir, unlink, writeFile } from "@cross/fs";
import { dirname, join } from "@std/path";
import { cwd, resolvedExecPath } from "@cross/utils";
import { resolvedExecPath } from "@cross/utils";
import type { InstallServiceOptions, UninstallServiceOptions } from "../service.ts";
import type { ServiceInstallResult, ServiceManualStep, ServiceUninstallResult } from "../result.ts";

Expand Down
3 changes: 2 additions & 1 deletion lib/managers/windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
*/

import { exists, mkdir, unlink, writeFile } from "@cross/fs";
import { cwd, spawn } from "@cross/utils";
import { spawn } from "@cross/utils";
import { cwd } from "@cross/fs";
import type { InstallServiceOptions, UninstallServiceOptions } from "../service.ts";
import type { ServiceInstallResult, ServiceUninstallResult } from "../result.ts";
import { CurrentRuntime, Runtime } from "@cross/runtime";
Expand Down
4 changes: 2 additions & 2 deletions lib/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { LaunchdService } from "./managers/launchd.ts";
import { WindowsService } from "./managers/windows.ts";
import { CurrentOS, OperatingSystem } from "@cross/runtime";
import { getEnv } from "@cross/env";
import { cwd, spawn } from "@cross/utils";
import { spawn } from "@cross/utils";
import type { SpawnResult } from "@cross/utils";
import { stat } from "@cross/fs";
import { cwd, stat } from "@cross/fs";
import type { ServiceInstallResult, ServiceUninstallResult } from "./result.ts";
/**
* Exports helper functions to install any command as a system service
Expand Down

0 comments on commit 85460ee

Please sign in to comment.