Skip to content

Commit

Permalink
Merge pull request #122 from vivliostyle/chore/theme-updates
Browse files Browse the repository at this point in the history
fix: Add a `main` property for package.json
  • Loading branch information
spring-raining committed Feb 13, 2024
2 parents 3b38c76 + f5563ff commit 044e51e
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 8 deletions.
13 changes: 13 additions & 0 deletions .changeset/serious-pens-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@vivliostyle/theme-gutenberg': patch
'@vivliostyle/theme-academic': patch
'@vivliostyle/theme-techbook': patch
'@vivliostyle/theme-epub3j': patch
'@vivliostyle/theme-bunko': patch
'@vivliostyle/theme-slide': patch
'create-vivliostyle-theme': patch
'@vivliostyle/theme-base': patch
---

Add a `main` property for package.json.
This is useful for use with third-party libraries that are expected to have a `main` field in package.json.
3 changes: 2 additions & 1 deletion packages/@vivliostyle/theme-academic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "Academic theme",
"version": "1.0.0",
"author": "Vivliostyle <[email protected]>",
"main": "theme.css",
"scripts": {
"build": "vivliostyle build",
"preview": "vivliostyle preview",
Expand Down Expand Up @@ -46,7 +47,7 @@
"theme": {
"name": "Academic",
"category": "academic",
"style": "./theme.css",
"style": "theme.css",
"topics": [
"Academic",
"Report"
Expand Down
3 changes: 2 additions & 1 deletion packages/@vivliostyle/theme-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "Base theme and CSS toolkit for Vivliostyle themes",
"version": "1.0.0",
"author": "Vivliostyle <[email protected]>",
"main": "theme-all.css",
"scripts": {
"build": "vivliostyle build",
"preview": "vivliostyle preview",
Expand Down Expand Up @@ -44,7 +45,7 @@
"theme": {
"name": "Vivliostyle Base Theme",
"author": "Vivliostyle <[email protected]>",
"style": "./theme-all.css",
"style": "theme-all.css",
"category": "misc",
"topics": []
}
Expand Down
3 changes: 2 additions & 1 deletion packages/@vivliostyle/theme-bunko/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "文庫用のテーマ",
"version": "1.0.0",
"author": "Vivliostyle <[email protected]>",
"main": "theme.css",
"scripts": {
"build": "vivliostyle build",
"preview": "vivliostyle preview",
Expand Down Expand Up @@ -45,7 +46,7 @@
"vivliostyle": {
"theme": {
"name": "Bunko",
"style": "./theme.css",
"style": "theme.css",
"category": "novel",
"topics": [
"小説",
Expand Down
3 changes: 2 additions & 1 deletion packages/@vivliostyle/theme-epub3j/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "EPUB3 (Japanese) 日本語EPUB用テーマ(電書協EPUB3制作ガイド準拠)",
"version": "1.0.0",
"author": "Vivliostyle <[email protected]>",
"main": "theme.css",
"scripts": {
"build": "vivliostyle build",
"preview": "vivliostyle preview",
Expand Down Expand Up @@ -43,7 +44,7 @@
"vivliostyle": {
"theme": {
"name": "EPUB3 (Japanese)",
"style": "./theme.css",
"style": "theme.css",
"category": "misc",
"topics": []
}
Expand Down
3 changes: 2 additions & 1 deletion packages/@vivliostyle/theme-gutenberg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "Book theme for latin font",
"version": "1.0.0",
"author": "Vivliostyle <[email protected]>",
"main": "theme.css",
"scripts": {
"build": "vivliostyle build",
"preview": "vivliostyle preview",
Expand Down Expand Up @@ -38,7 +39,7 @@
"theme": {
"name": "Gutenberg",
"author": "Vivliostyle <[email protected]>",
"style": "./theme.css",
"style": "theme.css",
"category": "novel",
"topics": []
}
Expand Down
3 changes: 2 additions & 1 deletion packages/@vivliostyle/theme-slide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "Slide theme",
"version": "1.0.0",
"author": "Vivliostyle <[email protected]>",
"main": "theme.css",
"scripts": {
"build": "vivliostyle build",
"preview": "vivliostyle preview",
Expand Down Expand Up @@ -46,7 +47,7 @@
"theme": {
"name": "Slide",
"category": "misc",
"style": "./theme.css",
"style": "theme.css",
"topics": [
"Slide"
]
Expand Down
3 changes: 2 additions & 1 deletion packages/@vivliostyle/theme-techbook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "Techbook (技術同人誌) theme",
"version": "1.0.0",
"author": "Vivliostyle <[email protected]>",
"main": "theme.css",
"scripts": {
"build": "vivliostyle build",
"preview": "vivliostyle preview",
Expand Down Expand Up @@ -46,7 +47,7 @@
"theme": {
"name": "Techbook",
"category": "misc",
"style": "./theme.css",
"style": "theme.css",
"topics": [
"Techbook"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "{{description}}",
"version": "0.1.0",
"author": "{{contact}}",
"main": "theme.css",
"scripts": {
"build": "vivliostyle build",
"preview": "vivliostyle preview",
Expand Down Expand Up @@ -37,7 +38,7 @@
"theme": {
"name": "{{capital name space=true}}",
"author": "{{contact}}",
"style": "./theme.css",
"style": "theme.css",
"category": "{{category}}",
"topics": []
}
Expand Down

0 comments on commit 044e51e

Please sign in to comment.