sheet-i18n 0.1.6 → 0.1.7

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.
@@ -1,9 +1,9 @@
1
1
 
2
2
  
3
- > sheet-i18n@0.1.6 build /Users/choeucheol/Documents/dev/project/sheet-i18n/packages/sheet-i18n
3
+ > sheet-i18n@0.1.7 build /Users/choeucheol/Documents/dev/project/sheet-i18n/packages/sheet-i18n
4
4
  > tsup
5
5
 
6
- CLI Building entry: src/index.ts, src/exporter/index.ts
6
+ CLI Building entry: src/index.ts
7
7
  CLI Using tsconfig: tsconfig.json
8
8
  CLI tsup v6.7.0
9
9
  CLI Using tsup config: /Users/choeucheol/Documents/dev/project/sheet-i18n/packages/sheet-i18n/tsup.config.ts
@@ -11,14 +11,10 @@
11
11
  CLI Cleaning output folder
12
12
  CJS Build start
13
13
  ESM Build start
14
- ESM dist/index.mjs 102.00 B
15
- ESM dist/exporter/index.mjs 97.00 B
16
- ESM dist/chunk-KN4CC7MI.mjs 1.34 MB
17
- ESM ⚡️ Build success in 158ms
18
- CJS dist/index.js 1.34 MB
19
- CJS dist/exporter/index.js 1.34 MB
20
- CJS ⚡️ Build success in 158ms
14
+ ESM dist/index.mjs 1.34 MB
15
+ ESM ⚡️ Build success in 186ms
16
+ CJS dist/index.js 1.34 MB
17
+ CJS ⚡️ Build success in 186ms
21
18
  DTS Build start
22
- DTS ⚡️ Build success in 383ms
23
- DTS dist/exporter/index.d.ts 1.10 KB
24
- DTS dist/index.d.ts 53.00 B
19
+ DTS ⚡️ Build success in 356ms
20
+ DTS dist/index.d.ts 949.00 B
package/dist/index.d.ts CHANGED
@@ -1 +1,29 @@
1
- export { i as exporter } from './exporter/index.js';
1
+ interface GoogleSheetCredentials {
2
+ sheetId: string;
3
+ clientEmail: string;
4
+ privateKey: string;
5
+ }
6
+ type RowNumber = number;
7
+
8
+ interface GoogleSheetExporterPreRequisites {
9
+ credentials: GoogleSheetCredentials;
10
+ defaultLocale: string;
11
+ }
12
+ interface GoogleSheetExporterConfig {
13
+ /**@param headerStartRowNumber: row number of header */
14
+ headerStartRowNumber?: RowNumber;
15
+ /**@param ignoredSheets: sheets to be ignored */
16
+ ignoredSheets?: string[];
17
+ /**@param exportPath: path to export(run only in node.js environment) */
18
+ exportPath?: string;
19
+ }
20
+ interface GoogleSheetExporterParams extends GoogleSheetExporterPreRequisites, GoogleSheetExporterConfig {
21
+ }
22
+ declare function googleSheetExporter(googleSheetExporterParams: GoogleSheetExporterParams): Promise<{
23
+ getTranslations: () => Promise<{
24
+ [k: string]: Record<string, {}>;
25
+ }>;
26
+ exportTranslations: () => Promise<void>;
27
+ }>;
28
+
29
+ export { googleSheetExporter };
package/dist/index.js CHANGED
@@ -27805,15 +27805,9 @@ var require_values = __commonJS({
27805
27805
  // src/index.ts
27806
27806
  var src_exports = {};
27807
27807
  __export(src_exports, {
27808
- exporter: () => exporter_exports
27809
- });
27810
- module.exports = __toCommonJS(src_exports);
27811
-
27812
- // src/exporter/index.ts
27813
- var exporter_exports = {};
27814
- __export(exporter_exports, {
27815
27808
  googleSheetExporter: () => googleSheetExporter
27816
27809
  });
27810
+ module.exports = __toCommonJS(src_exports);
27817
27811
 
27818
27812
  // ../exporter/dist/index.mjs
27819
27813
  var import_google_auth_library = __toESM(require_src5(), 1);
@@ -32480,7 +32474,7 @@ async function googleSheetExporter(googleSheetExporterParams) {
32480
32474
  }
32481
32475
  // Annotate the CommonJS export names for ESM import in node:
32482
32476
  0 && (module.exports = {
32483
- exporter
32477
+ googleSheetExporter
32484
32478
  });
32485
32479
  /*! Bundled license information:
32486
32480