@tomjs/create-app 0.0.17 → 0.0.19

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.17",
3
+ "version": "0.0.19",
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",
@@ -1,3 +1,5 @@
1
1
  # node
2
2
 
3
- Basic node templates
3
+ Basic node template
4
+
5
+ **English** | [中文](./README.zh_CN.md)
@@ -0,0 +1,5 @@
1
+ # node
2
+
3
+ 基础 node 模板
4
+
5
+ [English](./README.md) | **中文**
@@ -1,13 +1,29 @@
1
1
  {
2
2
  "name": "template-node",
3
3
  "version": "0.0.0",
4
- "description": "basic node template",
4
+ "description": "basic node.js template",
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 --minify",
40
+ "build": "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 .",
@@ -4,13 +4,14 @@ export default defineConfig([
4
4
  {
5
5
  entry: ['src/index.ts'],
6
6
  format: ['esm'],
7
- target: ['es2022', 'node18'],
7
+ target: ['es2020', 'node16'],
8
8
  dts: false,
9
9
  },
10
10
  {
11
11
  entry: ['src/index.ts'],
12
12
  format: ['cjs'],
13
- target: ['es2022', 'node18'],
13
+ target: ['es2020', 'node16'],
14
14
  dts: true,
15
+ splitting: true,
15
16
  },
16
17
  ]);