Last active
August 1, 2022 20:23
-
-
Save alexander-schranz/a8b9a98032a9be5ccabcc6baaf6b6bc0 to your computer and use it in GitHub Desktop.
Recommendation for a general package.json configuration to provide file types for different bundlers
This file contains hidden or 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
| { | |
| "name": "mypackage", | |
| "dependencies": {}, | |
| "devDependencies": {}, | |
| "files": [ | |
| [ | |
| "match": "/src/**/*.ts", | |
| "type": "TypeScript", | |
| "version": "4.8", | |
| "options": { | |
| "config": "tsconfig.json" | |
| } | |
| ], | |
| [ | |
| "match": "/src/**/*.js", | |
| "type": "ECMAScript", | |
| "version": "2021" | |
| ], | |
| [ | |
| "match": "/src/**/*.scss", | |
| "type": "postcss", | |
| "version": "8", | |
| "options": { | |
| "config": "postcss.config.js" | |
| } | |
| ] | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment