@static-pages/core 7.0.0-beta.1 → 7.0.0-beta.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/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@static-pages/core",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.2",
|
|
4
4
|
"description": "General purpose static pages renderer.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"types": "./
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"main": "./index.cjs",
|
|
8
|
+
"types": "./index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"import": "./
|
|
12
|
-
"require": "./
|
|
13
|
-
"types": "./
|
|
11
|
+
"import": "./index.js",
|
|
12
|
+
"require": "./index.cjs",
|
|
13
|
+
"types": "./index.d.ts"
|
|
14
14
|
},
|
|
15
15
|
"./package.json": "./package.json"
|
|
16
16
|
},
|
|
@@ -19,27 +19,31 @@
|
|
|
19
19
|
"deno": ">=1.0.0"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
+
"clean": "rimraf --glob \"!(.*).{d.ts,js,cjs,mjs}\" build coverage",
|
|
22
23
|
"preversion": "npm run build && npm run test",
|
|
23
24
|
"postversion": "git push && git push --tags",
|
|
24
|
-
"
|
|
25
|
-
"prewatch:esm": "npm run build:esm",
|
|
26
|
-
"watch:esm": "tsc --watch",
|
|
27
|
-
"prewatch:cjs": "npm run build:cjs",
|
|
28
|
-
"watch:cjs": "tsc --outDir cjs --module commonjs --moduleResolution node --watch",
|
|
25
|
+
"watch": "chokidar src tsconfig.json -c \"npm run build\" --initial",
|
|
29
26
|
"build": "npm run build:esm && npm run build:cjs && npm run build:types",
|
|
30
|
-
"
|
|
31
|
-
"build:
|
|
32
|
-
"postbuild:
|
|
33
|
-
"
|
|
27
|
+
"prebuild:esm": "rimraf build",
|
|
28
|
+
"build:esm": "tsc && node -e \"require('fs').readdirSync('build').forEach(f=>f.endsWith('.js')&&require('fs').renameSync('build/'+f,f))\"",
|
|
29
|
+
"postbuild:esm": "rimraf build",
|
|
30
|
+
"prebuild:cjs": "rimraf build",
|
|
31
|
+
"build:cjs": "tsc --module commonjs --moduleResolution node && node -e \"require('fs').readdirSync('build').forEach(f=>f.endsWith('.js')&&require('fs').renameSync('build/'+f,f.slice(0,-2)+'cjs'))\"",
|
|
32
|
+
"postbuild:cjs": "rimraf build",
|
|
33
|
+
"prebuild:types": "rimraf build",
|
|
34
|
+
"build:types": "tsc --declaration --emitDeclarationOnly && node -e \"require('fs').readdirSync('build').forEach(f=>require('fs').renameSync('build/'+f,f))\"",
|
|
35
|
+
"postbuild:types": "rimraf build",
|
|
34
36
|
"lint": "eslint",
|
|
35
37
|
"test": "mocha",
|
|
36
|
-
"coverage": "c8 -r text -r text-summary -r lcov --include \"
|
|
38
|
+
"coverage": "c8 -r text -r text-summary -r lcov --include \"*.js\" npm test"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^20.
|
|
41
|
+
"@types/node": "^20.11.5",
|
|
40
42
|
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
41
43
|
"@typescript-eslint/parser": "^6.15.0",
|
|
42
|
-
"c8": "^
|
|
44
|
+
"c8": "^9.1.0",
|
|
45
|
+
"chokidar": "^3.5.3",
|
|
46
|
+
"chokidar-cli": "^3.0.0",
|
|
43
47
|
"eslint": "^8.1.0",
|
|
44
48
|
"mocha": "^10.2.0",
|
|
45
49
|
"rimraf": "^5.0.1",
|
package/cjs/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{ "type": "commonjs" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|