1
0
mirror of https://github.com/kremalicious/astro-redirect-from.git synced 2024-11-23 18:41:38 +01:00

build tweaks

This commit is contained in:
Matthias Kretschmann 2023-09-23 14:58:29 +01:00
parent 3ca573ae10
commit df7e8bfbb6
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 8 additions and 7 deletions

View File

@ -6,11 +6,11 @@
"homepage": "https://kremalicious.com/astro-redirect-from",
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"types": "./dist/@types/index.d.ts",
"scripts": {
"build": "tsc",
"start": "tsc --watch",
"build": "rm -r ./dist && tsc",
"start": "rm -r ./dist && tsc --watch",
"test": "npm run lint && npm run typecheck && npm run build",
"lint": "eslint src/",
"typecheck": "tsc --noEmit",
@ -48,7 +48,6 @@
},
"release-it": {
"hooks": {
"before:init": "npm test",
"after:bump": "npm run changelog"
},
"git": {
@ -66,7 +65,8 @@
"astro-integration",
"redirect",
"redirect-from",
"jekyll-migration"
"jekyll-migration",
"markdown"
],
"repository": {
"type": "git",

View File

@ -6,7 +6,8 @@
"outDir": "./dist",
"types": ["vite/client"],
"declaration": true,
// ovewrite astro/tsconfigs values
"declarationDir": "./dist/@types",
// overwrite astro/tsconfigs values
"noEmit": false,
"allowImportingTsExtensions": false
}