Skip to content

Commit 9754ecc

Browse files
authored
refactor: import from workspace (#14)
1 parent 85d0466 commit 9754ecc

File tree

17 files changed

+66
-55
lines changed

17 files changed

+66
-55
lines changed

packages/core/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from "packages/runtime";
1+
export * from "@jwcjs/runtime";
22
export * from "./src";

packages/core/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,10 @@
3333
"esbuild": "^0.16.9",
3434
"rollup": "^3.7.4",
3535
"rollup-plugin-esbuild": "^5.0.0",
36-
"vite": "^4.0.1"
37-
},
38-
"dependencies": {
36+
"vite": "^4.0.1",
3937
"@jwcjs/reactively": "workspace:^1.0.0",
4038
"@jwcjs/runtime": "workspace:^1.0.0",
41-
"shared": "workspace:^1.0.0",
39+
"@jwcjs/shared": "workspace:^1.0.0",
4240
"reflect-metadata": "^0.1.13",
4341
"rollup-plugin-ts": "^3.0.2"
4442
}

packages/core/rollup.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default defineConfig({
1111
plugins: [
1212
nodeResolve(),
1313
typescript({
14-
exclude: "../starter-vite-ts/**",
1514
tsconfig: "../../tsconfig.json",
1615
}),
1716
minify(),

packages/core/src/decorators/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CustomElementProps } from "shared";
1+
import { CustomElementProps } from "@jwcjs/shared";
22

33
export function Component(options: CustomElementProps) {
44
return function (_class: any) {

packages/core/src/decorators/event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineEvent } from "packages/reactively";
1+
import { defineEvent } from "@jwcjs/reactively";
22

33
export function Event(event: string): MethodDecorator {
44
return (target, key, descriptor) => {

packages/core/src/decorators/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineWatcher } from "packages/reactively";
2-
import { WatcherOptions } from "shared";
1+
import { defineWatcher } from "@jwcjs/reactively";
2+
import { WatcherOptions } from "@jwcjs/shared";
33

44
export * from "./props";
55
export * from "./event";

packages/core/src/decorators/props.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineProps } from "packages/reactively";
2-
import { PropOptions } from "shared";
1+
import { defineProps } from "@jwcjs/reactively";
2+
import { PropOptions } from "@jwcjs/shared";
33

44
export function Prop(options: PropOptions): PropertyDecorator {
55
return (target, key) => {

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import "reflect-metadata";
22

33
export * from "./wc-class";
4-
export * from "shared";
4+
export * from "@jwcjs/shared";
55
export * from "./decorators";

packages/core/src/wc-class.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { createCSSElement, defineProxy } from "packages/reactively";
2-
import { createElement, diff, removeAttrs } from "packages/runtime";
1+
import { createCSSElement, defineProxy } from "@jwcjs/reactively";
2+
import { createElement, diff, removeAttrs } from "@jwcjs/runtime";
33
import {
44
COMPONENT_PROP_METADATA_KEY,
55
JwcElement,
66
PropOptions,
77
WatcherOptions,
8-
} from "shared";
8+
} from "@jwcjs/shared";
99

1010
/**
1111
* The map of adoptedStyleSheets.

packages/reactively/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "",
1010
"license": "ISC",
1111
"dependencies": {
12-
"shared": "workspace:*"
12+
"@jwcjs/shared": "workspace:*"
1313
}
1414
}

0 commit comments

Comments
 (0)