components-ejs 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ export declare function render(src: string, args?: {}, path?: string, ejsOptions?: {}): Promise<string>;
2
+ export declare function renderFile(path: string, args?: {}, ejsOptions?: {}): Promise<string>;
package/package.json CHANGED
@@ -2,19 +2,20 @@
2
2
  "name": "components-ejs",
3
3
  "module": "./dist/index.js",
4
4
  "main": "./dist/index.cjs",
5
+ "types": "./dist/index.d.ts",
5
6
  "description": "Adds components on top of EJS.",
6
7
  "type": "module",
7
8
  "devDependencies": {
8
9
  "@types/bun": "latest"
9
10
  },
10
11
  "peerDependencies": {
11
- "typescript": "^7"
12
+ "typescript": "latest"
12
13
  },
13
14
  "dependencies": {
14
15
  "ejs": "^6.0.1"
15
16
  },
16
17
  "scripts": {
17
- "build": "bun run build.ts"
18
+ "build": "tsc --project tsconfig.types.json && bun run build.ts"
18
19
  },
19
20
  "files": ["dist"],
20
21
  "keywords": ["ejs", "component"],
@@ -24,5 +25,5 @@
24
25
  "import": "./dist/index.js",
25
26
  "require": "./dist/index.cjs"
26
27
  },
27
- "version": "1.0.0"
28
+ "version": "1.0.2"
28
29
  }
File without changes
File without changes