create-conformal 0.1.5 → 0.1.6
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/LICENSE
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Copyright (c) 2024 by Conformal Authors
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
|
4
|
+
|
|
5
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/package.json
CHANGED
package/package.json.bak
CHANGED
package/template/package.json
CHANGED
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"react-dom": "^18.2.0",
|
|
41
41
|
"typescript": "^5.4.5",
|
|
42
42
|
"vite": "^5.2.9",
|
|
43
|
-
"@conformal/scripts": "^0.1.
|
|
44
|
-
"@conformal/plugin": "^0.1.
|
|
43
|
+
"@conformal/scripts": "^0.1.6",
|
|
44
|
+
"@conformal/plugin": "^0.1.6",
|
|
45
45
|
"rollup-plugin-license": "^3.4.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -3,7 +3,7 @@ module.exports = {
|
|
|
3
3
|
env: { browser: true, es2020: true },
|
|
4
4
|
extends: [
|
|
5
5
|
"eslint:recommended",
|
|
6
|
-
"plugin:@typescript-eslint/
|
|
6
|
+
"plugin:@typescript-eslint/strict-type-checked",
|
|
7
7
|
"plugin:@typescript-eslint/stylistic-type-checked",
|
|
8
8
|
"plugin:react-hooks/recommended",
|
|
9
9
|
"plugin:react/recommended",
|
|
@@ -23,6 +23,7 @@ module.exports = {
|
|
|
23
23
|
argsIgnorePattern: "^_",
|
|
24
24
|
},
|
|
25
25
|
],
|
|
26
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
26
27
|
"react-refresh/only-export-components": [
|
|
27
28
|
"warn",
|
|
28
29
|
{ allowConstantExport: true },
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "es2020",
|
|
4
4
|
"useDefineForClassFields": true,
|
|
5
|
-
"lib": [
|
|
5
|
+
"lib": [
|
|
6
|
+
"es2020",
|
|
7
|
+
"dom",
|
|
8
|
+
"dom.iterable"
|
|
9
|
+
],
|
|
6
10
|
"module": "esnext",
|
|
7
11
|
"skipLibCheck": true,
|
|
8
12
|
/* Bundler mode */
|
|
@@ -15,6 +19,7 @@
|
|
|
15
19
|
"strict": true,
|
|
16
20
|
"noUnusedLocals": true,
|
|
17
21
|
"noUnusedParameters": true,
|
|
18
|
-
"noFallthroughCasesInSwitch": true
|
|
22
|
+
"noFallthroughCasesInSwitch": true,
|
|
23
|
+
"noUncheckedIndexedAccess": true
|
|
19
24
|
}
|
|
20
|
-
}
|
|
25
|
+
}
|
|
@@ -2,6 +2,13 @@ import react from "@vitejs/plugin-react-swc";
|
|
|
2
2
|
import license from "rollup-plugin-license";
|
|
3
3
|
import { join } from "path";
|
|
4
4
|
|
|
5
|
+
const unwrap = (x: string | null, name: string, field: string): string => {
|
|
6
|
+
if (x === null) {
|
|
7
|
+
throw new Error(`Malformed dependency ${name} (${field})`);
|
|
8
|
+
}
|
|
9
|
+
return x;
|
|
10
|
+
};
|
|
11
|
+
|
|
5
12
|
/** @type {import('vite').UserConfig} */
|
|
6
13
|
export default {
|
|
7
14
|
plugins: [
|
|
@@ -15,9 +22,9 @@ export default {
|
|
|
15
22
|
.map(
|
|
16
23
|
(dependency) =>
|
|
17
24
|
`-----
|
|
18
|
-
${dependency.name} ${dependency.version} (${dependency.license})
|
|
25
|
+
${unwrap(dependency.name, "unknown", "name")} ${unwrap(dependency.version, dependency.name!, "version")} (${unwrap(dependency.license, dependency.name!, "license")})
|
|
19
26
|
|
|
20
|
-
${dependency.licenseText}
|
|
27
|
+
${unwrap(dependency.licenseText, dependency.name!, "licenseText")}
|
|
21
28
|
`,
|
|
22
29
|
)
|
|
23
30
|
.join("\n"),
|