Skip to content

Commit 4686a4f

Browse files
authored
remove application-config-path dependency (#5547)
1 parent 28e8a59 commit 4686a4f

5 files changed

Lines changed: 20 additions & 10 deletions

File tree

.github/workflows/release-proposal.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
fetch-depth: 0
3535
- uses: ./.github/actions/node
3636
- run: npm i -g branch-diff
37-
- run: npm i --no-save application-config-path@0.1.1
3837
- run: |
3938
mkdir -p ~/.config/changelog-maker
4039
echo "{\"token\":\"${{secrets.GITHUB_TOKEN}}\",\"user\":\"${{github.actor}}\"}" > ~/.config/changelog-maker/config.json

LICENSE-3rdparty.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ dev,@eslint/eslintrc,MIT,Copyright OpenJS Foundation and other contributors, <ww
3838
dev,@eslint/js,MIT,Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
3939
dev,@msgpack/msgpack,ISC,Copyright 2019 The MessagePack Community
4040
dev,@stylistic/eslint-plugin-js,MIT,Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
41-
dev,application-config-path,MIT,Copyright (c) 2015, 2023 Linus Unnebäck
4241
dev,autocannon,MIT,Copyright 2016 Matteo Collina
4342
dev,aws-sdk,Apache 2.0,Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4443
dev,axios,MIT,Copyright 2014-present Matt Zabriskie

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@
8686
"dependencies": {
8787
"@datadog/libdatadog": "^0.5.0",
8888
"@datadog/native-appsec": "8.5.1",
89-
"@datadog/wasm-js-rewriter": "3.1.0",
9089
"@datadog/native-iast-taint-tracking": "3.3.0",
9190
"@datadog/native-metrics": "^3.1.0",
9291
"@datadog/pprof": "5.7.0",
9392
"@datadog/sketches-js": "^2.1.0",
93+
"@datadog/wasm-js-rewriter": "3.1.0",
9494
"@isaacs/ttlcache": "^1.4.1",
9595
"@opentelemetry/api": ">=1.0.0 <1.9.0",
9696
"@opentelemetry/core": "^1.14.0",
@@ -125,7 +125,6 @@
125125
"@msgpack/msgpack": "^3.0.0-beta3",
126126
"@stylistic/eslint-plugin-js": "^3.0.1",
127127
"@types/node": "^16.0.0",
128-
"application-config-path": "^0.1.1",
129128
"autocannon": "^4.5.2",
130129
"aws-sdk": "^2.1446.0",
131130
"axios": "^1.8.2",

scripts/release/helpers/requirements.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44

55
const { join } = require('path')
66
const { existsSync, readFileSync } = require('fs')
7-
const getApplicationConfigPath = require('application-config-path')
7+
const os = require('os')
8+
const path = require('path')
89
const { capture, fatal, run } = require('./terminal')
910

11+
const { HOME, LOCALAPPDATA, XDG_CONFIG_HOME, USERPROFILE } = process.env
12+
1013
// Check that the `git` CLI is installed.
1114
function checkGit () {
1215
try {
@@ -102,4 +105,19 @@ function checkGitHubScopes (token, requiredScopes, source) {
102105
}
103106
}
104107

108+
function getApplicationConfigPath (name) {
109+
switch (os.platform()) {
110+
case 'darwin':
111+
return path.join(HOME, 'Library', 'Application Support', name)
112+
case 'freebsd':
113+
case 'openbsd':
114+
case 'linux':
115+
return path.join(XDG_CONFIG_HOME || path.join(HOME, '.config'), name)
116+
case 'win32':
117+
return path.join(LOCALAPPDATA || path.join(USERPROFILE, 'Local Settings', 'Application Data'), name)
118+
default:
119+
throw new Error('Platform not supported')
120+
}
121+
}
122+
105123
module.exports = { checkBranchDiff, checkGitHub, checkGit }

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,11 +1084,6 @@ append-transform@^2.0.0:
10841084
dependencies:
10851085
default-require-extensions "^3.0.0"
10861086

1087-
application-config-path@^0.1.1:
1088-
version "0.1.1"
1089-
resolved "https://registry.yarnpkg.com/application-config-path/-/application-config-path-0.1.1.tgz#8b5ac64ff6afdd9bd70ce69f6f64b6998f5f756e"
1090-
integrity sha512-zy9cHePtMP0YhwG+CfHm0bgwdnga2X3gZexpdCwEj//dpb+TKajtiC8REEUJUSq6Ab4f9cgNy2l8ObXzCXFkEw==
1091-
10921087
archy@^1.0.0:
10931088
version "1.0.0"
10941089
resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40"

0 commit comments

Comments
 (0)