@naturalcycles/dev-lib 14.0.0 → 14.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.
@@ -4,15 +4,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const tslib_1 = require("tslib");
5
5
  const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
6
6
  const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
7
+ const paths_cnst_1 = require("../cnst/paths.cnst");
7
8
  (0, nodejs_lib_1.runScript)(async () => {
8
9
  // const cwd = process.cwd()
9
10
  const localConfig = `./lint-staged.config.js`;
10
- // const sharedConfig = `${cfgDir}/lint-staged.config.js`
11
- const config = node_fs_1.default.existsSync(localConfig) ? localConfig : undefined;
12
- if (!config) {
13
- console.log(`lint-staged is skipped, because no ${localConfig} is found`);
14
- return;
15
- }
11
+ const sharedConfig = `${paths_cnst_1.cfgDir}/lint-staged.config.js`;
12
+ const config = node_fs_1.default.existsSync(localConfig) ? localConfig : sharedConfig;
13
+ // if (!config) {
14
+ // console.log(`lint-staged is skipped, because no ${localConfig} is found`)
15
+ // return
16
+ // }
16
17
  // await execWithArgs(`lint-staged`, [`--config`, config])
17
18
  // const lintStaged = require('lint-staged')
18
19
  // lint-staged is ESM since 12.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "14.0.0",
3
+ "version": "14.0.1",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "tsn-debug": "tsn testScript.ts",