@naturalcycles/dev-lib 18.4.0 → 18.4.6

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.
File without changes
File without changes
@@ -0,0 +1,56 @@
1
+ #
2
+ # DO NOT MODIFY, WILL BE OVERWRITTEN BY @naturalcycles/dev-lib
3
+ #
4
+ # You can put more .gitignore files in your respective subfolders (e.g `src`) to ignore additional things.
5
+ # Or PR to @naturalcycles/dev-lib if you want to ignore something generic.
6
+ #
7
+
8
+ #
9
+ # Global (all dirs)
10
+ #
11
+ *.iml
12
+ .idea
13
+ .vscode
14
+ .DS_Store
15
+ node_modules
16
+ .env
17
+ .npmrc
18
+ .classpath
19
+ .project
20
+ .settings
21
+ .externalToolBuilders
22
+ .cache
23
+ .stencil
24
+ .nuxt
25
+ .gitconfig
26
+ .lighthouseci
27
+
28
+ #
29
+ # Root dir
30
+ #
31
+ /target
32
+ /*.log
33
+ /log.txt
34
+ /.sass-cache
35
+ /.sourcemaps
36
+ /docs/.vuepress/dist
37
+ /docs/.vitepress/dist
38
+ /docs/.vitepress/cache
39
+ /loader
40
+ /.angular/cache
41
+
42
+ /coverage
43
+
44
+ /dist
45
+ /dist-cjs
46
+ /dist-esm
47
+ /tmp
48
+
49
+ # All secrets are ignored, except encrypted
50
+ /secret/**/*.*
51
+ !/secret/**/*.enc
52
+
53
+ /scripts/try.*
54
+ /logs
55
+ /www/*
56
+ !/www/.gitkeep
File without changes
package/dist/bin/up.js CHANGED
File without changes
package/dist/bin/upnc.js CHANGED
File without changes
@@ -5,3 +5,6 @@ interface RunTestOptions {
5
5
  }
6
6
  export declare function runTest(opt?: RunTestOptions): void;
7
7
  export {};
8
+ /**
9
+ * Returns true if module with given name exists in _target project's_ node_modules.
10
+ */
package/dist/test.util.js CHANGED
@@ -1,12 +1,12 @@
1
- import { existsSync } from 'node:fs';
2
1
  import { _uniq } from '@naturalcycles/js-lib';
3
- import { dimGrey, exec2 } from '@naturalcycles/nodejs-lib';
2
+ import { dimGrey, exec2, fs2 } from '@naturalcycles/nodejs-lib';
4
3
  export function runTest(opt = {}) {
5
- if (nodeModuleExists('vitest')) {
4
+ // if (nodeModuleExists('vitest')) {
5
+ if (fs2.pathExists('vitest.config.ts')) {
6
6
  runVitest(opt);
7
7
  return;
8
8
  }
9
- console.log(dimGrey(`vitest not found, skipping tests`));
9
+ console.log(dimGrey(`vitest.config.ts not found, skipping tests`));
10
10
  }
11
11
  function runVitest(opt) {
12
12
  const { integration, manual } = opt;
@@ -33,6 +33,6 @@ function runVitest(opt) {
33
33
  /**
34
34
  * Returns true if module with given name exists in _target project's_ node_modules.
35
35
  */
36
- function nodeModuleExists(moduleName) {
37
- return existsSync(`./node_modules/${moduleName}`);
38
- }
36
+ // function nodeModuleExists(moduleName: string): boolean {
37
+ // return existsSync(`./node_modules/${moduleName}`)
38
+ // }
package/package.json CHANGED
@@ -1,23 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "18.4.0",
5
- "scripts": {
6
- "prepare": "husky",
7
- "tsx-debug": "tsx scripts/testScript.ts",
8
- "dev-lib": "tsx ./src/bin/dev-lib.ts",
9
- "bt": "tsx ./src/bin/dev-lib.ts bt && tsx scripts/eslintPrintConfig.script.ts",
10
- "lbt": "tsx ./src/bin/dev-lib.ts lbt && tsx scripts/eslintPrintConfig.script.ts",
11
- "build": "tsx ./src/bin/dev-lib.ts build",
12
- "test": "tsx ./src/bin/dev-lib.ts test",
13
- "test-leaks": "tsx ./src/bin/dev-lib.ts test-leaks",
14
- "test-integration": "tsx ./src/bin/dev-lib.ts test-integration",
15
- "test-manual": "tsx ./src/bin/dev-lib.ts test-manual",
16
- "lint": "tsx ./src/bin/dev-lib.ts lint",
17
- "lint-staged-debug": "tsx ./src/bin/dev-lib.ts lint-staged",
18
- "up": "tsx ./src/bin/up.ts",
19
- "upnc": "tsx ./src/bin/upnc.ts"
20
- },
4
+ "version": "18.4.6",
21
5
  "dependencies": {
22
6
  "@biomejs/biome": "^1",
23
7
  "@commitlint/cli": "^19",
@@ -50,9 +34,7 @@
50
34
  "devDependencies": {
51
35
  "@types/mitm": "^1.3.8",
52
36
  "stylelint": "^16",
53
- "stylelint-config-standard-scss": "^14",
54
- "tsx": "^4",
55
- "vitest": "^3"
37
+ "stylelint-config-standard-scss": "^14"
56
38
  },
57
39
  "files": [
58
40
  "dist",
@@ -76,9 +58,25 @@
76
58
  },
77
59
  "repository": {
78
60
  "type": "git",
79
- "url": "https://github.com/NaturalCycles/dev-lib"
61
+ "url": "git@github.com:NaturalCycles/js-libs.git",
62
+ "directory": "packages/dev-lib"
80
63
  },
81
64
  "description": "Set of opinionated configuration files and tools for common project needs",
82
65
  "author": "Natural Cycles Team",
83
- "license": "MIT"
84
- }
66
+ "license": "MIT",
67
+ "scripts": {
68
+ "tsx-debug": "tsx scripts/testScript.ts",
69
+ "dev-lib": "tsx ./src/bin/dev-lib.ts",
70
+ "bt": "tsx ./src/bin/dev-lib.ts bt && tsx scripts/eslintPrintConfig.script.ts",
71
+ "lbt": "tsx ./src/bin/dev-lib.ts lbt && tsx scripts/eslintPrintConfig.script.ts",
72
+ "build": "tsx ./src/bin/dev-lib.ts build",
73
+ "test": "tsx ./src/bin/dev-lib.ts test",
74
+ "test-leaks": "tsx ./src/bin/dev-lib.ts test-leaks",
75
+ "test-integration": "tsx ./src/bin/dev-lib.ts test-integration",
76
+ "test-manual": "tsx ./src/bin/dev-lib.ts test-manual",
77
+ "lint": "tsx ./src/bin/dev-lib.ts lint",
78
+ "lint-staged-debug": "tsx ./src/bin/dev-lib.ts lint-staged",
79
+ "up": "tsx ./src/bin/up.ts",
80
+ "upnc": "tsx ./src/bin/upnc.ts"
81
+ }
82
+ }