@ray-js/shared 0.10.0-beta-1 → 0.10.0-beta.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.
package/lib/file.d.ts CHANGED
@@ -1,10 +1,8 @@
1
1
  import { outputFileSync } from 'fs-extra';
2
- import { RayConfig } from '@ray-js/types';
3
2
  export declare function writeFileSync(...params: Parameters<typeof outputFileSync>): void;
4
3
  export declare function searchJSFile(fileName: string, options: {
5
4
  cwd: string;
6
5
  extensions?: string[];
7
6
  }): string;
8
7
  export declare function requireJSFile(file: string, specifier?: string): any;
9
- export declare function requireRayConfigFile(cwd: string): RayConfig;
10
8
  export declare function replaceExtension(file: string, ext?: string): string;
package/lib/file.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.replaceExtension = exports.requireRayConfigFile = exports.requireJSFile = exports.searchJSFile = exports.writeFileSync = void 0;
6
+ exports.replaceExtension = exports.requireJSFile = exports.searchJSFile = exports.writeFileSync = void 0;
7
7
  const fs_extra_1 = require("fs-extra");
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const slash_1 = __importDefault(require("slash"));
@@ -49,14 +49,6 @@ function requireJSFile(file, specifier = 'default') {
49
49
  }
50
50
  }
51
51
  exports.requireJSFile = requireJSFile;
52
- function requireRayConfigFile(cwd) {
53
- const rayConfigFile = searchJSFile('ray.config', { cwd });
54
- if (!rayConfigFile) {
55
- throw new Error('Missing configuration file (ray.config)');
56
- }
57
- return requireJSFile(rayConfigFile);
58
- }
59
- exports.requireRayConfigFile = requireRayConfigFile;
60
52
  function replaceExtension(file, ext = '') {
61
53
  return file.replace(path_1.default.extname(file), ext);
62
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/shared",
3
- "version": "0.10.0-beta-1",
3
+ "version": "0.10.0-beta.1",
4
4
  "description": "Ray shared (Node Client)",
5
5
  "keywords": [
6
6
  "ray"
@@ -23,7 +23,7 @@
23
23
  "@babel/preset-env": "^7.15.6",
24
24
  "@babel/preset-typescript": "^7.15.0",
25
25
  "@babel/register": "^7.15.3",
26
- "@ray-js/types": "^0.10.0-beta-1",
26
+ "@ray-js/types": "^0.10.0-beta.1",
27
27
  "change-case": "^4.1.2",
28
28
  "fs-extra": "^10.0.0",
29
29
  "merge": "^2.1.1",
@@ -40,6 +40,6 @@
40
40
  "email": "tuyafe@tuya.com"
41
41
  }
42
42
  ],
43
- "gitHead": "4960bc7e0c891f533b860ceb0d695e075d3ae06a",
43
+ "gitHead": "40d4e017eb29c84ede4182f61f97566a25ae93ec",
44
44
  "repository": {}
45
45
  }