Skip to content

Commit 1770865

Browse files
Merge pull request #58 from dreamsicle-io/release/3.3.3-RC2
Release/3.3.3 rc2
2 parents 8e1bd3b + f6fbe81 commit 1770865

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ jobs:
5656
# the path to `tests` and enable the `verbose` option for debugging.
5757
- name: Create Theme
5858
id: create_theme
59-
run: npm test test-theme -- -v -f -P "tests" -N "Test Theme" -X "1.0.0" -T "parent-theme" -U "https://github.com/dreamsicle-io/test" -B "https://github.com/dreamsicle-io/test/issues" -R "git+ssh://git@github.com/dreamsicle-io/test.git" -r "git" -D "Just another WordPress theme." -A "Dreamsicle" -E "hello@dreamsicle.io" -u "https://www.dreamsicle.io" -L "gpl-3.0" -t "accessibility-ready,translation-ready" -W "6.1.0" -w "6.4.0" -F "test" -C "Test" -c "TEST" -e "testthemedev"
59+
run: npm test test-theme -- -v -f -P "tests" -N "Test Theme" -X "1.0.0" -T "parent-theme" -U "https://github.com/dreamsicle-io/test" -B "https://github.com/dreamsicle-io/test/issues" -R "git+ssh://git@github.com:dreamsicle-io/test.git" -r "git" -D "Just another WordPress theme." -A "Dreamsicle" -E "hello@dreamsicle.io" -u "https://www.dreamsicle.io" -L "gpl-3.0" -t "accessibility-ready,translation-ready" -W "6.1.0" -w "6.4.0" -F "test" -C "Test" -c "TEST" -e "testthemedev"

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,13 @@ const optionDefs = [
199199
type: 'string',
200200
title: 'Theme Repository URI',
201201
description: 'The theme repository URI',
202-
default: 'git+ssh://git@github.com/example/wp-theme.git',
202+
default: 'git+ssh://git@github.com:example/wp-theme.git',
203203
isRequired: true,
204204
isPrompted: true,
205205
sanitize: (value => {
206-
return zod.string().trim().url().safeParse(value).data || '';
206+
// Parse this is a string rather than a URL, because the
207+
// SSH repo URI format does not pass Zod URL validation.
208+
return zod.string().trim().safeParse(value).data || '';
207209
}),
208210
},
209211
{

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dreamsicle.io/create-wp-theme",
3-
"version": "3.3.2",
3+
"version": "3.3.3",
44
"type": "module",
55
"description": "A command line tool for creating modern, optimized WordPress themes.",
66
"main": "index.js",
@@ -10,7 +10,7 @@
1010
},
1111
"repository": {
1212
"type": "git",
13-
"url": "git+ssh://git@github.com/dreamsicle-io/create-wp-theme.git"
13+
"url": "git+ssh://git@github.com:dreamsicle-io/create-wp-theme.git"
1414
},
1515
"homepage": "https://github.com/dreamsicle-io/create-wp-theme",
1616
"bugs": {

0 commit comments

Comments
 (0)