Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing block.ts to block.json and amending TS config to support
- Loading branch information
1 parent
e1ccec9
commit 947b3f1
Showing
8 changed files
with
39 additions
and
29 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
packages/js/product-editor/src/components/details-name-block/block.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 2, | ||
"name": "woocommerce/product-name", | ||
"title": "Product name", | ||
"category": "widgets", | ||
"description": "The product name.", | ||
"keywords": [ "products", "name", "title" ], | ||
"textdomain": "default", | ||
"attributes": { | ||
"name": { | ||
"type": "string" | ||
} | ||
}, | ||
"supports": { | ||
"align": false, | ||
"html": false, | ||
"multiple": false, | ||
"reusable": false, | ||
"inserter": false, | ||
"lock": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/js/product-editor/src/components/editor/init-blocks.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
{ | ||
"extends": "../tsconfig-cjs", | ||
"include": [ | ||
"**/*", | ||
"src/**/*.json" | ||
], | ||
"compilerOptions": { | ||
"outDir": "build" | ||
"outDir": "build", | ||
"resolveJsonModule": true, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
{ | ||
"extends": "../tsconfig", | ||
"include": [ | ||
"**/*", | ||
"src/**/*.json" | ||
], | ||
"compilerOptions": { | ||
"rootDir": "src", | ||
"outDir": "build-module", | ||
"declaration": true, | ||
"declarationMap": true, | ||
"declarationDir": "./build-types" | ||
"declarationDir": "./build-types", | ||
"resolveJsonModule": true, | ||
} | ||
} |