Skip to content

Commit

Permalink
chore(scripts): replace config path (#2510)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Jan 9, 2024
1 parent 9942b9f commit 35b1574
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 4 deletions.
1 change: 1 addition & 0 deletions scripts/configReplacer.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exports.default = ({ orig }) => orig.replace(/\.\.\/config\//, '../../../config/');
3 changes: 2 additions & 1 deletion scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "yarn build:cli & yarn build:actions",
"build:actions": "cd ci/actions/restore-artifacts && ncc build src/index.ts --source-map --transpile-only --minify -o builddir",
"build:cli": "tsc",
"build:cli": "tsc && tsc-alias",
"cleanGeneratedBranch": "NODE_NO_WARNINGS=1 node dist/scripts/ci/codegen/cleanGeneratedBranch.js",
"createMatrix": "NODE_NO_WARNINGS=1 node dist/scripts/ci/githubActions/createMatrix.js",
"createReleasePR": "NODE_NO_WARNINGS=1 RELEASE=true node dist/scripts/release/createReleasePR.js",
Expand Down Expand Up @@ -48,6 +48,7 @@
"micromatch": "4.0.5",
"semver": "7.5.4",
"spinnies": "0.5.1",
"tsc-alias": "1.8.8",
"typescript": "5.3.3",
"vitest": "1.1.3"
}
Expand Down
11 changes: 10 additions & 1 deletion scripts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
"lib": ["esnext", "dom"],
"outDir": "dist"
},
"include": ["**/*.ts", "./.eslintrc.cjs", "**/*.mjs"],
"tsc-alias": {
"resolveFullPaths": true,
"replacers": {
"configReplacer": {
"enabled": true,
"file": "configReplacer.cjs"
}
}
},
"include": ["**/*.ts", "./**.cjs", "**/*.mjs"],
"exclude": ["dist", "*.json", "node_modules", "**/*.test.ts"]
}
51 changes: 49 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5680,7 +5680,7 @@ __metadata:
languageName: node
linkType: hard

"chokidar@npm:^3.5.1":
"chokidar@npm:^3.5.1, chokidar@npm:^3.5.3":
version: 3.5.3
resolution: "chokidar@npm:3.5.3"
dependencies:
Expand Down Expand Up @@ -5939,6 +5939,13 @@ __metadata:
languageName: node
linkType: hard

"commander@npm:^9.0.0":
version: 9.5.0
resolution: "commander@npm:9.5.0"
checksum: 41c49b3d0f94a1fbeb0463c85b13f15aa15a9e0b4d5e10a49c0a1d58d4489b549d62262b052ae0aa6cfda53299bee487bfe337825df15e342114dde543f82906
languageName: node
linkType: hard

"comment-parser@npm:1.4.1":
version: 1.4.1
resolution: "comment-parser@npm:1.4.1"
Expand Down Expand Up @@ -7806,7 +7813,7 @@ __metadata:
languageName: node
linkType: hard

"globby@npm:^11.1.0":
"globby@npm:^11.0.4, globby@npm:^11.1.0":
version: 11.1.0
resolution: "globby@npm:11.1.0"
dependencies:
Expand Down Expand Up @@ -10248,6 +10255,13 @@ __metadata:
languageName: node
linkType: hard

"mylas@npm:^2.1.9":
version: 2.1.13
resolution: "mylas@npm:2.1.13"
checksum: 37f335424463c422f48d50317aa0a34fe410fabb146cbf27b453a0aa743732b5626f56deaa190bca2ce29836f809d88759007976dc78d5d22b75918a00586577
languageName: node
linkType: hard

"nanoid@npm:^3.3.7":
version: 3.3.7
resolution: "nanoid@npm:3.3.7"
Expand Down Expand Up @@ -11073,6 +11087,15 @@ __metadata:
languageName: node
linkType: hard

"plimit-lit@npm:^1.2.6":
version: 1.6.1
resolution: "plimit-lit@npm:1.6.1"
dependencies:
queue-lit: "npm:^1.5.1"
checksum: e4eaf018dc311fd4d452954c10992cd8a9eb72d168ec2274bb831d86558422703e1405a8978ffdd5c418654e6a25e10a0765a39bf3ce3a84dc799fe6268e0ea4
languageName: node
linkType: hard

"pluralize@npm:^8.0.0":
version: 8.0.0
resolution: "pluralize@npm:8.0.0"
Expand Down Expand Up @@ -11309,6 +11332,13 @@ __metadata:
languageName: node
linkType: hard

"queue-lit@npm:^1.5.1":
version: 1.5.2
resolution: "queue-lit@npm:1.5.2"
checksum: 8dd45c79bd25b33b0c7d587391eb0b4acc4deb797bf92fef62b2d8e7c03b64083f5304f09d52a18267d34d020cc67ccde97a88185b67590eeccb194938ff1f98
languageName: node
linkType: hard

"queue-microtask@npm:^1.2.2":
version: 1.2.3
resolution: "queue-microtask@npm:1.2.3"
Expand Down Expand Up @@ -11930,6 +11960,7 @@ __metadata:
micromatch: "npm:4.0.5"
semver: "npm:7.5.4"
spinnies: "npm:0.5.1"
tsc-alias: "npm:1.8.8"
typescript: "npm:5.3.3"
vitest: "npm:1.1.3"
languageName: unknown
Expand Down Expand Up @@ -12882,6 +12913,22 @@ __metadata:
languageName: node
linkType: hard

"tsc-alias@npm:1.8.8":
version: 1.8.8
resolution: "tsc-alias@npm:1.8.8"
dependencies:
chokidar: "npm:^3.5.3"
commander: "npm:^9.0.0"
globby: "npm:^11.0.4"
mylas: "npm:^2.1.9"
normalize-path: "npm:^3.0.0"
plimit-lit: "npm:^1.2.6"
bin:
tsc-alias: dist/bin/index.js
checksum: 145d7bb23a618e1136c8addd4b4ed23a1d503a37d3fc5b3698a993fea9331180a68853b0e78ff50fb3fb7ed95d4996a2d82f77395814bbd1c40adee8a9151d90
languageName: node
linkType: hard

"tsconfig-paths@npm:^3.15.0":
version: 3.15.0
resolution: "tsconfig-paths@npm:3.15.0"
Expand Down

0 comments on commit 35b1574

Please sign in to comment.