@naturalcycles/dev-lib 15.0.2 → 15.0.4

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.
@@ -18,6 +18,12 @@ const commands = [
18
18
  desc: 'Clean ./dist, run "build-copy" then tsc with emit, using tsconfig.prod.json',
19
19
  cliOnly: true,
20
20
  },
21
+ {
22
+ name: 'build-copy',
23
+ fn: build_util_1.buildCopy,
24
+ desc: 'Copy the non-ts files from ./src to ./dist',
25
+ cliOnly: true,
26
+ },
21
27
  {
22
28
  name: 'build-esm-cjs',
23
29
  fn: build_util_1.buildEsmCjs,
@@ -9,3 +9,4 @@ export declare function runTSCInFolders(tsconfigPaths: string[], args?: string[]
9
9
  */
10
10
  export declare function runTSCInFolder(tsconfigPath: string, args?: string[]): Promise<void>;
11
11
  export declare function runTSCProd(): Promise<void>;
12
+ export declare function buildCopy(): void;
@@ -5,6 +5,7 @@ exports.buildProd = buildProd;
5
5
  exports.runTSCInFolders = runTSCInFolders;
6
6
  exports.runTSCInFolder = runTSCInFolder;
7
7
  exports.runTSCProd = runTSCProd;
8
+ exports.buildCopy = buildCopy;
8
9
  const tslib_1 = require("tslib");
9
10
  const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
10
11
  const js_lib_1 = require("@naturalcycles/js-lib");
package/dist/test.util.js CHANGED
@@ -19,7 +19,7 @@ function runJest(opt = {}) {
19
19
  const { node } = process.versions;
20
20
  const cpuLimit = Number(CPU_LIMIT) || undefined;
21
21
  const { integration, manual, leaks } = opt;
22
- const processArgs = process.argv.slice(2);
22
+ const processArgs = process.argv.slice(3);
23
23
  let jestConfig;
24
24
  if (manual) {
25
25
  jestConfig = getJestManualConfigPath();
@@ -129,7 +129,7 @@ function getJestManualConfigPath() {
129
129
  * Detects if jest is run with all tests, or with specific tests.
130
130
  */
131
131
  function isRunningAllTests() {
132
- const args = process.argv.slice(2);
132
+ const args = process.argv.slice(3);
133
133
  const positionalArgs = args.filter(a => !a.startsWith('-'));
134
134
  // console.log(process.argv, positionalArgs)
135
135
  return !positionalArgs.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "15.0.2",
3
+ "version": "15.0.4",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "tsn-debug": "tsn testScript.ts",