@rg-dev/dts-inline 1.0.0

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/dist/index.cjs ADDED
@@ -0,0 +1,32 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/index.ts
20
+ var src_exports = {};
21
+ __export(src_exports, {
22
+ lib: () => lib
23
+ });
24
+ module.exports = __toCommonJS(src_exports);
25
+ function lib() {
26
+ console.log("lib");
27
+ }
28
+ lib();
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ lib
32
+ });
@@ -0,0 +1,3 @@
1
+ declare function lib(): void;
2
+
3
+ export { lib };
@@ -0,0 +1,3 @@
1
+ declare function lib(): void;
2
+
3
+ export { lib };
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ // src/index.ts
2
+ function lib() {
3
+ console.log("lib");
4
+ }
5
+ lib();
6
+ export {
7
+ lib
8
+ };
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@rg-dev/dts-inline",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "bin": "compiled/index.cjs",
6
+ "scripts": {
7
+ "test": "tsup && node dist/index.cjs",
8
+ "build": "tsup"
9
+ },
10
+ "author": "",
11
+ "license": "ISC",
12
+ "main": "./dist/index.cjs",
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "module": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
18
+ "type": "module",
19
+ "exports": {
20
+ ".": {
21
+ "import": "./dist/index.js",
22
+ "require": "./dist/index.cjs"
23
+ }
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "devDependencies": {
29
+ "@rg-dev/stdlib": "^1.0.43",
30
+ "@types/node": "^14.18.36",
31
+ "@types/yargs": "^17.0.35",
32
+ "builtin-modules": "^3.3.0",
33
+ "execa": "^8.0.1",
34
+ "pathe": "^2.0.3",
35
+ "typescript": "^5.4.5",
36
+ "yargs": "^18.0.0"
37
+ },
38
+ "dependencies": {
39
+ "dts-bundle-generator": "^9.5.1"
40
+ }
41
+ }