-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
breaking: svelte-preprocess 6 (#640)
- breaking: remove TS mixed imports support, require TS 5.0 or higher - breaking: require Svelte 4+, Node 18+ - breaking: add exports map - fix: adjust type import - fix: remove pug types from dependencies - fix: allow TS filename to be undefined, fixes #488 - chore: replace jest with vitest - chore: relax eslint config - chore: bump peer deps, fixes #553, closes#635 - chore: update CI, closes #638 - chore: get rid of magic-string as it's no longer used, bump node types - docs: migration info
- Loading branch information
1 parent
aa36477
commit 133472c
Showing
42 changed files
with
7,176 additions
and
5,551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,20 @@ | |
"license": "MIT", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"description": "A Svelte preprocessor wrapper with baked-in support for commonly used preprocessors", | ||
"author": "Christian Kaisermann <[email protected]>", | ||
"repository": "https://github.com/sveltejs/svelte-preprocess", | ||
"keywords": [ | ||
"svelte", | ||
"preprocess", | ||
"typescript", | ||
"less", | ||
"stylus", | ||
"sass", | ||
|
@@ -18,9 +26,9 @@ | |
"coffeescript" | ||
], | ||
"engines": { | ||
"node": ">= 16.0.0" | ||
"node": ">= 18.0.0" | ||
}, | ||
"packageManager": "pnpm@8.12.1", | ||
"packageManager": "pnpm@9.3.0", | ||
"volta": { | ||
"node": "20.10.0" | ||
}, | ||
|
@@ -31,7 +39,7 @@ | |
"prebuild": "node scripts.js rmrf ./dist", | ||
"build": "tsc --build tsconfig.build.json", | ||
"dev": "pnpm build -w", | ||
"test": "jest", | ||
"test": "vitest run", | ||
"lint": "eslint --ext js,ts .", | ||
"format": "prettier --write \"**/*.{ts,js,json}\"", | ||
"postinstall": "echo \"[svelte-preprocess] Don't forget to install the preprocessors packages that will be used: sass, stylus, less, postcss & postcss-load-config, coffeescript, pug, etc...\"", | ||
|
@@ -46,15 +54,6 @@ | |
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"lint-staged": { | ||
"*.{ts,js,tsx,jsx}": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
], | ||
"*.json": [ | ||
"prettier --write" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.23.6", | ||
"@babel/preset-env": "^7.23.6", | ||
|
@@ -63,48 +62,43 @@ | |
"@kiwi/eslint-config": "^2.0.2", | ||
"@kiwi/prettier-config": "^2.0.2", | ||
"@types/babel__core": "^7.20.5", | ||
"@types/jest": "^27.5.2", | ||
"@types/node": "^14.18.34", | ||
"@types/node": "^18.0.0", | ||
"@types/pug": "^2.0.6", | ||
"@types/stylus": "^0.48.38", | ||
"autoprefixer": "^10.4.16", | ||
"babel-minify": "^0.5.2", | ||
"coffeescript": "^2.7.0", | ||
"conventional-changelog-cli": "^2.2.2", | ||
"eslint": "^8.29.0", | ||
"jest": "^29.5.0", | ||
"less": "^3.13.1", | ||
"lint-staged": "^10.5.4", | ||
"postcss": "^8.4.32", | ||
"postcss-easy-import": "^4.0.0", | ||
"postcss-load-config": "^3.1.4", | ||
"prettier": "^2.8.1", | ||
"prettier": "^3.3.2", | ||
"pug": "^3.0.2", | ||
"sass": "^1.56.2", | ||
"stylus": "^0.55.0", | ||
"sugarss": "^4.0.0", | ||
"svelte": "^3.54.0", | ||
"ts-jest": "^29.1.1", | ||
"typescript": "^5.0.2" | ||
"svelte": "^4.0.0", | ||
"typescript": "^5.0.2", | ||
"vitest": "^1.6.0" | ||
}, | ||
"dependencies": { | ||
"@types/pug": "^2.0.6", | ||
"detect-indent": "^6.1.0", | ||
"magic-string": "^0.30.5", | ||
"sorcery": "^0.11.0", | ||
"strip-indent": "^3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^7.10.2", | ||
"coffeescript": "^2.5.1", | ||
"less": "^3.11.3 || ^4.0.0", | ||
"postcss": "^7 || ^8", | ||
"postcss-load-config": "^2.1.0 || ^3.0.0 || ^4.0.0 || ^5.0.0", | ||
"postcss-load-config": ">=3", | ||
"pug": "^3.0.0", | ||
"sass": "^1.26.8", | ||
"stylus": "^0.55.0", | ||
"stylus": ">=0.55", | ||
"sugarss": "^2.0.0 || ^3.0.0 || ^4.0.0", | ||
"svelte": "^3.23.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0", | ||
"typescript": ">=3.9.5 || ^4.0.0 || ^5.0.0" | ||
"svelte": "^4.0.0 || ^5.0.0-next.100 || ^5.0.0", | ||
"typescript": "^5.0.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@babel/core": { | ||
|
Oops, something went wrong.