@mashka818/exam-de-template 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@
11
11
 
12
12
  mkdir C:\DE\work
13
13
  cd C:\DE\work
14
- npx @mashka818/exam-de-template@1.0.0 init
14
+ npx @mashka818/exam-de-template@1.0.1 init
15
15
 
16
16
  Появятся:
17
17
  exam-project\ — правите и запускаете ЗДЕСЬ
@@ -0,0 +1,8 @@
1
+ # Скопируйте этот файл в .env и подставьте свои значения
2
+
3
+ PORT=3001
4
+
5
+ # postgresql://ЛОГИН:ПАРОЛЬ@ХОСТ:ПОРТ/ИМЯ_БАЗЫ
6
+ DATABASE_URL=postgresql://postgres:postgres@localhost:5432/moy_ne_sam
7
+
8
+ JWT_SECRET=change-me-on-exam-day-use-long-random-string
@@ -32,7 +32,8 @@ function shouldSkipFile(relPath) {
32
32
  const base = path.basename(relPath);
33
33
  if (SKIP_ROOT_FILES.has(base)) return true;
34
34
  if (base.endsWith('.tgz')) return true;
35
- if (relPath.replace(/\\/g, '/').includes('server/.env')) return true;
35
+ const norm = relPath.replace(/\\/g, '/');
36
+ if (norm === 'server/.env') return true;
36
37
  return false;
37
38
  }
38
39
 
@@ -0,0 +1,8 @@
1
+ # Скопируйте этот файл в .env и подставьте свои значения
2
+
3
+ PORT=3001
4
+
5
+ # postgresql://ЛОГИН:ПАРОЛЬ@ХОСТ:ПОРТ/ИМЯ_БАЗЫ
6
+ DATABASE_URL=postgresql://postgres:postgres@localhost:5432/moy_ne_sam
7
+
8
+ JWT_SECRET=change-me-on-exam-day-use-long-random-string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mashka818/exam-de-template",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Шаблон ДЭ: exam-project + exam-guides. Экзамен: npx @mashka818/exam-de-template init",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -32,7 +32,8 @@ function shouldSkipFile(relPath) {
32
32
  const base = path.basename(relPath);
33
33
  if (SKIP_ROOT_FILES.has(base)) return true;
34
34
  if (base.endsWith('.tgz')) return true;
35
- if (relPath.replace(/\\/g, '/').includes('server/.env')) return true;
35
+ const norm = relPath.replace(/\\/g, '/');
36
+ if (norm === 'server/.env') return true;
36
37
  return false;
37
38
  }
38
39