diff --git a/packages/rules_prerender/package.json b/packages/rules_prerender/package.json index 068c6966..e9718043 100644 --- a/packages/rules_prerender/package.json +++ b/packages/rules_prerender/package.json @@ -2,5 +2,6 @@ "name": "rules_prerender", "version": "0.0.0-PLACEHOLDER", "type": "module", - "main": "./index.mjs" + "main": "./index.mjs", + "types": "./index.d.mts" } diff --git a/tsconfig.json b/tsconfig.json index 8dca7d09..53daf37a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -39,8 +39,12 @@ "moduleResolution": "Node16", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ "paths": { /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ - "rules_prerender": ["packages/rules_prerender"], // Map `rules_prerender` module to its implementation. - "@rules_prerender/*": ["packages/*"], + "rules_prerender": ["packages/rules_prerender/index.mts"], + "rules_prerender/*": ["packages/rules_prerender/*"], + "@rules_prerender/declarative_shadow_dom": ["packages/declarative_shadow_dom/index.mts"], + "@rules_prerender/declarative_shadow_dom/*": ["packages/declarative_shadow_dom/*"], + "@rules_prerender/preact": ["packages/preact/index.mts"], + "@rules_prerender/preact/*": ["packages/preact/*"], }, // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "typeRoots": [], /* List of folders to include type definitions from. */