This commit is contained in:
Git Workflow Bot
2024-09-15 15:39:49 +00:00
parent 89ce218b1c
commit 52e1465a83
6 changed files with 71 additions and 0 deletions

3
dist/index.d.mts vendored Normal file
View File

@ -0,0 +1,3 @@
declare function startTest(): void;
export { startTest };

3
dist/index.d.ts vendored Normal file
View File

@ -0,0 +1,3 @@
declare function startTest(): void;
export { startTest };

45
dist/index.js vendored Normal file
View File

@ -0,0 +1,45 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
startTest: () => startTest
});
module.exports = __toCommonJS(src_exports);
// src/test.ts
function test(i) {
console.log(`Hello, World! (#${i})`);
}
// src/index.ts
function startTest() {
console.log("Hello, World!");
let i = 0;
setInterval(() => {
i++;
test(i);
}, 1e3);
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
startTest
});
//# sourceMappingURL=index.js.map

1
dist/index.js.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"sources":["../src/index.ts","../src/test.ts"],"sourcesContent":["import test from \"./test\";\n\nexport function startTest() {\n console.log(\"Hello, World!\");\n let i: number = 0;\n setInterval(() => {\n i++;\n test(i);\n }, 1000);\n}\n","export default function test(i: number) {\n console.log(`Hello, World! (#${i})`);\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAe,SAAR,KAAsB,GAAW;AACpC,UAAQ,IAAI,mBAAmB,CAAC,GAAG;AACvC;;;ADAO,SAAS,YAAY;AACxB,UAAQ,IAAI,eAAe;AAC3B,MAAI,IAAY;AAChB,cAAY,MAAM;AACd;AACA,SAAK,CAAC;AAAA,EACV,GAAG,GAAI;AACX;","names":[]}

18
dist/index.mjs vendored Normal file
View File

@ -0,0 +1,18 @@
// src/test.ts
function test(i) {
console.log(`Hello, World! (#${i})`);
}
// src/index.ts
function startTest() {
console.log("Hello, World!");
let i = 0;
setInterval(() => {
i++;
test(i);
}, 1e3);
}
export {
startTest
};
//# sourceMappingURL=index.mjs.map

1
dist/index.mjs.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"sources":["../src/test.ts","../src/index.ts"],"sourcesContent":["export default function test(i: number) {\n console.log(`Hello, World! (#${i})`);\n}","import test from \"./test\";\n\nexport function startTest() {\n console.log(\"Hello, World!\");\n let i: number = 0;\n setInterval(() => {\n i++;\n test(i);\n }, 1000);\n}\n"],"mappings":";AAAe,SAAR,KAAsB,GAAW;AACpC,UAAQ,IAAI,mBAAmB,CAAC,GAAG;AACvC;;;ACAO,SAAS,YAAY;AACxB,UAAQ,IAAI,eAAe;AAC3B,MAAI,IAAY;AAChB,cAAY,MAAM;AACd;AACA,SAAK,CAAC;AAAA,EACV,GAAG,GAAI;AACX;","names":[]}