From 36326234566a251cc7e616cab6b528fed4a6f9ca Mon Sep 17 00:00:00 2001 From: fupeng1 Date: Fri, 12 Jan 2024 18:24:03 +0800 Subject: [PATCH] chore: adjust typings dir --- package.json | 2 +- rollup.config.mjs | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5968535c1a..97c898b90e 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "./dist/liquid.node.cjs.js": "./dist/liquid.browser.umd.js", "./dist/liquid.node.esm.js": "./dist/liquid.browser.esm.js" }, - "types": "dist/src/index.d.ts", + "types": "dist/index.d.ts", "engines": { "node": ">=14" }, diff --git a/rollup.config.mjs b/rollup.config.mjs index fc82e23f08..87b6edbce1 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -18,11 +18,12 @@ const treeshake = { const tsconfig = (target) => ({ check: true, tsconfigOverride: { - include: [ 'src' ], - exclude: [ 'test', 'benchmark' ], + include: ['src'], + exclude: ['test', 'benchmark'], compilerOptions: { target, - module: 'ES2015' + module: 'ES2015', + rootDir: 'src' } } })