@local-logic/types 0.1.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.
package/.eslintignore ADDED
@@ -0,0 +1,2 @@
1
+ dist
2
+ node_modules
package/.eslintrc.cjs ADDED
@@ -0,0 +1,21 @@
1
+ module.exports = {
2
+ extends: [
3
+ "@local-logic/eslint-config/base",
4
+ ],
5
+ settings: {
6
+ "import/resolver": {
7
+ typescript: {},
8
+ node: {
9
+ extensions: [".ts"],
10
+ },
11
+ },
12
+ },
13
+ overrides: [
14
+ {
15
+ files: ["**/*.ts"],
16
+ rules: {
17
+ "import/extensions": "off"
18
+ },
19
+ },
20
+ ]
21
+ };
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @local-logic/types
2
+
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 55a50ba8: Added basic types
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @local-logic/types
2
+
3
+ This package holds the public types used across Local Logic apps
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ "*.{js,ts}": ["eslint --fix", "prettier --write"],
3
+ "**/*.ts": () => "tsc -p tsconfig.json --noEmit",
4
+ };
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@local-logic/types",
3
+ "version": "0.1.1",
4
+ "author": "Local Logic",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "license": "ISC",
9
+ "main": "./dist/index.d.js",
10
+ "scripts": {
11
+ "dev": "vite",
12
+ "build": "vite build",
13
+ "lint": "TIMING=1 eslint --ext .js,.jsx,.ts,.tsx .",
14
+ "check-types": "tsc --project ./tsconfig.json --noEmit",
15
+ "prepublishOnly": "yarn run build",
16
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
17
+ },
18
+ "devDependencies": {
19
+ "@local-logic/channel": "*",
20
+ "@local-logic/client": "*",
21
+ "@local-logic/elements-react": "*",
22
+ "@local-logic/eslint-config": "*",
23
+ "@local-logic/lat-client": "*",
24
+ "@local-logic/sdks-app": "*",
25
+ "eslint": "^8.53.0",
26
+ "prettier": "^3.1.0",
27
+ "rollup-plugin-visualizer": "^5.9.2",
28
+ "tsconfig": "*",
29
+ "typescript": "^5.2.2",
30
+ "vite": "^4.5.0",
31
+ "vite-plugin-dts": "^3.6.3",
32
+ "vitest": "^0.34.6"
33
+ }
34
+ }
@@ -0,0 +1,2 @@
1
+ // eslint-disable-next-line import/extensions, import/no-unresolved
2
+ module.exports = require("@local-logic/eslint-config/prettier.config");
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { ChannelEvents, type SDKPropsMappings } from "@local-logic/sdks-app";
package/tsconfig.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "extends": "tsconfig/react-library.json",
3
+ "compilerOptions": {
4
+ "outDir": "dist",
5
+ "declaration": true,
6
+ "declarationMap": true
7
+ },
8
+ "include": [
9
+ "./src/**/*",
10
+ "global.d.ts"
11
+ ],
12
+ "exclude": [
13
+ "dist",
14
+ "build",
15
+ "node_modules"
16
+ ]
17
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,39 @@
1
+ import path from "path";
2
+ import { visualizer } from "rollup-plugin-visualizer";
3
+ import { defineConfig, PluginOption } from "vite";
4
+ import dts from "vite-plugin-dts";
5
+
6
+ // https://vitejs.dev/config/
7
+ export default defineConfig({
8
+ build: {
9
+ lib: {
10
+ entry: {
11
+ index: path.resolve(__dirname, "src/index.ts"),
12
+ },
13
+ name: "LL_Types",
14
+ },
15
+ /**
16
+ * This option will only minify the UMD output. Package users can still see
17
+ * the unminified "index.es.js" output.
18
+ */
19
+ minify: true,
20
+ },
21
+ resolve: {
22
+ alias: {
23
+ "~": path.resolve(__dirname, "./src"),
24
+ },
25
+ },
26
+ plugins: [
27
+ /**
28
+ * Generate typings
29
+ */
30
+ dts({
31
+ insertTypesEntry: true,
32
+ }),
33
+
34
+ // This option MUST come last. Note that build size WILL NOT represent build
35
+ // size in client app because it is not minified (client app should handle
36
+ // minification).
37
+ visualizer({ brotliSize: true, open: !!process.env.STATS }) as PluginOption,
38
+ ],
39
+ });