@savvy-web/rslib-builder 0.1.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/.npmignore +2 -0
- package/LICENSE +21 -0
- package/README.md +160 -0
- package/api.model.json +3022 -0
- package/index.d.ts +855 -0
- package/index.js +1521 -0
- package/package.json +86 -0
- package/rslib-runtime.js +18 -0
- package/tsconfig/node/ecma/lib.json +49 -0
- package/tsconfig/root.json +13 -0
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@savvy-web/rslib-builder",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "RSlib-based build system for Node.js libraries with automatic package.json transformation, TypeScript declaration bundling, and multi-target support",
|
|
6
|
+
"homepage": "https://github.com/savvy-web/rslib-builder",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/savvy-web/rslib-builder.git"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "C. Spencer Beggs",
|
|
14
|
+
"email": "spencer@savvyweb.systems",
|
|
15
|
+
"url": "https://savvyweb.systems"
|
|
16
|
+
},
|
|
17
|
+
"type": "module",
|
|
18
|
+
"imports": {
|
|
19
|
+
"#utils/*": "./src/rslib/plugins/utils/*",
|
|
20
|
+
"#types/*": "./src/types/*"
|
|
21
|
+
},
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./index.d.ts",
|
|
25
|
+
"import": "./index.js"
|
|
26
|
+
},
|
|
27
|
+
"./tsconfig/root.json": "./public/tsconfig/root.json",
|
|
28
|
+
"./tsconfig/node/ecma/lib.json": "./public/tsconfig/node/ecma/lib.json",
|
|
29
|
+
"./tsconfig/node/ecma/lib-compat.json": "./public/tsconfig/node/ecma/lib-compat.json",
|
|
30
|
+
"./tsconfig/node/ecma/bundle.json": "./public/tsconfig/node/ecma/bundle.json",
|
|
31
|
+
"./tsconfig/node/ecma/bundleless.json": "./public/tsconfig/node/ecma/bundleless.json"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@pnpm/exportable-manifest": "^1000.3.0",
|
|
35
|
+
"glob": "^13.0.0",
|
|
36
|
+
"markdownlint-cli2": "^0.20.0",
|
|
37
|
+
"picocolors": "^1.1.1",
|
|
38
|
+
"sort-package-json": "^3.6.0",
|
|
39
|
+
"tmp": "^0.2.5",
|
|
40
|
+
"workspace-tools": "^0.40.3",
|
|
41
|
+
"yaml": "^2.8.2"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@microsoft/api-extractor": "^7.55.2",
|
|
45
|
+
"@rslib/core": "^0.19.2",
|
|
46
|
+
"@types/node": "^25.0.9",
|
|
47
|
+
"@typescript/native-preview": "7.0.0-dev.20260118.1"
|
|
48
|
+
},
|
|
49
|
+
"peerDependenciesMeta": {
|
|
50
|
+
"@microsoft/api-extractor": {
|
|
51
|
+
"optional": false
|
|
52
|
+
},
|
|
53
|
+
"@typescript/native-preview": {
|
|
54
|
+
"optional": false
|
|
55
|
+
},
|
|
56
|
+
"typescript": {
|
|
57
|
+
"optional": false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"devEngines": {
|
|
61
|
+
"packageManager": {
|
|
62
|
+
"name": "pnpm",
|
|
63
|
+
"version": "10.28.0",
|
|
64
|
+
"onFail": "ignore"
|
|
65
|
+
},
|
|
66
|
+
"runtime": [
|
|
67
|
+
{
|
|
68
|
+
"name": "node",
|
|
69
|
+
"version": "24.11.0",
|
|
70
|
+
"onFail": "ignore"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"files": [
|
|
75
|
+
".npmignore",
|
|
76
|
+
"LICENSE",
|
|
77
|
+
"README.md",
|
|
78
|
+
"api.model.json",
|
|
79
|
+
"index.d.ts",
|
|
80
|
+
"index.js",
|
|
81
|
+
"package.json",
|
|
82
|
+
"rslib-runtime.js",
|
|
83
|
+
"tsconfig/node/ecma/lib.json",
|
|
84
|
+
"tsconfig/root.json"
|
|
85
|
+
]
|
|
86
|
+
}
|
package/rslib-runtime.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __webpack_modules__ = {};
|
|
2
|
+
var __webpack_module_cache__ = {};
|
|
3
|
+
function __webpack_require__(moduleId) {
|
|
4
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
5
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
6
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
7
|
+
exports: {}
|
|
8
|
+
};
|
|
9
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
10
|
+
return module.exports;
|
|
11
|
+
}
|
|
12
|
+
__webpack_require__.m = __webpack_modules__;
|
|
13
|
+
(()=>{
|
|
14
|
+
__webpack_require__.add = function(modules) {
|
|
15
|
+
Object.assign(__webpack_require__.m, modules);
|
|
16
|
+
};
|
|
17
|
+
})();
|
|
18
|
+
export { __webpack_require__ };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"composite": true,
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationDir": "${configDir}/dist",
|
|
8
|
+
"declarationMap": false,
|
|
9
|
+
"emitDeclarationOnly": false,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"explainFiles": false,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"incremental": true,
|
|
14
|
+
"isolatedDeclarations": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"jsx": "preserve",
|
|
17
|
+
"lib": ["esnext"],
|
|
18
|
+
"module": "nodenext",
|
|
19
|
+
"moduleResolution": "nodenext",
|
|
20
|
+
"outDir": "${configDir}/dist",
|
|
21
|
+
"resolveJsonModule": true,
|
|
22
|
+
"rootDir": "${configDir}",
|
|
23
|
+
"skipLibCheck": true,
|
|
24
|
+
"sourceMap": false,
|
|
25
|
+
"strict": true,
|
|
26
|
+
"strictNullChecks": true,
|
|
27
|
+
"target": "es2023",
|
|
28
|
+
"tsBuildInfoFile": "${configDir}/dist/.tsbuildinfo.lib",
|
|
29
|
+
"typeRoots": ["${configDir}/node_modules/@types", "${configDir}/types"],
|
|
30
|
+
"verbatimModuleSyntax": true
|
|
31
|
+
},
|
|
32
|
+
"exclude": ["${configDir}/node_modules", "${configDir}/dist/**/*"],
|
|
33
|
+
"include": [
|
|
34
|
+
"${configDir}/types/*.ts",
|
|
35
|
+
"${configDir}/package.json",
|
|
36
|
+
"${configDir}/*.ts",
|
|
37
|
+
"${configDir}/*.cts",
|
|
38
|
+
"${configDir}/*.mts",
|
|
39
|
+
"${configDir}/src/**/*.ts",
|
|
40
|
+
"${configDir}/src/**/*.tsx",
|
|
41
|
+
"${configDir}/src/**/*.cts",
|
|
42
|
+
"${configDir}/src/**/*.mts",
|
|
43
|
+
"${configDir}/lib/**/*.ts",
|
|
44
|
+
"${configDir}/lib/**/*.tsx",
|
|
45
|
+
"${configDir}/lib/**/*.cts",
|
|
46
|
+
"${configDir}/lib/**/*.mts",
|
|
47
|
+
"${configDir}/public/**/*.json"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"composite": true,
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"module": "node20",
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"strictNullChecks": true,
|
|
11
|
+
"target": "es2023"
|
|
12
|
+
}
|
|
13
|
+
}
|