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.
- package/.turbo/turbo-build.log +8 -12
- package/dist/index.d.ts +29 -1
- package/dist/index.js +2 -8
- package/dist/index.mjs +32495 -4
- package/package.json +4 -4
- package/src/index.ts +1 -1
- package/dist/chunk-KN4CC7MI.mjs +0 -32505
- package/dist/exporter/index.d.ts +0 -36
- package/dist/exporter/index.js +0 -32499
- package/dist/exporter/index.mjs +0 -6
- package/src/exporter/index.ts +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> sheet-i18n@0.1.
|
|
3
|
+
> sheet-i18n@0.1.7 build /Users/choeucheol/Documents/dev/project/sheet-i18n/packages/sheet-i18n
|
|
4
4
|
> tsup
|
|
5
5
|
|
|
6
|
-
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
7
7
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
8
|
[34mCLI[39m tsup v6.7.0
|
|
9
9
|
[34mCLI[39m Using tsup config: /Users/choeucheol/Documents/dev/project/sheet-i18n/packages/sheet-i18n/tsup.config.ts
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
[34mCLI[39m Cleaning output folder
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[34mESM[39m Build start
|
|
14
|
-
[32mESM[39m [1mdist/index.mjs
|
|
15
|
-
[32mESM[39m
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[32mCJS[39m [1mdist/index.js [22m[32m1.34 MB[39m
|
|
19
|
-
[32mCJS[39m [1mdist/exporter/index.js [22m[32m1.34 MB[39m
|
|
20
|
-
[32mCJS[39m ⚡️ Build success in 158ms
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m1.34 MB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 186ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m1.34 MB[39m
|
|
17
|
+
[32mCJS[39m ⚡️ Build success in 186ms
|
|
21
18
|
[34mDTS[39m Build start
|
|
22
|
-
[32mDTS[39m ⚡️ Build success in
|
|
23
|
-
[32mDTS[39m [1mdist/
|
|
24
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m53.00 B[39m
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 356ms
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m949.00 B[39m
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
32477
|
+
googleSheetExporter
|
|
32484
32478
|
});
|
|
32485
32479
|
/*! Bundled license information:
|
|
32486
32480
|
|