Skip to content

Commit d533474

Browse files
🐛 commonjs import 구문 수정
1 parent cc27fcb commit d533474

File tree

6 files changed

+18
-25
lines changed

6 files changed

+18
-25
lines changed

canary-publish/dist/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53848,7 +53848,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5384853848
Object.defineProperty(exports, "__esModule", ({ value: true }));
5384953849
exports.getChangedAllFiles = getChangedAllFiles;
5385053850
exports.findNearestPackageJson = findNearestPackageJson;
53851-
const path_1 = __importDefault(__nccwpck_require__(1017));
53851+
const path = __importStar(__nccwpck_require__(1017));
5385253852
const core = __importStar(__nccwpck_require__(6108));
5385353853
const github = __importStar(__nccwpck_require__(1645));
5385453854
const fs_extra_1 = __importDefault(__nccwpck_require__(77));
@@ -53884,13 +53884,13 @@ function getChangedAllFiles(_a) {
5388453884
});
5388553885
}
5388653886
function findNearestPackageJson(filePath) {
53887-
let currentDir = path_1.default.dirname(filePath);
53888-
while (currentDir !== path_1.default.parse(currentDir).root) {
53889-
const packageJsonPath = path_1.default.join(currentDir, 'package.json');
53887+
let currentDir = path.dirname(filePath);
53888+
while (currentDir !== path.parse(currentDir).root) {
53889+
const packageJsonPath = path.join(currentDir, 'package.json');
5389053890
if (fs_extra_1.default.existsSync(packageJsonPath)) {
5389153891
return packageJsonPath;
5389253892
}
53893-
currentDir = path_1.default.dirname(currentDir);
53893+
currentDir = path.dirname(currentDir);
5389453894
}
5389553895
return undefined;
5389653896
}

detect-add/dist/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34094,7 +34094,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
3409434094
Object.defineProperty(exports, "__esModule", ({ value: true }));
3409534095
exports.getChangedAllFiles = getChangedAllFiles;
3409634096
exports.findNearestPackageJson = findNearestPackageJson;
34097-
const path_1 = __nccwpck_require__(1017);
34097+
const path = __nccwpck_require__(1017);
3409834098
const core = __nccwpck_require__(6108);
3409934099
const github = __nccwpck_require__(1645);
3410034100
const fs_extra_1 = __nccwpck_require__(77);
@@ -34130,13 +34130,13 @@ function getChangedAllFiles(_a) {
3413034130
});
3413134131
}
3413234132
function findNearestPackageJson(filePath) {
34133-
let currentDir = path_1.default.dirname(filePath);
34134-
while (currentDir !== path_1.default.parse(currentDir).root) {
34135-
const packageJsonPath = path_1.default.join(currentDir, 'package.json');
34133+
let currentDir = path.dirname(filePath);
34134+
while (currentDir !== path.parse(currentDir).root) {
34135+
const packageJsonPath = path.join(currentDir, 'package.json');
3413634136
if (fs_extra_1.default.existsSync(packageJsonPath)) {
3413734137
return packageJsonPath;
3413834138
}
34139-
currentDir = path_1.default.dirname(currentDir);
34139+
currentDir = path.dirname(currentDir);
3414034140
}
3414134141
return undefined;
3414234142
}

libs/utils/files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path'
1+
import * as path from 'path'
22

33
import * as core from '@actions/core'
44
import * as github from '@actions/github'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@types/node": "^20.14.9",
3838
"@types/fs-extra": "^8.0.0"
3939
},
40-
"packageManager": "pnpm@9.4.0",
40+
"packageManager": "pnpm@9.13.2",
4141
"dependencies": {
4242
"@actions/core": "^1.10.1",
4343
"@actions/github": "^6.0.0",

pnpm-lock.yaml

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

publish/dist/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63779,7 +63779,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6377963779
Object.defineProperty(exports, "__esModule", ({ value: true }));
6378063780
exports.getChangedAllFiles = getChangedAllFiles;
6378163781
exports.findNearestPackageJson = findNearestPackageJson;
63782-
const path_1 = __importDefault(__nccwpck_require__(71017));
63782+
const path = __importStar(__nccwpck_require__(71017));
6378363783
const core = __importStar(__nccwpck_require__(6108));
6378463784
const github = __importStar(__nccwpck_require__(31645));
6378563785
const fs_extra_1 = __importDefault(__nccwpck_require__(20077));
@@ -63815,13 +63815,13 @@ function getChangedAllFiles(_a) {
6381563815
});
6381663816
}
6381763817
function findNearestPackageJson(filePath) {
63818-
let currentDir = path_1.default.dirname(filePath);
63819-
while (currentDir !== path_1.default.parse(currentDir).root) {
63820-
const packageJsonPath = path_1.default.join(currentDir, 'package.json');
63818+
let currentDir = path.dirname(filePath);
63819+
while (currentDir !== path.parse(currentDir).root) {
63820+
const packageJsonPath = path.join(currentDir, 'package.json');
6382163821
if (fs_extra_1.default.existsSync(packageJsonPath)) {
6382263822
return packageJsonPath;
6382363823
}
63824-
currentDir = path_1.default.dirname(currentDir);
63824+
currentDir = path.dirname(currentDir);
6382563825
}
6382663826
return undefined;
6382763827
}

0 commit comments

Comments
 (0)