Skip to content

Commit

Permalink
v1.0.10 : migrate 커맨드 동작시 package.json 에서 build:variable 스크립트가 변경되지 않…
Browse files Browse the repository at this point in the history
…는 현상 수정.
  • Loading branch information
wisdomstar94 committed Jan 22, 2024
1 parent 23c9d17 commit b41d840
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "torytis"
version = "1.0.9"
version = "1.0.10"
edition = "2021"

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wisdomstar94/torytis",
"version": "1.0.9",
"version": "1.0.10",
"description": "티스토리 블로그 스킨 개발 프레임워크",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/sub_commands/c_migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn apply_scripts_block(package_json_content: &str) -> String {

// "build:variable" 이 이미 있는 경우 수정
if scripts_block_string_new.contains("\"build:variable\":") {
let pattern3 = r#""build:variable"[^{}]*:"([^"]*)""#; // "build:variable": ".." <-- 이 한줄을 선택
let pattern3 = r#""build:variable":[^{}\,]*"[^{}\,]*""#; // "build:variable": ".." <-- 이 한줄을 선택
let regex3 = Regex::new(&pattern3).unwrap();
scripts_block_string_new = regex3.replace(&scripts_block_string_new, "\"build:variable\": \"torytis varbuild\"").to_string();
}
Expand Down

0 comments on commit b41d840

Please sign in to comment.