diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc3b0288..a1f87804 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,12 +20,10 @@ jobs: run: yarn - name: 'Linting' run: yarn lint - - name: 'Build package' - run: yarn workspace preshape build + - name: 'Build workspace' + run: yarn build - name: 'Prepare PackageJSON for publishing' run: yarn workspace preshape prepare:packageJson - - name: 'Build site' - run: yarn workspace site build - name: 'Publish package' run: yarn deploy:lib env: diff --git a/package.json b/package.json index 9ac79d78..1224dc92 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ ], "scripts": { "build": "yarn workspaces foreach -ptvR --from site run build", + "clean": "yarn workspaces foreach -ptvR --from site run clean", "dev": "yarn workspaces foreach -pviR --from site -j unlimited run dev", "format": "prettier --write .", "lint": "yarn lint:js && yarn lint:css", diff --git a/workspaces/package/.npmignore b/workspaces/package/.npmignore index 68bf0ee6..da42ebd3 100644 --- a/workspaces/package/.npmignore +++ b/workspaces/package/.npmignore @@ -1,2 +1,4 @@ -.svgrrc.js -postcss.config.js +scripts +tsconfig.json +tsconfig.tsbuildinfo +vite.config.ts diff --git a/workspaces/package/package.json b/workspaces/package/package.json index 236f9e89..5ffd7275 100644 --- a/workspaces/package/package.json +++ b/workspaces/package/package.json @@ -10,6 +10,7 @@ "main": "./src/index.ts", "module": "./src/index.ts", "types": "./src/index.ts", + "source": "src", "scripts": { "clean": "rm -rf dist", "build": "yarn clean && tsc && vite build && yarn build:docs && yarn prepare:packageJson", diff --git a/workspaces/site/tsconfig.json b/workspaces/site/tsconfig.json index 2c909f98..1fefffa2 100644 --- a/workspaces/site/tsconfig.json +++ b/workspaces/site/tsconfig.json @@ -28,9 +28,5 @@ "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, - - "paths": { - "preshape": ["../package/src"] - } } }