diff --git a/lib/snippets/node/Assets.ts b/lib/snippets/node/Assets.ts index a66285c..f92ac7a 100644 --- a/lib/snippets/node/Assets.ts +++ b/lib/snippets/node/Assets.ts @@ -23,8 +23,6 @@ const gitignore = `/node_modules/ /coverage/ `; -const index = ''; - const npmrc = `@scode:registry=https://npm.scode.ovh `; @@ -41,4 +39,4 @@ const tsconfig = `{ } `; -export { eslintrc, gitignore, index, npmrc, tsconfig }; +export { eslintrc, gitignore, npmrc, tsconfig }; diff --git a/lib/snippets/node/index.ts b/lib/snippets/node/index.ts index 34d7cd4..23231d9 100644 --- a/lib/snippets/node/index.ts +++ b/lib/snippets/node/index.ts @@ -10,7 +10,7 @@ import { Input } from 'enquirer'; import { Snippet } from '../../Snippet'; import { apply_template, modify_json, run_command } from '../../Helper'; -import { eslintrc, gitignore, index, npmrc, tsconfig } from './Assets'; +import { eslintrc, gitignore, npmrc, tsconfig } from './Assets'; export default class Node implements Snippet { public async start (): Promise { @@ -27,7 +27,6 @@ export default class Node implements Snippet { await apply_template (eslintrc, path.join (folder, '.eslintrc.js')); await apply_template (npmrc, path.join (folder, '.npmrc')); - await apply_template (index, path.join (folder, 'index.js')); await apply_template (gitignore, path.join (folder, '.gitignore')); if (use_ts) await apply_template (tsconfig, path.join (folder, 'tsconfig.json'));