susee 1.5.0 → 1.5.2
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/LICENSE +1 -1
- package/README.md +164 -103
- package/bin/susee +3 -0
- package/dist/bin/index.d.mts +2 -0
- package/dist/bin/index.mjs +2 -0
- package/dist/bin/index.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -26
- package/dist/index.d.mts +13 -26
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +83 -84
- package/bin/index.mjs +0 -18
- package/bin/init.mjs +0 -51
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
package/package.json
CHANGED
|
@@ -1,85 +1,84 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
2
|
+
"name": "susee",
|
|
3
|
+
"version": "1.5.2",
|
|
4
|
+
"description": "TypeScript-first bundler for library packages",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"types": "dist/index.d.cts",
|
|
8
|
+
"module": "dist/index.mjs",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.mts",
|
|
13
|
+
"default": "./dist/index.mjs"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"susee": "bin/susee"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsx build.ts",
|
|
26
|
+
"lint": "biome check src --write",
|
|
27
|
+
"fmt": "biome format --write",
|
|
28
|
+
"test": "tsx --test __tests__/test-suites/**/*.test.ts",
|
|
29
|
+
"coverage": "tsx __tests__/lcov/index.ts",
|
|
30
|
+
"hooks:install": "bash scripts/install-hooks.sh",
|
|
31
|
+
"lint:test": "biome check tests --write",
|
|
32
|
+
"commit": "bash scripts/commit.sh",
|
|
33
|
+
"v:patch": "npm version patch --no-git-tag-version",
|
|
34
|
+
"v:minor": "npm version minor --no-git-tag-version",
|
|
35
|
+
"v:major": "npm version major --no-git-tag-version"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"bundler",
|
|
39
|
+
"susee",
|
|
40
|
+
"suseejs"
|
|
41
|
+
],
|
|
42
|
+
"author": {
|
|
43
|
+
"name": "Pho Thin Mg",
|
|
44
|
+
"email": "phothinmg@disroot.org",
|
|
45
|
+
"url": "https://phothinmg.github.io/"
|
|
46
|
+
},
|
|
47
|
+
"license": "Apache-2.0",
|
|
48
|
+
"files": [
|
|
49
|
+
"package.json",
|
|
50
|
+
"README.md",
|
|
51
|
+
"LICENSE",
|
|
52
|
+
"dist/**/*",
|
|
53
|
+
"bin/**/*"
|
|
54
|
+
],
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"provenance": true,
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"repository": {
|
|
60
|
+
"url": "git+https://github.com/phothinmg/susee.git",
|
|
61
|
+
"type": "git"
|
|
62
|
+
},
|
|
63
|
+
"homepage": "https://github.com/phothinmg/susee#readme",
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/phothinmg/susee/issues"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@suseejs/bundler": "^0.0.3",
|
|
69
|
+
"@suseejs/color": "^0.0.3",
|
|
70
|
+
"@suseejs/compiler": "^0.0.3",
|
|
71
|
+
"@suseejs/files": "^0.0.3",
|
|
72
|
+
"@suseejs/terser-plugin": "^0.0.3",
|
|
73
|
+
"@suseejs/tsoptions": "^0.0.3",
|
|
74
|
+
"@suseejs/type": "^0.0.3",
|
|
75
|
+
"@suseejs/utilities": "^0.0.3",
|
|
76
|
+
"typescript": "^6.0.2"
|
|
77
|
+
},
|
|
78
|
+
"devDependencies": {
|
|
79
|
+
"@biomejs/biome": "^2.4.12",
|
|
80
|
+
"@suseejs/banner-text-plugin": "^0.0.3",
|
|
81
|
+
"@types/node": "^25.6.0",
|
|
82
|
+
"tsx": "^4.21.0"
|
|
83
|
+
}
|
|
84
|
+
}
|
package/bin/index.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import process from "node:process";
|
|
3
|
-
import init from "./init.mjs";
|
|
4
|
-
import { susee } from "../dist/index.mjs";
|
|
5
|
-
|
|
6
|
-
async function suseeBuild() {
|
|
7
|
-
const args = process.argv.slice(2);
|
|
8
|
-
if (args.length === 0) {
|
|
9
|
-
await susee();
|
|
10
|
-
} else if (args.length === 1 && args[0] === "--init") {
|
|
11
|
-
await init();
|
|
12
|
-
} else {
|
|
13
|
-
console.error("Unknown CLI usage");
|
|
14
|
-
process.exit(1);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
await suseeBuild();
|
package/bin/init.mjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import fs from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
|
|
4
|
-
export default async function init() {
|
|
5
|
-
const configFile = "susee.config.ts";
|
|
6
|
-
const configFilePath = path.resolve(process.cwd(), configFile);
|
|
7
|
-
const fileText = String.raw`
|
|
8
|
-
import type { SuSeeConfig } from "susee";
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
// array of entryPoint objects.
|
|
12
|
-
// ----------------------------
|
|
13
|
-
entryPoints: [
|
|
14
|
-
// you can add more entryPoints for different exportPaths
|
|
15
|
-
// NOTE : duplicate export paths are not allow.
|
|
16
|
-
// --------------------------------------------
|
|
17
|
-
{
|
|
18
|
-
// (required) entry file path
|
|
19
|
-
entry: "src/index.ts", // replace with your entry file
|
|
20
|
-
// (required) export path of this entry
|
|
21
|
-
exportPath: ".", // "." stand for main export path , can be set like "./foo","./bar"
|
|
22
|
-
// (optional) output module formats ["commonjs"] or ["esm","commonjs"] , default : ["esm"].
|
|
23
|
-
// Uncomment the following line to edit.
|
|
24
|
-
//format: ["esm"],
|
|
25
|
-
// (optional) replace duplicated declaration , default : true.
|
|
26
|
-
// Uncomment the following line to edit.
|
|
27
|
-
//renameDuplicates: true,
|
|
28
|
-
// (optional) custom tsconfig.json path , default : undefined.
|
|
29
|
-
// Uncomment the following line to edit.
|
|
30
|
-
//tsconfigFilePath: undefined,
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
// NOTE : the following options are effect on all entryPoints
|
|
34
|
-
// ----------------------------------------------------------
|
|
35
|
-
// (optional) out directory , default : dist.
|
|
36
|
-
// Uncomment the following line to edit.
|
|
37
|
-
//outDir: "dist",
|
|
38
|
-
// (optional) array of susee plugins , default : [].
|
|
39
|
-
// Uncomment the following line to edit.
|
|
40
|
-
//plugins: [],
|
|
41
|
-
// (optional) allow susee to update your package.json , default : false.
|
|
42
|
-
// Uncomment the following line to edit.
|
|
43
|
-
//allowUpdatePackageJson: false,
|
|
44
|
-
} as SuSeeConfig;
|
|
45
|
-
`.trim();
|
|
46
|
-
if (fs.existsSync(configFilePath)) {
|
|
47
|
-
await fs.promises.unlink(configFilePath);
|
|
48
|
-
}
|
|
49
|
-
await fs.promises.writeFile(configFilePath, fileText);
|
|
50
|
-
console.info(`Susee config file is created at ${configFilePath}.`);
|
|
51
|
-
}
|
package/dist/index.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAiH,WAAW,EAAE,mBAAmB,EAAW,MAAM,gBAAgB,CAAC;AAI/L,KAAK,YAAY,GAAG,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,CAAC;AAC3C;;GAEG;AACH,UAAU,UAAU;IAChB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH;;;;OAIG;IACH,UAAU,EAAE,GAAG,GAAG,KAAK,MAAM,EAAE,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AACD;;GAEG;AACH,UAAU,WAAW;IACjB;;;;OAIG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,WAAW,GAAG,mBAAmB,CAAC,EAAE,CAAC;IAChD;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CACpC;AA+zDD;;;;;;;;;;GAUG;AACH,iBAAe,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAUpC;AACD,YAAY,EAAE,WAAW,EAAE,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAiH,WAAW,EAAE,mBAAmB,EAAW,MAAM,gBAAgB,CAAC;AAI/L,KAAK,YAAY,GAAG,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,CAAC;AAC3C;;GAEG;AACH,UAAU,UAAU;IAChB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH;;;;OAIG;IACH,UAAU,EAAE,GAAG,GAAG,KAAK,MAAM,EAAE,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AACD;;GAEG;AACH,UAAU,WAAW;IACjB;;;;OAIG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,WAAW,GAAG,mBAAmB,CAAC,EAAE,CAAC;IAChD;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CACpC;AA+zDD;;;;;;;;;;GAUG;AACH,iBAAe,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAUpC;AACD,YAAY,EAAE,WAAW,EAAE,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,CAAC"}
|