Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from knapsack-cloud/merge-upstream
Browse files Browse the repository at this point in the history
Merge upstream changes to remove dependency on shared types
  • Loading branch information
brittanysmart authored Sep 26, 2023
2 parents 9c9fe1e + 35caf67 commit ff0f716
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 290 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1539,4 +1539,4 @@

---

# v0.0.6 (Fri Oct 01 2021)
# v0.0.6 (Fri Oct 01 2021)
3 changes: 1 addition & 2 deletions knapsack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const {
} = require('@knapsack/plugin-changelog-md');
const { version } = require('./lerna.json');

const sharedTypesDir = join(__dirname, './packages/shared-types/dist');
const DesignTokenDir = join(__dirname, './packages/design-tokens/dist');

module.exports = configureKnapsack({
Expand All @@ -39,7 +38,7 @@ module.exports = configureKnapsack({
},
},
},
dist: sharedTypesDir,
dist: './dist',
public: join(__dirname, 'ks-public/'),
data: './data',
version,
Expand Down
4 changes: 1 addition & 3 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"$schema": "http://json.schemastore.org/lerna",
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
"packages/*"
],
"packages": ["packages/*"],
"version": "0.1.55",
"command": {
"version": {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"scripts": {
"clean": "lerna run clean && rm -rf ./ks-public/dist",
"build": "run-s -l prep ks:build",
"prep": "run-s -l prep:tokens prep:styles prep:wc prep:meta prep:react",
"prep:meta": "KNAPSACK_LOG_LEVEL=error yarn knapsack build:meta",
"prep": "run-s -l prep:tokens prep:styles prep:wc prep:react",
"prep:tokens": "[ -d ./packages/design-tokens/dist ] || yarn knapsack build:tokens",
"prep:styles": "[ -d ./packages/styles/dist ] || yarn --cwd ./packages/styles build",
"prep:react": "[ -d ./packages/react/dist ] || yarn --cwd ./packages/react build",
Expand Down
1 change: 0 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
},
"dependencies": {
"@knapsack-cloud/workshop-demo-design-tokens": "^0.1.55",
"@knapsack-cloud/workshop-demo-shared-types": "^0.1.55",
"@knapsack-cloud/workshop-demo-styles": "^0.1.55",
"classnames": "^2.3.1"
},
Expand Down
8 changes: 7 additions & 1 deletion packages/react/src/author/author.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import * as React from 'react';
import cn from 'classnames';
import { AuthorProps } from '@knapsack-cloud/workshop-demo-shared-types';

export interface AuthorProps {
date?: string;
read?: string;
imgSrc?: string;
children?: React.ReactNode;
}

export const Author: React.FC<AuthorProps> = ({
imgSrc,
Expand Down
10 changes: 9 additions & 1 deletion packages/react/src/layout/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import * as React from 'react';
import { LayoutProps } from '@knapsack-cloud/workshop-demo-shared-types';

export interface LayoutProps {
bandTitle?: string;
bandContent?: string;
/**
* undefined. Only use: author, button, card
*/
children?: React.ReactNode;
}

export const Layout: React.FC<LayoutProps> = ({
bandTitle,
Expand Down
7 changes: 6 additions & 1 deletion packages/react/src/top-nav/top-nav.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import * as React from 'react';
import { TopNavProps } from '@knapsack-cloud/workshop-demo-shared-types';

export interface TopNavProps {
logo?: string;
links?: string[];
button?: string;
}

export const TopNav: React.FC<TopNavProps> = ({
button,
Expand Down
240 changes: 0 additions & 240 deletions packages/shared-types/CHANGELOG.md

This file was deleted.

20 changes: 0 additions & 20 deletions packages/shared-types/README.md

This file was deleted.

18 changes: 0 additions & 18 deletions packages/shared-types/package.json

This file was deleted.

0 comments on commit ff0f716

Please sign in to comment.