Skip to content

Commit

Permalink
updated the location of types index.d.ts in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
“talatkuyuk” committed Jan 27, 2023
1 parent c7b3587 commit 12a3a00
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ It is a **boolean** option for not adding any `title node`. If the option is pro

#### `titleTagName`

It is a **string** option for providing a custom HTML tag name for the `title node` other than `div`.
It is a **string** option for providing custom HTML tag name for the `title node` other than `div`.

#### `titleClassName`

It is a **string** option for providing a custom className other than `remark-code-title` for the `title node`.
It is a **string** option for providing custom className for the `title node` other than `remark-code-title` .

#### `titleProperties`

Expand All @@ -136,11 +136,11 @@ It is a **boolean** option for not adding any `container node`. If the option is

#### `containerTagName`

It is a **string** option for providing a custom HTML tag name for the `container node` other than `div`.
It is a **string** option for providing custom HTML tag name for the `container node` other than `div`.

#### `containerClassName`

It is a **string** option for providing a custom className other than `remark-code-container` for the `container node`.
It is a **string** option for providing custom className for the `container node` other than `remark-code-container`.

#### `containerProperties`

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "remark-flexible-code-titles",
"version": "1.0.6",
"version": "1.0.7",
"description": "Remark plugin to add titles or/and containers for the code blocks with customizable properties",
"type": "module",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"types": "./types/index.d.ts",
"scripts": {
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"importHelpers": true,
"strict": true,
"declaration": true,
"declarationDir": "./dist/types",
"sourceMap": true,
"noImplicitReturns": true,
"outDir": "dist/esm",
Expand Down

0 comments on commit 12a3a00

Please sign in to comment.