sheet-i18n 0.1.7 → 0.1.9

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,20 +1,24 @@
1
1
 
2
2
  
3
- > sheet-i18n@0.1.7 build /Users/choeucheol/Documents/dev/project/sheet-i18n/packages/sheet-i18n
3
+ > sheet-i18n@0.1.9 build /Users/devanderson/Documents/dev/project/sheet-i18n/packages/sheet-i18n
4
4
  > tsup
5
5
 
6
- CLI Building entry: src/index.ts
6
+ CLI Building entry: src/index.ts, src/exporter/index.ts
7
7
  CLI Using tsconfig: tsconfig.json
8
8
  CLI tsup v6.7.0
9
- CLI Using tsup config: /Users/choeucheol/Documents/dev/project/sheet-i18n/packages/sheet-i18n/tsup.config.ts
9
+ CLI Using tsup config: /Users/devanderson/Documents/dev/project/sheet-i18n/packages/sheet-i18n/tsup.config.ts
10
10
  CLI Target: node14
11
11
  CLI Cleaning output folder
12
12
  CJS Build start
13
13
  ESM Build start
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
14
+ CJS dist/index.js 1.28 KB
15
+ CJS dist/exporter/index.js 1.10 KB
16
+ CJS ⚡️ Build success in 10ms
17
+ ESM dist/chunk-7AQPNLGW.mjs 122.00 B
18
+ ESM dist/index.mjs 102.00 B
19
+ ESM dist/exporter/index.mjs 32.00 B
20
+ ESM ⚡️ Build success in 11ms
18
21
  DTS Build start
19
- DTS ⚡️ Build success in 356ms
20
- DTS dist/index.d.ts 949.00 B
22
+ DTS ⚡️ Build success in 543ms
23
+ DTS dist/exporter/index.d.ts 592.00 B
24
+ DTS dist/index.d.ts 84.00 B
@@ -0,0 +1,7 @@
1
+ // src/exporter/index.ts
2
+ var exporter_exports = {};
3
+ export * from "@sheet-i18n/exporter";
4
+
5
+ export {
6
+ exporter_exports
7
+ };
@@ -0,0 +1,23 @@
1
+ import * as exporter from '@sheet-i18n/exporter';
2
+ export * from '@sheet-i18n/exporter';
3
+
4
+ function _mergeNamespaces(n, m) {
5
+ m.forEach(function (e) {
6
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
7
+ if (k !== 'default' && !(k in n)) {
8
+ var d = Object.getOwnPropertyDescriptor(e, k);
9
+ Object.defineProperty(n, k, d.get ? d : {
10
+ enumerable: true,
11
+ get: function () { return e[k]; }
12
+ });
13
+ }
14
+ });
15
+ });
16
+ return Object.freeze(n);
17
+ }
18
+
19
+ var index = /*#__PURE__*/_mergeNamespaces({
20
+ __proto__: null
21
+ }, [exporter]);
22
+
23
+ export { index as i };
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // src/exporter/index.ts
18
+ var exporter_exports = {};
19
+ module.exports = __toCommonJS(exporter_exports);
20
+ __reExport(exporter_exports, require("@sheet-i18n/exporter"), module.exports);
21
+ // Annotate the CommonJS export names for ESM import in node:
22
+ 0 && (module.exports = {
23
+ ...require("@sheet-i18n/exporter")
24
+ });
@@ -0,0 +1 @@
1
+ import "../chunk-7AQPNLGW.mjs";
package/dist/index.d.ts CHANGED
@@ -1,29 +1,2 @@
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 };
1
+ export { i as exporter } from './exporter/index.js';
2
+ import '@sheet-i18n/exporter';