diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8c2b96a --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}\\index.js", + "outFiles": [ + "${workspaceFolder}/**/*.js" + ], + "console": "externalTerminal" + } + ] +} \ No newline at end of file diff --git a/lib/snippets/copyright/index.ts b/lib/snippets/copyright/index.ts index c1b11a9..68f122b 100644 --- a/lib/snippets/copyright/index.ts +++ b/lib/snippets/copyright/index.ts @@ -135,7 +135,7 @@ license: ${options.license}`); private fix_file_license (data: string, filename: string): string | null { // eslint-disable-next-line max-len - const regex = /\/\*\s+\*\sCopyright[\s\S]*?(?:Created by.*?, (?[a-z]+ [0-9]+)[\s\S]*?|\s)\*\/\n{0,2}/gu; + const regex = /\/\*\s+\*\sCopyright[\s\S]*?(?:Created by.*?, (?[a-z]+ [0-9]+)[\s\S]*?|\s)\*\/\n{0,2}/gui; const shebang = /^#!.*?\n\n/gu; const shebang_line = shebang.exec (data); diff --git a/package.json b/package.json index 0865752..cc8d8b0 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ }, "files": [ "/dist/", + "/lib/", "LICENSE" ], "author": "Timo Hocker ", diff --git a/tsconfig.json b/tsconfig.json index fb57a9c..90778e5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,9 +8,9 @@ // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - // "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ + "declaration": true, /* Generates corresponding '.d.ts' file. */ + "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ "outDir": "./dist", /* Redirect output structure to the directory. */ "rootDir": "./lib", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */