@tomjs/create-app 0.0.15 → 0.0.18
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomjs/create-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "create tomjs web app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tomjs",
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"vue",
|
|
12
12
|
"react"
|
|
13
13
|
],
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Tom Gao",
|
|
16
|
+
"email": "tom@tomgao.cc"
|
|
17
|
+
},
|
|
14
18
|
"license": "MIT",
|
|
15
19
|
"repository": {
|
|
16
20
|
"type": "git",
|
package/template-node/README.md
CHANGED
|
@@ -5,9 +5,25 @@
|
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tomjs"
|
|
7
7
|
],
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Tom Gao",
|
|
10
|
+
"email": "tom@tomgao.cc"
|
|
11
|
+
},
|
|
12
|
+
"license": "MIT",
|
|
8
13
|
"engines": {
|
|
9
14
|
"node": ">=16"
|
|
10
15
|
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"registry": "https://registry.npmjs.org/"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/tomgao365/template-node.git"
|
|
26
|
+
},
|
|
11
27
|
"main": "./dist/index.js",
|
|
12
28
|
"module": "./dist/index.mjs",
|
|
13
29
|
"types": "./dist/index.d.ts",
|
|
@@ -21,7 +37,7 @@
|
|
|
21
37
|
"scripts": {
|
|
22
38
|
"dev": "tsup --watch",
|
|
23
39
|
"start": "tsx ./src/index.ts",
|
|
24
|
-
"build": "tsup
|
|
40
|
+
"build": "rimraf ./dist && tsup",
|
|
25
41
|
"lint": "run-s lint:eslint lint:prettier",
|
|
26
42
|
"lint:eslint": "eslint \"src/**/*.ts\" *.{js,cjs,ts} --fix --cache",
|
|
27
43
|
"lint:prettier": "prettier --write .",
|
|
@@ -42,8 +58,9 @@
|
|
|
42
58
|
"lint-staged": "^15.1.0",
|
|
43
59
|
"npm-run-all": "^4.1.5",
|
|
44
60
|
"prettier": "^3.1.0",
|
|
61
|
+
"rimraf": "^5.0.5",
|
|
45
62
|
"tsup": "^8.0.1",
|
|
46
|
-
"tsx": "^4.
|
|
63
|
+
"tsx": "^4.5.0",
|
|
47
64
|
"typescript": "^5.2.2"
|
|
48
65
|
}
|
|
49
66
|
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { defineConfig } from 'tsup';
|
|
2
2
|
|
|
3
|
-
export default defineConfig(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
export default defineConfig([
|
|
4
|
+
{
|
|
5
|
+
entry: ['src/index.ts'],
|
|
6
|
+
format: ['esm'],
|
|
7
|
+
target: ['es2020', 'node16'],
|
|
8
|
+
dts: false,
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
entry: ['src/index.ts'],
|
|
12
|
+
format: ['cjs'],
|
|
13
|
+
target: ['es2020', 'node16'],
|
|
14
|
+
dts: true,
|
|
15
|
+
splitting: true,
|
|
16
|
+
},
|
|
17
|
+
]);
|