diff --git a/README.md b/README.md index 59fe334..d70abcb 100644 --- a/README.md +++ b/README.md @@ -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` @@ -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` diff --git a/package.json b/package.json index 3e984e7..2a969e2 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tsconfig.json b/tsconfig.json index 32f87c8..8d2e976 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,7 @@ "importHelpers": true, "strict": true, "declaration": true, + "declarationDir": "./dist/types", "sourceMap": true, "noImplicitReturns": true, "outDir": "dist/esm",