├── .prettierrc ├── .npmignore ├── .github ├── dependabot.yml └── workflows │ └── main.yml ├── .eslintrc.json ├── eslint.config.mts ├── LICENSE ├── package.json ├── .gitignore ├── README.md ├── src └── index.ts └── tsconfig.json /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "trailingComma": "all" 4 | } -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | src 3 | .eslintrc.json 4 | .prettierrc 5 | tsconfig.json 6 | .idea 7 | .github 8 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "npm" # See documentation for possible values 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "weekly" 12 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "@typescript-eslint/parser", 3 | "parserOptions": { 4 | "project": "tsconfig.json", 5 | "sourceType": "module" 6 | }, 7 | "plugins": ["@typescript-eslint/eslint-plugin"], 8 | "extends": [ 9 | "plugin:@typescript-eslint/eslint-recommended", 10 | "plugin:@typescript-eslint/recommended", 11 | "prettier" 12 | ], 13 | "root": true, 14 | "env": { 15 | "node": true, 16 | "jest": true 17 | }, 18 | "rules": { 19 | "@typescript-eslint/interface-name-prefix": "off", 20 | "@typescript-eslint/explicit-function-return-type": "off", 21 | "@typescript-eslint/no-explicit-any": "off" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /eslint.config.mts: -------------------------------------------------------------------------------- 1 | import js from '@eslint/js'; 2 | import globals from 'globals'; 3 | import tseslint from 'typescript-eslint'; 4 | import json from '@eslint/json'; 5 | import markdown from '@eslint/markdown'; 6 | import { defineConfig } from 'eslint/config'; 7 | import eslintConfigPrettier from 'eslint-config-prettier/flat'; 8 | 9 | export default defineConfig([ 10 | { 11 | files: ['**/*.{js,mjs,cjs,ts,mts,cts}'], 12 | plugins: { js }, 13 | extends: ['js/recommended'], 14 | languageOptions: { globals: globals.node }, 15 | }, 16 | tseslint.configs.recommended, 17 | { files: ['**/*.json'], plugins: { json }, language: 'json/jsonc', extends: ['json/recommended'] }, 18 | { 19 | files: ['**/*.md'], 20 | plugins: { markdown }, 21 | language: 'markdown/gfm', 22 | extends: ['markdown/recommended'], 23 | }, 24 | { 25 | ignores: ['node_modules', 'dist', 'package-lock.json'], 26 | }, 27 | eslintConfigPrettier, 28 | ]); 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Taymuraz Kaytmazov 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 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Test and Publish 2 | on: push 3 | 4 | jobs: 5 | test: 6 | runs-on: ubuntu-24.04 7 | 8 | strategy: 9 | matrix: 10 | node-version: [20.x, 22.x, 24.x] 11 | 12 | steps: 13 | - uses: actions/checkout@v4 14 | - uses: actions/cache@v4 15 | with: 16 | path: ~/.npm 17 | key: ${{ runner.os }}-node-${{matrix.node-version}}-${{ hashFiles('**/package-lock.json') }} 18 | restore-keys: | 19 | ${{ runner.os }}-node-${{matrix.node-version}} 20 | - name: Use Node.js ${{ matrix.node-version }} 21 | uses: actions/setup-node@v4 22 | with: 23 | node-version: ${{ matrix.node-version }} 24 | - run: npm ci 25 | - run: npm run build --if-present 26 | - run: npm test --if-present 27 | publish: 28 | runs-on: ubuntu-24.04 29 | needs: test 30 | if: startsWith(github.ref, 'refs/tags/v') 31 | steps: 32 | - uses: actions/checkout@v4 33 | - name: Use Node.js 34 | uses: actions/setup-node@v4 35 | with: 36 | node-version: 24 37 | registry-url: "https://registry.npmjs.org" 38 | - run: npm ci 39 | - run: npm run build --if-present 40 | - run: npm publish 41 | env: 42 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 43 | CI: true 44 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "run-script-webpack-plugin", 3 | "version": "0.2.3", 4 | "description": "Automatically run your script once Webpack's build completes.", 5 | "main": "dist/index.js", 6 | "types": "dist/index.d.ts", 7 | "engines": { 8 | "node": ">=20" 9 | }, 10 | "scripts": { 11 | "prepare": "tsc", 12 | "lint": "eslint .", 13 | "test": "eslint src" 14 | }, 15 | "repository": { 16 | "type": "git", 17 | "url": "git+https://github.com/atassis/run-script-webpack-plugin.git" 18 | }, 19 | "keywords": [ 20 | "webpack", 21 | "plugin", 22 | "typescript", 23 | "server", 24 | "start", 25 | "watch", 26 | "restart", 27 | "express" 28 | ], 29 | "author": "Taymuraz Kaytmazov (https://github.com/atassis)", 30 | "license": "MIT", 31 | "bugs": { 32 | "url": "https://github.com/atassis/run-script-webpack-plugin/issues" 33 | }, 34 | "homepage": "https://github.com/atassis/run-script-webpack-plugin#readme", 35 | "devDependencies": { 36 | "@eslint/css": "^0.14.1", 37 | "@eslint/eslintrc": "^3.3.3", 38 | "@eslint/js": "^9.39.1", 39 | "@eslint/json": "^0.14.0", 40 | "@eslint/markdown": "^7.5.1", 41 | "@types/node": "^24.0.10", 42 | "eslint": "^9.39.1", 43 | "eslint-config-prettier": "^10.1.5", 44 | "globals": "^16.5.0", 45 | "jiti": "^2.6.1", 46 | "prettier": "^3.6.2", 47 | "typescript": "^5.9.3", 48 | "typescript-eslint": "^8.48.1" 49 | }, 50 | "peerDependencies": { 51 | "webpack": "^5.0.0" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # TypeScript v1 declaration files 45 | typings/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | 75 | # parcel-bundler cache (https://parceljs.org/) 76 | .cache 77 | 78 | # Next.js build output 79 | .next 80 | 81 | # Nuxt.js build / generate output 82 | .nuxt 83 | dist 84 | 85 | # Gatsby files 86 | .cache/ 87 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 88 | # https://nextjs.org/blog/next-9-1#public-directory-support 89 | # public 90 | 91 | # vuepress build output 92 | .vuepress/dist 93 | 94 | # Serverless directories 95 | .serverless/ 96 | 97 | # FuseBox cache 98 | .fusebox/ 99 | 100 | # DynamoDB Local files 101 | .dynamodb/ 102 | 103 | # TernJS port file 104 | .tern-port 105 | 106 | dist 107 | .idea 108 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # run-script-webpack-plugin 2 | 3 | [![npm][npm]][npm-url] 4 | [![node][node]][node-url] 5 | [![deps][deps]][deps-url] 6 | [![licenses][licenses]][licenses-url] 7 | [![downloads][downloads]][downloads-url] 8 | [![size][size]][size-url] 9 | > Automatically run your script once Webpack's build completes. 10 | 11 | NOTE: mostly copied from [this](https://github.com/ericclemmons/start-server-webpack-plugin) repo, but strongly typed from scratch 12 | 13 | ## Installation 14 | 15 | ```shell 16 | npm i -D run-script-webpack-plugin 17 | ``` 18 | 19 | ## Usage 20 | 21 | In `webpack.config.ts`: 22 | 23 | ```js 24 | import { RunScriptWebpackPlugin } from "run-script-webpack-plugin"; 25 | 26 | export default { 27 | plugins: [ 28 | ... 29 | // Only use this in DEVELOPMENT 30 | new RunScriptWebpackPlugin({ 31 | name: 'server.js', 32 | nodeArgs: ['--inspect'], // allow debugging 33 | args: ['scriptArgument1', 'scriptArgument2'], // pass args to script 34 | autoRestart: true | false, // Should the script auto-restart after emit. Defaults to true. This should be set to false if using HMR 35 | signal: false | true | 'SIGUSR2', // signal to send for HMR (defaults to `false`, uses 'SIGUSR2' if `true`) 36 | keyboard: true | false, // Allow typing 'rs' to restart the server. default: only if NODE_ENV is 'development' 37 | cwd: undefined | string, // set a current working directory for the child process default: current cwd 38 | }), 39 | ], 40 | } 41 | ``` 42 | 43 | The `name` argument in `RunScriptWebpackPluginOptions` refers to the built asset, which is named by the output options of webpack (in the example the entry `server` becomes `server.js`. This way, the plugin knows which entry to start in case there are several. 44 | 45 | If you don't pass a name, the plugin will tell you the available names. 46 | 47 | You can use `nodeArgs` and `args` to pass arguments to node and your script, respectively. For example, you can use this to use the node debugger. 48 | 49 | To use Hot Module Reloading with your server code, set Webpack to "hot" mode and include the `webpack/hot/poll` or `webpack/hot/signal` modules. Make sure they are part of your server bundle, e.g. if you are using `node-externals` put them in your whitelist. The latter module requires the `signal` option. 50 | 51 | ## License 52 | 53 | > Refer to [LICENSE](LICENSE) file 54 | 55 | ## Contributing 56 | 57 | * Use [conventional commmits](https://conventionalcommits.org/) 58 | * There is a eslint config in the repo. Check if no new errors are added. (dont change the config inside ur PRs) 59 | 60 | [npm]: https://img.shields.io/npm/v/run-script-webpack-plugin.svg 61 | [npm-url]: https://npmjs.com/package/run-script-webpack-plugin 62 | [node]: https://img.shields.io/node/v/run-script-webpack-plugin.svg 63 | [node-url]: https://nodejs.org 64 | [deps]: https://img.shields.io/david/atassis/run-script-webpack-plugin.svg 65 | [deps-url]: https://david-dm.org/atassis/run-script-webpack-plugin 66 | [licenses-url]: http://opensource.org/licenses/MIT 67 | [licenses]: https://img.shields.io/npm/l/run-script-webpack-plugin.svg 68 | [downloads-url]: https://npmcharts.com/compare/run-script-webpack-plugin?minimal=true 69 | [downloads]: https://img.shields.io/npm/dm/run-script-webpack-plugin.svg 70 | [size-url]: https://packagephobia.com/result?p=run-script-webpack-plugin 71 | [size]: https://packagephobia.com/badge?p=run-script-webpack-plugin 72 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import { ChildProcess, fork } from 'child_process'; 2 | import { Compilation, Compiler, WebpackPluginInstance } from 'webpack'; 3 | 4 | export type RunScriptWebpackPluginOptions = { 5 | autoRestart?: boolean; 6 | args: string[]; 7 | cwd?: string; 8 | env?: NodeJS.ProcessEnv; 9 | keyboard: boolean; 10 | name?: string; 11 | nodeArgs: string[]; 12 | restartable?: boolean; 13 | signal: boolean | string; 14 | }; 15 | 16 | function getSignal(signal: string | boolean) { 17 | // allow users to disable sending a signal by setting to `false`... 18 | if (signal === false) return; 19 | if (signal === true) return 'SIGUSR2'; 20 | return signal; 21 | } 22 | 23 | export class RunScriptWebpackPlugin implements WebpackPluginInstance { 24 | private readonly options: RunScriptWebpackPluginOptions; 25 | 26 | private worker?: ChildProcess; 27 | 28 | private _entrypoint?: string; 29 | 30 | constructor(options: Partial = {}) { 31 | this.options = { 32 | autoRestart: true, 33 | signal: false, 34 | // Only listen on keyboard in development, so the server doesn't hang forever 35 | keyboard: process.env.NODE_ENV === 'development', 36 | ...options, 37 | args: [...(options.args || [])], 38 | nodeArgs: options.nodeArgs || process.execArgv, 39 | }; 40 | 41 | if (this.options.restartable) { 42 | this._enableRestarting(); 43 | } 44 | } 45 | 46 | private _enableRestarting(): void { 47 | if (this.options.keyboard) { 48 | process.stdin.setEncoding('utf8'); 49 | process.stdin.on('data', (data: string) => { 50 | if (data.trim() === 'rs') { 51 | this._restartServer(); 52 | } 53 | }); 54 | } 55 | } 56 | 57 | private _restartServer(): void { 58 | console.log('Restarting app...'); 59 | 60 | this._stopServer(); 61 | 62 | this._startServer(); 63 | } 64 | 65 | private afterEmit = (compilation: Compilation, cb: () => void): void => { 66 | if (this.worker && this.worker.connected && this.worker?.pid) { 67 | if (this.options.autoRestart) { 68 | this._restartServer(); 69 | cb(); 70 | return; 71 | } 72 | 73 | cb(); 74 | return; 75 | } 76 | 77 | this.startServer(compilation, cb); 78 | }; 79 | 80 | apply = (compiler: Compiler): void => { 81 | compiler.hooks.afterEmit.tapAsync( 82 | { name: 'RunScriptPlugin' }, 83 | this.afterEmit, 84 | ); 85 | }; 86 | 87 | private startServer = (compilation: Compilation, cb: () => void): void => { 88 | const { assets, compiler } = compilation; 89 | const { options } = this; 90 | let name; 91 | const names = Object.keys(assets); 92 | if (options.name) { 93 | name = options.name; 94 | if (!assets[name]) { 95 | console.error( 96 | `Entry ${name} not found. Try one of: ${names.join(' ')}`, 97 | ); 98 | } 99 | } else { 100 | name = names[0]; 101 | if (names.length > 1) { 102 | console.log( 103 | `More than one entry built, selected ${name}. All names: ${names.join( 104 | ' ', 105 | )}`, 106 | ); 107 | } 108 | } 109 | if (!compiler.options.output || !compiler.options.output.path) { 110 | throw new Error('output.path should be defined in webpack config!'); 111 | } 112 | 113 | this._entrypoint = `${compiler.options.output.path}/${name}`; 114 | this._startServer(cb); 115 | }; 116 | 117 | private _startServer(cb?: () => void): void { 118 | const { args, nodeArgs, cwd, env } = this.options; 119 | if (!this._entrypoint) throw new Error('run-script-webpack-plugin requires an entrypoint.'); 120 | 121 | const child = fork(this._entrypoint, args, { 122 | execArgv: nodeArgs, 123 | stdio: 'inherit', 124 | cwd, 125 | env, 126 | }); 127 | 128 | setTimeout(() => { 129 | this.worker = child; 130 | cb?.() 131 | }, 0); 132 | } 133 | 134 | private _stopServer() { 135 | const signal = getSignal(this.options.signal); 136 | if (this.worker?.pid) { 137 | process.kill(this.worker.pid, signal); 138 | } 139 | }; 140 | } 141 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /* Visit https://aka.ms/tsconfig.json to read more about this file */ 4 | 5 | /* Basic Options */ 6 | // "incremental": true, /* Enable incremental compilation */ 7 | "target": "ES2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ 8 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ 9 | // "lib": [], /* Specify library files to be included in the compilation. */ 10 | // "allowJs": true, /* Allow javascript files to be compiled. */ 11 | // "checkJs": true, /* Report errors in .js files. */ 12 | // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ 13 | "declaration": true, /* Generates corresponding '.d.ts' file. */ 14 | // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ 15 | // "sourceMap": true, /* Generates corresponding '.map' file. */ 16 | // "outFile": "./", /* Concatenate and emit output to single file. */ 17 | "outDir": "./dist", /* Redirect output structure to the directory. */ 18 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 19 | // "composite": true, /* Enable project compilation */ 20 | // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ 21 | // "removeComments": true, /* Do not emit comments to output. */ 22 | // "noEmit": true, /* Do not emit outputs. */ 23 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */ 24 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ 25 | // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ 26 | 27 | /* Strict Type-Checking Options */ 28 | "strict": true, /* Enable all strict type-checking options. */ 29 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 30 | // "strictNullChecks": true, /* Enable strict null checks. */ 31 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ 32 | // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ 33 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ 34 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ 35 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ 36 | 37 | /* Additional Checks */ 38 | // "noUnusedLocals": true, /* Report errors on unused locals. */ 39 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 40 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 41 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 42 | // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */ 43 | 44 | /* Module Resolution Options */ 45 | // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ 46 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ 47 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ 48 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ 49 | // "typeRoots": [], /* List of folders to include type definitions from. */ 50 | // "types": [], /* Type declaration files to be included in compilation. */ 51 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ 52 | "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 53 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ 54 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ 55 | 56 | /* Source Map Options */ 57 | // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 58 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ 59 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 60 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 61 | 62 | /* Experimental Options */ 63 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 64 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 65 | 66 | /* Advanced Options */ 67 | "skipLibCheck": true, /* Skip type checking of declaration files. */ 68 | "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ 69 | }, 70 | "include": ["src"] 71 | } 72 | --------------------------------------------------------------------------------