chore: adjust typings dir

This commit is contained in:
fupeng1
2024-01-14 20:55:59 +08:00
committed by Jun Yang
parent 85f5b327fa
commit 3632623456
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
"./dist/liquid.node.cjs.js": "./dist/liquid.browser.umd.js", "./dist/liquid.node.cjs.js": "./dist/liquid.browser.umd.js",
"./dist/liquid.node.esm.js": "./dist/liquid.browser.esm.js" "./dist/liquid.node.esm.js": "./dist/liquid.browser.esm.js"
}, },
"types": "dist/src/index.d.ts", "types": "dist/index.d.ts",
"engines": { "engines": {
"node": ">=14" "node": ">=14"
}, },
+2 -1
View File
@@ -22,7 +22,8 @@ const tsconfig = (target) => ({
exclude: ['test', 'benchmark'], exclude: ['test', 'benchmark'],
compilerOptions: { compilerOptions: {
target, target,
module: 'ES2015' module: 'ES2015',
rootDir: 'src'
} }
} }
}) })