Merge pull request 'Idk? Build?' (#4) from dev into main

Reviewed-on: #4
This commit is contained in:
2024-09-15 12:40:50 +00:00
8 changed files with 66 additions and 3 deletions

1
.gitignore vendored
View File

@ -90,7 +90,6 @@ out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/

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

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

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

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

40
dist/index.js vendored Normal file
View File

@ -0,0 +1,40 @@
"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, {
default: () => startTest
});
module.exports = __toCommonJS(src_exports);
// src/test.ts
function test(i) {
console.log(`Hello, World! (#${i})`);
}
// src/index.ts
function startTest() {
let i = 0;
setInterval(() => {
i++;
test(i);
}, 1e3);
}
//# 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\";\r\n\r\nexport default function startTest() {\r\n let i: number = 0;\r\n setInterval(() => {\r\n i++;\r\n test(i);\r\n }, 1000);\r\n}\r\n","export default function test(i: number) {\r\n console.log(`Hello, World! (#${i})`);\r\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAe,SAAR,KAAsB,GAAW;AACpC,UAAQ,IAAI,mBAAmB,CAAC,GAAG;AACvC;;;ADAe,SAAR,YAA6B;AAChC,MAAI,IAAY;AAChB,cAAY,MAAM;AACd;AACA,SAAK,CAAC;AAAA,EACV,GAAG,GAAI;AACX;","names":[]}

17
dist/index.mjs vendored Normal file
View File

@ -0,0 +1,17 @@
// src/test.ts
function test(i) {
console.log(`Hello, World! (#${i})`);
}
// src/index.ts
function startTest() {
let i = 0;
setInterval(() => {
i++;
test(i);
}, 1e3);
}
export {
startTest as default
};
//# 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) {\r\n console.log(`Hello, World! (#${i})`);\r\n}","import test from \"./test\";\r\n\r\nexport default function startTest() {\r\n let i: number = 0;\r\n setInterval(() => {\r\n i++;\r\n test(i);\r\n }, 1000);\r\n}\r\n"],"mappings":";AAAe,SAAR,KAAsB,GAAW;AACpC,UAAQ,IAAI,mBAAmB,CAAC,GAAG;AACvC;;;ACAe,SAAR,YAA6B;AAChC,MAAI,IAAY;AAChB,cAAY,MAAM;AACd;AACA,SAAK,CAAC;AAAA,EACV,GAAG,GAAI;AACX;","names":[]}

View File

@ -9,8 +9,7 @@
],
"scripts": {
"start": "ts-node src/index.ts",
"build": "tsup",
"postinstall": "npm run build"
"build": "tsup"
},
"keywords": [],
"author": "",