silgi 0.1.10 → 0.1.12
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/cli/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import consola from 'consola';
|
|
|
3
3
|
|
|
4
4
|
const name = "silgi";
|
|
5
5
|
const type = "module";
|
|
6
|
-
const version = "0.1.
|
|
6
|
+
const version = "0.1.12";
|
|
7
7
|
const packageManager = "pnpm@9.15.1";
|
|
8
8
|
const sideEffects = false;
|
|
9
9
|
const exports = {
|
|
@@ -64,6 +64,7 @@ const scripts = {
|
|
|
64
64
|
lint: "eslint .",
|
|
65
65
|
"lint:fix": "eslint . --fix",
|
|
66
66
|
silgi: "tsx cli/index.ts",
|
|
67
|
+
pb: "pnpm unbuild && pnpm publish --no-git-checks --access public",
|
|
67
68
|
generate: "pnpm --filter ./playground... generate && pnpm --filter ./modules... generate && pnpm --filter ./ecosystem... generate && pnpm --filter ./examples/** generate"
|
|
68
69
|
};
|
|
69
70
|
const dependencies = {
|
|
@@ -77,6 +78,7 @@ const dependencies = {
|
|
|
77
78
|
eslint: "^9.18.0",
|
|
78
79
|
esno: "^4.8.0",
|
|
79
80
|
globby: "^14.0.2",
|
|
81
|
+
h3: "^1.14.0",
|
|
80
82
|
hookable: "^5.5.3",
|
|
81
83
|
ignore: "^7.0.3",
|
|
82
84
|
jiti: "^2.4.2",
|
|
@@ -101,7 +103,6 @@ const devDependencies = {
|
|
|
101
103
|
"@nuxt/kit": "^3.15.3",
|
|
102
104
|
"@types/node": "^22.10.7",
|
|
103
105
|
"@types/semver": "^7.5.8",
|
|
104
|
-
h3: "^1.14.0",
|
|
105
106
|
unbuild: "^3.3.1",
|
|
106
107
|
vitest: "^3.0.3"
|
|
107
108
|
};
|
|
@@ -109,6 +110,9 @@ const resolutions = {
|
|
|
109
110
|
"@silgi/modules": "workspace:*",
|
|
110
111
|
silgi: "workspace:*"
|
|
111
112
|
};
|
|
113
|
+
const publishConfig = {
|
|
114
|
+
access: "public"
|
|
115
|
+
};
|
|
112
116
|
const packageJson = {
|
|
113
117
|
name: name,
|
|
114
118
|
type: type,
|
|
@@ -124,7 +128,8 @@ const packageJson = {
|
|
|
124
128
|
scripts: scripts,
|
|
125
129
|
dependencies: dependencies,
|
|
126
130
|
devDependencies: devDependencies,
|
|
127
|
-
resolutions: resolutions
|
|
131
|
+
resolutions: resolutions,
|
|
132
|
+
publishConfig: publishConfig
|
|
128
133
|
};
|
|
129
134
|
|
|
130
135
|
const main = defineCommand({
|
|
@@ -23,10 +23,9 @@ const module = {
|
|
|
23
23
|
nitro.options.typescript.tsConfig ??= {};
|
|
24
24
|
nitro.options.typescript.tsConfig.include = nitro.options.typescript.tsConfig.include || [];
|
|
25
25
|
nitro.options.typescript.tsConfig.include.push(join(relativeWithDot(tsconfigDir, silgiConfig.buildDir), "**/*"));
|
|
26
|
-
nitro.options.typescript.tsConfig.compilerOptions
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
26
|
+
nitro.options.typescript.tsConfig.compilerOptions ??= {};
|
|
27
|
+
nitro.options.typescript.tsConfig.compilerOptions.strict = true;
|
|
28
|
+
nitro.options.typescript.tsConfig.compilerOptions.allowImportingTsExtensions = true;
|
|
30
29
|
if (nitro.options.imports) {
|
|
31
30
|
nitro.options.imports.dirs ??= [];
|
|
32
31
|
nitro.options.imports.dirs.push(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silgi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.12",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -93,6 +93,9 @@
|
|
|
93
93
|
"@silgi/modules": "workspace:*",
|
|
94
94
|
"silgi": "workspace:*"
|
|
95
95
|
},
|
|
96
|
+
"publishConfig": {
|
|
97
|
+
"access": "public"
|
|
98
|
+
},
|
|
96
99
|
"scripts": {
|
|
97
100
|
"build": "pnpm build:package && pnpm --filter ./modules... generate && pnpm build:module",
|
|
98
101
|
"build:package": "unbuild",
|
|
@@ -104,6 +107,7 @@
|
|
|
104
107
|
"lint": "eslint .",
|
|
105
108
|
"lint:fix": "eslint . --fix",
|
|
106
109
|
"silgi": "tsx cli/index.ts",
|
|
110
|
+
"pb": "pnpm unbuild && pnpm publish --no-git-checks --access public",
|
|
107
111
|
"generate": "pnpm --filter ./playground... generate && pnpm --filter ./modules... generate && pnpm --filter ./ecosystem... generate && pnpm --filter ./examples/** generate"
|
|
108
112
|
}
|
|
109
113
|
}
|