fix!: rename os-env to envosman due to npm conflict

This commit is contained in:
Amin Yahyaabadi 2024-08-16 02:52:11 -07:00
parent a4b28aacb7
commit d3b2f3531c
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
42 changed files with 98 additions and 97 deletions

View File

@ -14,6 +14,7 @@ words:
- aarch
- hadolint
- aminya
- envosman
- applellvm
- biome
- biomejs

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -103,7 +103,7 @@
"npm-check-updates": "^17.0.6",
"npm-run-all2": "^6.2.2",
"numerous": "1.0.3",
"os-env": "workspace:*",
"envosman": "workspace:*",
"p-timeout": "^6.1.2",
"parcel": "2.12.0",
"path-exists": "^5.0.0",
@ -149,7 +149,7 @@
"mri",
"msvc-dev-cmd",
"numerous",
"os-env",
"envosman",
"path-exists",
"patha",
"retry-as-promised",

View File

@ -1,4 +1,4 @@
<h1 align="center">os-env</h1>
<h1 align="center">envosman</h1>
<p>
<img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />
<img src="https://img.shields.io/badge/node-%3E%3D12-blue.svg" />
@ -12,7 +12,7 @@
## Install
```sh
npm install --save os-env
npm install --save envosman
```
## Usage

View File

@ -1,9 +1,9 @@
{
"name": "os-env",
"name": "envosman",
"version": "1.0.0",
"description": "Manage environment variables, PATH, and rc files",
"repository": "https://github.com/aminya/setup-cpp",
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/os-env",
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/envosman",
"license": "Apache-2.0",
"author": "Amin Yahyaabadi",
"main": "./dist/index.js",

View File

@ -43,8 +43,8 @@ export const sourceRCInRc = memoize(sourceRCInRc_, { isPromise: true })
async function addRCHeader(options: RcOptions) {
// a variable that prevents source rc from being called from .bashrc and .profile
const rcHeader = options.guard === undefined
? "\n# Automatically Generated by os-env\n"
: `\n# Automatically Generated by os-env ${options.guard}\nexport SOURCE_${options.guard.toUpperCase()}RC=0\n`
? "\n# Automatically Generated by envosman\n"
: `\n# Automatically Generated by envosman ${options.guard}\nexport SOURCE_${options.guard.toUpperCase()}RC=0\n`
if (await pathExists(options.rcPath)) {
const rcContent = await readFile(options.rcPath, "utf8")

View File

@ -20,7 +20,7 @@
"ci-info": "^4.0.0",
"path-exists": "^5.0.0",
"ci-log": "workspace:*",
"os-env": "workspace:*",
"envosman": "workspace:*",
"which": "4.0.0",
"execa": "^7.2.0",
"escape-string-regexp": "^5.0.0"

View File

@ -1,8 +1,8 @@
import { promises } from "fs"
import { execRoot } from "admina"
import { GITHUB_ACTIONS } from "ci-info"
import { sourceRC } from "os-env"
import type { RcOptions } from "os-env/dist/rc-file.js"
import { sourceRC } from "envosman"
import type { RcOptions } from "envosman/dist/rc-file.js"
const { appendFile } = promises
/**

View File

@ -92,6 +92,9 @@ importers:
dprint:
specifier: ^0.47.2
version: 0.47.2
envosman:
specifier: workspace:*
version: link:packages/envosman
escape-path-with-spaces:
specifier: ^1.0.2
version: 1.0.2
@ -146,9 +149,6 @@ importers:
numerous:
specifier: 1.0.3
version: 1.0.3
os-env:
specifier: workspace:*
version: link:packages/os-env
p-timeout:
specifier: ^6.1.2
version: 6.1.2
@ -231,23 +231,7 @@ importers:
specifier: ^4.0.0
version: 4.0.0
packages/exec-powershell:
dependencies:
'@types/node':
specifier: ^14
version: 14.18.63
execa:
specifier: ^7
version: 7.2.0
which:
specifier: ^4.0.0
version: 4.0.0
devDependencies:
'@types/which':
specifier: ^3.0.0
version: 3.0.3
packages/os-env:
packages/envosman:
dependencies:
'@actions/core':
specifier: ^1.10.1
@ -283,6 +267,22 @@ importers:
specifier: workspace:*
version: link:../untildify-user
packages/exec-powershell:
dependencies:
'@types/node':
specifier: ^14
version: 14.18.63
execa:
specifier: ^7
version: 7.2.0
which:
specifier: ^4.0.0
version: 4.0.0
devDependencies:
'@types/which':
specifier: ^3.0.0
version: 3.0.3
packages/setup-apt:
dependencies:
'@types/node':
@ -297,15 +297,15 @@ importers:
ci-log:
specifier: workspace:*
version: link:../ci-log
envosman:
specifier: workspace:*
version: link:../envosman
escape-string-regexp:
specifier: ^5.0.0
version: 5.0.0
execa:
specifier: ^7.2.0
version: 7.2.0
os-env:
specifier: workspace:*
version: link:../os-env
path-exists:
specifier: ^5.0.0
version: 5.0.0

View File

@ -1,9 +1,9 @@
import { tmpdir } from "os"
import path, { join } from "path"
import { mkdirP } from "@actions/io"
import { addPath } from "envosman"
import { execaSync } from "execa"
import { readFile } from "fs/promises"
import { addPath } from "os-env"
import { dirname } from "patha"
import which from "which"
import { rcOptions } from "../cli-options.js"

View File

@ -1,5 +1,5 @@
import { addPath } from "envosman"
import { execaSync } from "execa"
import { addPath } from "os-env"
import { pathExists } from "path-exists"
import { dirname } from "patha"
import which from "which"

View File

@ -1,7 +1,7 @@
import { join } from "path"
import { endGroup, notice, startGroup } from "@actions/core"
import { error, info } from "ci-log"
import { addEnv } from "os-env"
import { addEnv } from "envosman"
import semverValid from "semver/functions/valid"
import { getSuccessMessage, rcOptions } from "./cli-options.js"
import { setupGcc, setupMingw } from "./gcc/gcc.js"

View File

@ -1,4 +1,4 @@
import { addPath } from "os-env"
import { addPath } from "envosman"
import { installAptPack } from "setup-apt"
import { rcOptions } from "../cli-options.js"
import { hasDnf } from "../utils/env/hasDnf.js"

View File

@ -1,5 +1,5 @@
import { info, notice } from "ci-log"
import { addPath } from "os-env"
import { addPath } from "envosman"
import { addExeExt, join } from "patha"
import { installAptPack } from "setup-apt"
import { setupGraphviz } from "../graphviz/graphviz.js"

View File

@ -1,4 +1,4 @@
import { addEnv, addPath } from "os-env"
import { addEnv, addPath } from "envosman"
import { GITHUB_ACTIONS } from "ci-info"
import { info, warning } from "ci-log"

View File

@ -1,4 +1,4 @@
import { addEnv } from "os-env"
import { addEnv } from "envosman"
import semverMajor from "semver/functions/major"
import semverValid from "semver/functions/valid"
import { rcOptions } from "../cli-options.js"

View File

@ -1,4 +1,4 @@
import { addPath } from "os-env"
import { addPath } from "envosman"
import { installAptPack } from "setup-apt"
import { rcOptions } from "../cli-options.js"
import { hasDnf } from "../utils/env/hasDnf.js"

View File

@ -1,8 +1,8 @@
import { delimiter } from "path"
import { GITHUB_ACTIONS } from "ci-info"
import { info, warning } from "ci-log"
import { addEnv } from "envosman"
import memoize from "micro-memoize"
import { addEnv } from "os-env"
import { pathExists } from "path-exists"
import { addExeExt, join } from "patha"
import { addUpdateAlternativesToRc, installAptPack } from "setup-apt"

View File

@ -1,8 +1,8 @@
import { info } from "console"
import { execRoot } from "admina"
import { addPath } from "envosman"
import { execa } from "execa"
import { chmod, readFile, writeFile } from "fs/promises"
import { addPath } from "os-env"
import { aptTimeout, hasNala, installAptPack, isAptPackRegexInstalled } from "setup-apt"
import { rcOptions } from "../cli-options.js"
import { DEFAULT_TIMEOUT } from "../installTool.js"

View File

@ -1,6 +1,6 @@
import { getExecOutput } from "@actions/exec"
import { error } from "ci-log"
import { addEnv } from "os-env"
import { addEnv } from "envosman"
import { rcOptions } from "../cli-options.js"
export async function setupMacOSSDK() {

View File

@ -3,9 +3,9 @@
import { GITHUB_ACTIONS, isCI } from "ci-info"
import { error, info, success, warning } from "ci-log"
import { finalizeRC } from "envosman"
import * as numerous from "numerous"
import numerousLocale from "numerous/locales/en.js"
import { finalizeRC } from "os-env"
import * as timeDelta from "time-delta"
import timeDeltaLocale from "time-delta/locales/en.js"
import { untildifyUser } from "untildify-user"

View File

@ -1,4 +1,4 @@
import { addPath } from "os-env"
import { addPath } from "envosman"
import { installAptPack } from "setup-apt"
import { rcOptions } from "../cli-options.js"
import { hasDnf } from "../utils/env/hasDnf.js"

View File

@ -1,4 +1,4 @@
import { addPath } from "os-env"
import { addPath } from "envosman"
import { rcOptions } from "../cli-options.js"
import { setupChocoPack } from "../utils/setup/setupChocoPack.js"

View File

@ -1,5 +1,5 @@
import { execRootSync } from "admina"
import { addPath } from "os-env"
import { addPath } from "envosman"
import { installAptPack } from "setup-apt"
import { rcOptions } from "../cli-options.js"
import { hasDnf } from "../utils/env/hasDnf.js"

View File

@ -4,10 +4,10 @@ import { parse as pathParse } from "path"
import { getExecOutput } from "@actions/exec"
import { GITHUB_ACTIONS } from "ci-info"
import { info, warning } from "ci-log"
import { addPath } from "envosman"
import { execa } from "execa"
import { readdir } from "fs/promises"
import memoize from "micro-memoize"
import { addPath } from "os-env"
import { pathExists } from "path-exists"
import { addExeExt, dirname, join } from "patha"
import { installAptPack } from "setup-apt"

View File

@ -1,6 +1,6 @@
import { cacheDir, downloadTool, find } from "@actions/tool-cache"
import { info } from "ci-log"
import { addPath } from "os-env"
import { addPath } from "envosman"
import { join } from "patha"
import { tmpdir } from "os"

View File

@ -1,7 +1,7 @@
/* eslint-disable require-atomic-updates */
import { info } from "ci-log"
import { addPath } from "envosman"
import { execaSync } from "execa"
import { addPath } from "os-env"
import which from "which"
import { setupChocolatey } from "../../chocolatey/chocolatey.js"
import { rcOptions } from "../../cli-options.js"

View File

@ -1,8 +1,8 @@
import { info } from "@actions/core"
import { addPath } from "envosman"
import { execa, execaSync } from "execa"
import memoize from "micro-memoize"
import { mkdirp } from "mkdirp"
import { addPath } from "os-env"
import { pathExists } from "path-exists"
import { addExeExt, dirname, join } from "patha"
import { installAptPack } from "setup-apt"

View File

@ -1,7 +1,7 @@
import { grantUserWriteAccess } from "admina"
import { info, notice } from "ci-log"
import { addPath } from "envosman"
import { execaSync } from "execa"
import { addPath } from "os-env"
import { pathExists } from "path-exists"
import { addShExt, addShRelativePrefix, dirname, join } from "patha"
import { installAptPack } from "setup-apt"

View File

@ -1,8 +1,8 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { info } from "ci-log"
import { addEnv } from "envosman"
import { setupMSVCDevCmd } from "msvc-dev-cmd/lib.js"
import { addEnv } from "os-env"
import { pathExists } from "path-exists"
import { rcOptions } from "../cli-options.js"