@static-pages/core 3.0.2 → 3.0.3
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/cjs/package.json +1 -3
- package/package.json +14 -11
package/cjs/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@static-pages/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "General purpose static pages renderer.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "
|
|
7
|
-
"module": "
|
|
8
|
-
"
|
|
6
|
+
"main": "cjs/index.js",
|
|
7
|
+
"module": "esm/index.js",
|
|
8
|
+
"types": "esm/index.d.js",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"require": "./cjs/index.js",
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"prepack": "npm run
|
|
16
|
+
"prepack": "npm run test",
|
|
17
17
|
"build": "npm run build:esm && npm run build:cjs",
|
|
18
18
|
"build:esm": "tsc",
|
|
19
|
-
"build:cjs": "tsc --outDir cjs --module commonjs",
|
|
20
19
|
"watch:esm": "tsc --watch",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
20
|
+
"build:cjs": "tsc --project tsconfig.cjs.json && echo { \"type\": \"commonjs\" }>cjs/package.json",
|
|
21
|
+
"watch:cjs": "npm run build:cjs && tsc --project tsconfig.cjs.json --watch",
|
|
22
|
+
"test": "eslint src && npm run build && cross-env NODE_OPTIONS=--experimental-vm-modules jest",
|
|
23
|
+
"coverage": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage && cat ./coverage/lcov.info | coveralls",
|
|
24
|
+
"clean": "rimraf esm cjs coverage"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
@@ -45,12 +45,15 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://staticpagesjs.github.io/",
|
|
47
47
|
"devDependencies": {
|
|
48
|
+
"@types/jest": "^28.1.6",
|
|
48
49
|
"@types/node": "^14.18.9",
|
|
49
50
|
"@typescript-eslint/eslint-plugin": "^5.3.0",
|
|
50
51
|
"@typescript-eslint/parser": "^5.3.0",
|
|
51
52
|
"coveralls": "^3.1.1",
|
|
53
|
+
"cross-env": "^7.0.3",
|
|
52
54
|
"eslint": "^8.1.0",
|
|
53
|
-
"jest": "^
|
|
55
|
+
"eslint-plugin-jest": "^26.6.0",
|
|
56
|
+
"jest": "^28.1.3",
|
|
54
57
|
"rimraf": "^3.0.2",
|
|
55
58
|
"typescript": "^4.4.4"
|
|
56
59
|
}
|