├── .eslintrc.json ├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── .gitignore ├── .prettierrc ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── dist ├── index.d.ts ├── index.js └── index.js.map ├── package-lock.json ├── package.json ├── rollup.config.js ├── src ├── index.tsx ├── styles.module.css └── typings.d.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "@typescript-eslint/parser", 3 | "plugins": ["@typescript-eslint"], 4 | "extends": ["plugin:@typescript-eslint/recommended"], 5 | "rules": { 6 | "@typescript-eslint/no-var-requires": "warn" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": true, 3 | "singleQuote": true, 4 | "printWidth": 120 5 | } 6 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, religion, or sexual identity 10 | and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | * Demonstrating empathy and kindness toward other people 21 | * Being respectful of differing opinions, viewpoints, and experiences 22 | * Giving and gracefully accepting constructive feedback 23 | * Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | * Focusing on what is best not just for us as individuals, but for the 26 | overall community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | * The use of sexualized language or imagery, and sexual attention or 31 | advances of any kind 32 | * Trolling, insulting or derogatory comments, and personal or political attacks 33 | * Public or private harassment 34 | * Publishing others' private information, such as a physical or email 35 | address, without their explicit permission 36 | * Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement at 63 | helgastogova@gmail.com. 64 | All complaints will be reviewed and investigated promptly and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series 86 | of actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or 93 | permanent ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within 113 | the community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.0, available at 119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 120 | 121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct 122 | enforcement ladder](https://github.com/mozilla/diversity). 123 | 124 | [homepage]: https://www.contributor-covenant.org 125 | 126 | For answers to common questions about this code of conduct, see the FAQ at 127 | https://www.contributor-covenant.org/faq. Translations are available at 128 | https://www.contributor-covenant.org/translations. 129 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to npm-react-typescript-template 2 | 3 | First off, thanks for taking the time to contribute! 🎉 4 | 5 | The following is a set of guidelines for contributing to this project. These are just guidelines, not rules, so feel free to propose changes to this document in a pull request. 6 | 7 | ## How Can I Contribute? 8 | 9 | ### Reporting Bugs 10 | 11 | - Ensure the bug was not already reported by searching on GitHub under [Issues](https://github.com/helgastogova/npm-react-typescript-template/issues). 12 | - If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/helgastogova/npm-react-typescript-template/issues/new). Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring. 13 | 14 | ### Suggesting Enhancements 15 | 16 | - Open a new issue and clearly outline your suggestion, explaining the context and reason behind it. If possible, also discuss potential solutions or implementations, or the steps needed to introduce the change. 17 | 18 | ### Pull Requests 19 | 20 | - Fork the repository and create your branch from `master`. 21 | - Make sure your code lints. 22 | - Submit the pull request! 23 | 24 | ## Code Style 25 | 26 | Please adhere to the existing coding style. We use Prettier and ESLint, so if possible, enable their respective plugins in your editor to get real-time feedback. The rules are automatically enforced with a pre-commit hook. 27 | 28 | ## License 29 | 30 | By contributing, you agree that your contributions will be licensed under its MIT License. 31 | 32 | ## Need help? 33 | 34 | If you need help with anything, feel free to open an issue. We're here to help you! 35 | 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Olga Stogova 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # npm-react-typescript-template 2 | 3 | This repository serves as a base for creating npm packages using React and TypeScript. It comes preconfigured with a build process and a set of recommended packages for a modern development workflow. 4 | 5 | You can read more about that repo [how to create your own npmjs package with typescript and css](https://hackernoon.com/building-efficient-npm-packages-with-react-typescript-and-css-modules-a-comprehensive-guide) 6 | 7 | ## Features 8 | 9 | - **React & TypeScript**: Write your package in modern React with TypeScript for type safety and better developer experience. 10 | - **CSS Modules**: Style your components in isolation using CSS Modules, avoiding CSS conflicts and enabling modular design. 11 | - **ESLint**: Keep your code clean and adhere to the latest best practices in JavaScript and React. 12 | - **Rollup**: Build your package efficiently with Rollup, bundling your React and TypeScript code into a single file for distribution. 13 | - **PostCSS**: Use next-gen CSS features with PostCSS, and let the build process handle compatibility with older browsers. 14 | 15 | ## Usage 16 | 17 | 1. **Clone this repository** into a directory of your choice. You can do this with `git clone https://github.com//npm-react-typescript-template.git`, replacing `` with your GitHub username. 18 | 19 | 2. **Navigate into the directory** with `cd npm-react-typescript-template`. 20 | 21 | 3. **Install the dependencies** with `npm install`. 22 | 23 | 4. **Start developing** your package! The entry point is `src/index.tsx`. 24 | 25 | ## Building the Package 26 | 27 | When you're ready to build your package for distribution, just run `npm run build`. The built package will be in the `dist` directory, ready for publishing to npm. 28 | 29 | ## Contributing 30 | 31 | This project is open for improvements and maintenance. Feel free to fork and make your own modifications. 32 | 33 | ## License 34 | 35 | MIT 36 | -------------------------------------------------------------------------------- /dist/index.d.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | type TestComponentProps = { 3 | textText?: string; 4 | }; 5 | export declare const TestComponent: React.FC; 6 | export {}; 7 | -------------------------------------------------------------------------------- /dist/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var React = require('react'); 4 | 5 | function styleInject(css, ref) { 6 | if ( ref === void 0 ) ref = {}; 7 | var insertAt = ref.insertAt; 8 | 9 | if (!css || typeof document === 'undefined') { return; } 10 | 11 | var head = document.head || document.getElementsByTagName('head')[0]; 12 | var style = document.createElement('style'); 13 | style.type = 'text/css'; 14 | 15 | if (insertAt === 'top') { 16 | if (head.firstChild) { 17 | head.insertBefore(style, head.firstChild); 18 | } else { 19 | head.appendChild(style); 20 | } 21 | } else { 22 | head.appendChild(style); 23 | } 24 | 25 | if (style.styleSheet) { 26 | style.styleSheet.cssText = css; 27 | } else { 28 | style.appendChild(document.createTextNode(css)); 29 | } 30 | } 31 | 32 | var css_248z = ".styles-module_root__Xsw1F {\n background: gold;\n}\n"; 33 | var s = {"root":"styles-module_root__Xsw1F"}; 34 | styleInject(css_248z); 35 | 36 | const TestComponent = ({ textText }) => { 37 | return React.createElement("div", { className: s.root }, textText !== null && textText !== void 0 ? textText : 'Hello!'); 38 | }; 39 | 40 | exports.TestComponent = TestComponent; 41 | //# sourceMappingURL=index.js.map 42 | -------------------------------------------------------------------------------- /dist/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/index.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React from 'react';\nimport s from './styles.module.css';\nexport const TestComponent = ({ textText }) => {\n return React.createElement(\"div\", { className: s.root }, textText !== null && textText !== void 0 ? textText : 'Hello!');\n};\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;;;ACvBY,MAAC,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK;AAC/C,IAAI,OAAO,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,KAAK,CAAC,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAC;AAC7H;;;;","x_google_ignoreList":[0]} -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "npm-react-typescript-template", 3 | "version": "1.0.7", 4 | "description": "An empty base template for publishing a React TS package to npmjs library.", 5 | "main": "dist/index.js", 6 | "module": "dist/index.es.js", 7 | "types": "dist/index.d.ts", 8 | "scripts": { 9 | "build": "rollup -c", 10 | "lint": "eslint './{src,app}/**/*.{ts,tsx}'", 11 | "size": "size-limit", 12 | "prepare": "npm run build" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "https://github.com/helgastogova/npm-react-typescript-template" 17 | }, 18 | "keywords": [ 19 | "react", 20 | "typescript", 21 | "bottom-sheet" 22 | ], 23 | "author": "Olga Stogova ", 24 | "license": "MIT", 25 | "bugs": { 26 | "url": "https://github.com/helgastogova/npm-react-typescript-template/issues" 27 | }, 28 | "homepage": "https://github.com/helgastogova/npm-react-typescript-template#readme", 29 | "peerDependencies": { 30 | "react": ">=18.2.0", 31 | "react-dom": ">=18.2.0", 32 | "typescript": ">=3.7.0" 33 | }, 34 | "devDependencies": { 35 | "@rollup/plugin-commonjs": "^25.0.4", 36 | "@rollup/plugin-node-resolve": "^15.2.1", 37 | "@rollup/plugin-typescript": "^11.1.3", 38 | "@size-limit/preset-small-lib": "^9.0.0", 39 | "@testing-library/react": "^14.0.0", 40 | "@types/react": "^18.2.22", 41 | "@types/react-dom": "^18.2.7", 42 | "@typescript-eslint/eslint-plugin": "^6.7.2", 43 | "@typescript-eslint/parser": "^6.7.2", 44 | "eslint": "^8.49.0", 45 | "eslint-config-prettier": "^9.0.0", 46 | "eslint-plugin-prettier": "^5.0.0", 47 | "eslint-plugin-react": "^7.33.2", 48 | "identity-obj-proxy": "^3.0.0", 49 | "npm": "^10.1.0", 50 | "postcss": "^8.4.30", 51 | "prettier": "^3.0.3", 52 | "react": "^18.2.0", 53 | "react-dom": "^18.2.0", 54 | "rollup": "^3.29.2", 55 | "rollup-plugin-copy": "^3.5.0", 56 | "rollup-plugin-delete": "^2.0.0", 57 | "rollup-plugin-generate-package-json": "^3.2.0", 58 | "rollup-plugin-peer-deps-external": "^2.2.4", 59 | "rollup-plugin-postcss": "^4.0.2", 60 | "size-limit": "^9.0.0", 61 | "typescript": "^5.2.2" 62 | }, 63 | "dependencies": { 64 | "@rollup/plugin-terser": "^0.4.3", 65 | "tslib": "^2.6.2" 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | const postcss = require('rollup-plugin-postcss'); 2 | const typescript = require('@rollup/plugin-typescript'); 3 | const peerDepsExternal = require('rollup-plugin-peer-deps-external'); 4 | const resolve = require('@rollup/plugin-node-resolve').default; 5 | const commonjs = require('@rollup/plugin-commonjs'); 6 | 7 | module.exports = { 8 | input: 'src/index.tsx', 9 | output: { 10 | dir: 'dist', 11 | format: 'cjs', 12 | sourcemap: true, 13 | }, 14 | plugins: [ 15 | peerDepsExternal(), 16 | resolve(), 17 | typescript(), 18 | commonjs(), 19 | postcss({ 20 | modules: true, 21 | }), 22 | ], 23 | }; 24 | -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import s from './styles.module.css'; 4 | 5 | type TestComponentProps = { 6 | textText?: string; 7 | }; 8 | 9 | export const TestComponent: React.FC = ({ textText }) => { 10 | return
{textText ?? 'Hello!'}
; 11 | }; 12 | -------------------------------------------------------------------------------- /src/styles.module.css: -------------------------------------------------------------------------------- 1 | .root { 2 | background: gold; 3 | } 4 | -------------------------------------------------------------------------------- /src/typings.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.css' { 2 | const content: { [className: string]: string }; 3 | export default content; 4 | } 5 | 6 | // eslint-disable-next-line @typescript-eslint/no-empty-interface 7 | interface SvgrComponent extends React.StatelessComponent> {} 8 | 9 | declare module '*.svg' { 10 | const svgUrl: string; 11 | const svgComponent: SvgrComponent; 12 | export default svgUrl; 13 | export { svgComponent as ReactComponent }; 14 | } 15 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "outDir": "dist", 4 | "module": "esnext", 5 | "target": "es2015", 6 | "lib": ["dom", "esnext"], 7 | "moduleResolution": "node", 8 | "jsx": "react", 9 | "sourceMap": true, 10 | "declaration": true, 11 | "esModuleInterop": true, 12 | "noImplicitReturns": true, 13 | "noImplicitThis": true, 14 | "noImplicitAny": true, 15 | "strictNullChecks": true, 16 | "noUnusedLocals": true, 17 | "noUnusedParameters": true, 18 | "allowSyntheticDefaultImports": true 19 | }, 20 | "include": ["src"], 21 | "exclude": ["node_modules", "dist"] 22 | } 23 | --------------------------------------------------------------------------------