1
0
mirror of https://github.com/kremalicious/astro-redirect-from.git synced 2024-11-21 17:37:02 +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", "homepage": "https://kremalicious.com/astro-redirect-from",
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"main": "dist/index.js", "main": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/@types/index.d.ts",
"scripts": { "scripts": {
"build": "tsc", "build": "rm -r ./dist && tsc",
"start": "tsc --watch", "start": "rm -r ./dist && tsc --watch",
"test": "npm run lint && npm run typecheck && npm run build", "test": "npm run lint && npm run typecheck && npm run build",
"lint": "eslint src/", "lint": "eslint src/",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
@ -48,7 +48,6 @@
}, },
"release-it": { "release-it": {
"hooks": { "hooks": {
"before:init": "npm test",
"after:bump": "npm run changelog" "after:bump": "npm run changelog"
}, },
"git": { "git": {
@ -66,7 +65,8 @@
"astro-integration", "astro-integration",
"redirect", "redirect",
"redirect-from", "redirect-from",
"jekyll-migration" "jekyll-migration",
"markdown"
], ],
"repository": { "repository": {
"type": "git", "type": "git",

View File

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