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.
- package/.turbo/turbo-build.log +13 -9
- package/dist/chunk-7AQPNLGW.mjs +7 -0
- package/dist/exporter/index.d.ts +23 -0
- package/dist/exporter/index.js +24 -0
- package/dist/exporter/index.mjs +1 -0
- package/dist/index.d.ts +2 -29
- package/dist/index.js +15 -32480
- package/dist/index.mjs +4 -32495
- package/package.json +7 -4
- package/src/exporter/index.ts +1 -0
- package/src/index.ts +1 -1
- package/.turbo/turbo-changelog.log +0 -12
- package/.turbo/turbo-publish$colon$pnpm.log +0 -38
- package/README.md +0 -187
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> sheet-i18n@0.1.
|
|
3
|
+
> sheet-i18n@0.1.9 build /Users/devanderson/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, src/exporter/index.ts
|
|
7
7
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
8
|
[34mCLI[39m tsup v6.7.0
|
|
9
|
-
[34mCLI[39m Using tsup config: /Users/
|
|
9
|
+
[34mCLI[39m Using tsup config: /Users/devanderson/Documents/dev/project/sheet-i18n/packages/sheet-i18n/tsup.config.ts
|
|
10
10
|
[34mCLI[39m Target: node14
|
|
11
11
|
[34mCLI[39m Cleaning output folder
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[34mESM[39m Build start
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[32mCJS[39m
|
|
17
|
-
[
|
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m1.28 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/exporter/index.js [22m[32m1.10 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 10ms
|
|
17
|
+
[32mESM[39m [1mdist/chunk-7AQPNLGW.mjs [22m[32m122.00 B[39m
|
|
18
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m102.00 B[39m
|
|
19
|
+
[32mESM[39m [1mdist/exporter/index.mjs [22m[32m32.00 B[39m
|
|
20
|
+
[32mESM[39m ⚡️ Build success in 11ms
|
|
18
21
|
[34mDTS[39m Build start
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
22
|
+
[32mDTS[39m ⚡️ Build success in 543ms
|
|
23
|
+
[32mDTS[39m [1mdist/exporter/index.d.ts [22m[32m592.00 B[39m
|
|
24
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m84.00 B[39m
|
|
@@ -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
|
-
|
|
2
|
-
|
|
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';
|