linted 30.11.0 → 30.11.1

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.
Files changed (1) hide show
  1. package/package.json +15 -10
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
- "$pkg": "2211.1.3",
2
+ "$pkg": "2211.2.1",
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "linted",
6
- "version": "30.11.0",
6
+ "version": "30.11.1",
7
7
  "repository": "github:jimmy-zhening-luo/linted",
8
8
  "private": false,
9
9
  "engineStrict": true,
@@ -32,8 +32,8 @@
32
32
  "dependencies": {
33
33
  "@eslint/css": "0.10.0",
34
34
  "@eslint/json": "0.13.1",
35
- "@eslinted/core": "23.0.0",
36
- "@eslinted/defaults": "12.8.0",
35
+ "@eslinted/core": "23.0.2",
36
+ "@eslinted/defaults": "12.8.1",
37
37
  "@html-eslint/eslint-plugin": "0.44.0",
38
38
  "@stylistic/eslint-plugin": "5.2.3",
39
39
  "eslint-plugin-chai-expect": "3.1.0",
@@ -56,18 +56,23 @@
56
56
  "scripts": {
57
57
  "clean": "cmd --% /c \"(if exist dist rmdir /s /q dist) & (if exist build rmdir /s /q build) & (if exist .svelte-kit rmdir /s /q .svelte-kit) & (if exist .eslintcache del /f /q .eslintcache)\" || rm -rf dist build .svelte-kit .eslintcache",
58
58
  "prebuild": "npm run clean",
59
- "build": "tsc && ts-add-js-extension --dir=dist",
59
+ "build": "cmd --% /c \"(if exist svelte.config.js (npm run build:svelte) else (npm run build:ts))\" || npm run build-unix",
60
+ "build-unix": "if [ -f svelte.config.js ]; then npm run build:svelte; else npm run build:ts; fi",
61
+ "build:ts": "tsc && ts-add-js-extension --dir=dist",
60
62
  "build:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && vite build",
61
63
  "postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
62
- "lint": "eslint --cache --fix \"{,{src,tests,static,typings,public,tools,.github,.vscode}/**/}*.{{,[cm]}[jt]s,svelte,html,css,json{,c},code-snippets,y{,a}ml}\"",
64
+ "lint": "eslint --cache --fix",
63
65
  "pretest": "npm run build",
64
- "test": "mocha",
66
+ "test": "npm run --if-present test:mocha",
67
+ "test:mocha": "mocha",
65
68
  "prestart": "npm test",
66
- "start": "node .",
69
+ "start": "cmd --% /c \"(if exist svelte.config.js (npm run start:svelte) else (npm run start:ts))\" || npm run start-unix",
70
+ "start-unix": "if [ -f svelte.config.js ]; then npm run start:svelte; else npm run start:ts; fi",
71
+ "start:ts": "node .",
67
72
  "start:svelte": "vite preview --open",
68
73
  "prepublishOnly": "npm test",
69
- "postpublish": "cmd --% /c \"for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest\" || npm run postpublish:default",
70
- "postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
74
+ "postpublish": "cmd --% /c \"for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest\" || npm run postpublish-unix",
75
+ "postpublish-unix": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
71
76
  "predeploy": "npm test",
72
77
  "deploy": ""
73
78
  },