Skip to content

Instantly share code, notes, and snippets.

@alexander-schranz
Last active August 1, 2022 20:23
Show Gist options
  • Select an option

  • Save alexander-schranz/a8b9a98032a9be5ccabcc6baaf6b6bc0 to your computer and use it in GitHub Desktop.

Select an option

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
{
"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