Skip to content

Commit

Permalink
fix: update tcm cli to fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Code-Monkey committed May 3, 2022
1 parent 995dc4a commit 0d9f1e1
Show file tree
Hide file tree
Showing 28 changed files with 131 additions and 363 deletions.
34 changes: 31 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"install:cms": "cd platforms/react-cms && yarn",
"build:cms": "cd platforms/react-cms && yarn build",
"build:tcm": "cd packages/tcm-cli && yarn build",
"build": "yarn build:tcm && yarn lerna:link && lerna run build --scope @aw-web-design/react-feather --stream",
"build": "yarn build:tcm && yarn lerna:link && lerna run build --stream",
"lerna:link": "lerna link",
"lerna:changed": "lerna changed",
"lerna:version": "lerna version --conventional-commits --exact --yes",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/molecules/accordion/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Accordion: FC<PropsWithChildren<Props>> = ({
h='12'
w='full'
strong
iconName='Plus'
iconName='plus'
justifyContent='flex-start'
className='accordion'
onClick={() => setIsOpen(prevState => !prevState)}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/primatives/icon/Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FeatherIcon, {IconTypes} from '@aw-web-design/react-feather';
import FeatherIcon, { IconTypes } from '@aw-web-design/react-feather';
import * as React from 'react';
const { memo } = React;

Expand Down
6 changes: 6 additions & 0 deletions packages/components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"include": ["src", "types"],
"exclude": [
"src/**/*.spec.tsx",
"src/**/*.test.tsx",
"src/**/*.spec.ts",
"src/**/*.test.ts"
],
"compilerOptions": {
"module": "ESNext",
"target": "ESNext",
Expand Down
5 changes: 2 additions & 3 deletions packages/memoize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"description": "A memoization library which only remembers the latest invocation",
"type": "module",
"exports": {
"require": "./dist/memoize.cjs.js",
"import": "./dist/memoize.esm.js"
"import": "./dist/index.js"
},
"typings": "dist/index.d.ts",
"scripts": {
Expand All @@ -31,7 +30,7 @@
"url": "https://github.com/alexreardon/memoize-one/issues"
},
"dependencies": {
"@aw-web-design/tcm-cli": "3.2.5"
"@aw-web-design/tcm-cli": "3.2.6"
},
"devDependencies": {
"lodash": "4.17.21",
Expand Down
6 changes: 6 additions & 0 deletions packages/memoize/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"include": ["src", "types"],
"exclude": [
"src/**/*.spec.tsx",
"src/**/*.test.tsx",
"src/**/*.spec.ts",
"src/**/*.test.ts"
],
"compilerOptions": {
"module": "ESNext",
"target": "ESNext",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-feather/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"clear": "tcm test --clearCache",
"lint": "tcm lint",
"prebuild": "node generate.js",
"build": "tcm build --format esm",
"build": "tcm build",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules tcm test --no-cache"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-feather/src/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as React from 'react';
const { lazy } = React;

import { default as HelpCircle } from './icons/help-circle';
import IconTypes from './iconTypes';
import { IconProps } from './types';
import IconTypes from "./iconTypes";

export interface Props extends IconProps {
name: IconTypes;
Expand Down
6 changes: 3 additions & 3 deletions packages/react-feather/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Icon from './Icon';
import type IconTypes from "./iconTypes";
import type IconTypes from './iconTypes';

import HelpCircle from './icons/help-circle';
export { IconTypes, HelpCircle };
export * from './icons';
export { IconTypes };

export default Icon;
10 changes: 8 additions & 2 deletions packages/react-feather/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"include": ["src", "types"],
"exclude": [
"src/**/*.spec.tsx",
"src/**/*.test.tsx",
"src/**/*.spec.ts",
"src/**/*.test.ts"
],
"compilerOptions": {
"module": "ESNext",
"target": "ESNext",
"moduleResolution": "Node",
"allowJs": true,
"jsx": "react",
"importHelpers": true,
"outDir": "dist",
"rootDir": "src",
"outDir": "./dist",
"rootDir": "./src",
"declaration": true,
"noUnusedLocals": true,
"skipLibCheck": true,
Expand Down
6 changes: 6 additions & 0 deletions packages/react-lazy-named/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"include": ["src", "types"],
"exclude": [
"src/**/*.spec.tsx",
"src/**/*.test.tsx",
"src/**/*.spec.ts",
"src/**/*.test.ts"
],
"compilerOptions": {
"module": "ESNext",
"target": "ESNext",
Expand Down
6 changes: 6 additions & 0 deletions packages/react-textfit/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"include": ["src", "types"],
"exclude": [
"src/**/*.spec.tsx",
"src/**/*.test.tsx",
"src/**/*.spec.ts",
"src/**/*.test.ts"
],
"compilerOptions": {
"module": "ESNext",
"target": "ESNext",
Expand Down
11 changes: 3 additions & 8 deletions packages/styled-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"license": "MIT",
"name": "@aw-web-design/styled-system",
"exports": {
"require": "./dist/styled-system.cjs.js",
"import": "./dist/styled-system.esm.js"
"import": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"type": "module",
Expand All @@ -26,11 +25,7 @@
"author": "The-Code-Monkey",
"size-limit": [
{
"path": "dist/styled-system.cjs.production.min.js",
"limit": "10 KB"
},
{
"path": "dist/styled-system.esm.js",
"path": "dist/index.js",
"limit": "10 KB"
}
],
Expand All @@ -41,7 +36,7 @@
"typescript": "4.6.4"
},
"dependencies": {
"@aw-web-design/tcm-cli": "3.2.5",
"@aw-web-design/tcm-cli": "3.2.6",
"@aw-web-design/memoize": "1.0.1",
"@emotion/is-prop-valid": "1.1.2",
"csstype": "3.0.11"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { allProps, shouldForwardProp, sfp } from '..';
import { jest } from "@jest/globals";

import { allProps, shouldForwardProp, sfp } from '../';

describe('shouldForwardProp', () => {
it('should return true for valid HTML attributes', () => {
Expand Down
6 changes: 6 additions & 0 deletions packages/styled-system/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"include": ["src", "types"],
"exclude": [
"src/**/*.spec.tsx",
"src/**/*.test.tsx",
"src/**/*.spec.ts",
"src/**/*.test.ts"
],
"compilerOptions": {
"module": "ESNext",
"target": "ESNext",
Expand Down
9 changes: 2 additions & 7 deletions packages/tcm-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"keywords": [
"react",
"typescript",
"bundle",
"esbuild"
"bundle"
],
"bin": {
"tcm": "dist/index.js"
Expand Down Expand Up @@ -43,7 +42,6 @@
"colorette": "2.0.16",
"confusing-browser-globals": "1.0.11",
"enquirer": "2.3.6",
"esbuild": "0.14.38",
"eslint": "8.14.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-react-app": "^7.0.1",
Expand Down Expand Up @@ -74,14 +72,14 @@
"shelljs": "0.8.5",
"sort-package-json": "1.55.0",
"tiny-glob": "0.2.9",
"glob": "8.0.1",
"ts-jest": "27.1.4",
"ts-node": "10.7.0",
"tslib": "2.4.0",
"type-fest": "2.12.2",
"typescript": "4.6.3"
},
"devDependencies": {
"@rtvision/esbuild-dynamic-import": "0.1.5",
"@commitlint/cli": "16.2.4",
"@commitlint/config-conventional": "16.2.4",
"@types/color": "3.0.3",
Expand Down Expand Up @@ -110,9 +108,6 @@
"tiny-invariant": "1.2.0",
"tiny-warning": "1.0.3"
},
"resolutions": {
"esbuild": "0.14.38"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
Expand Down
3 changes: 1 addition & 2 deletions packages/tcm-cli/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export const paths = {
appErrorsJson: resolveApp('errors/codes.json'),
appErrors: resolveApp('errors'),
appDist: resolveApp('dist'),
appConfigJs: resolveApp('tcm.config.js'),
appConfigTs: resolveApp('tcm.config.ts'),
appConfigJson: resolveApp('tcm.config.json'),
jestConfig: resolveApp('jest.config.js'),
progressEstimatorCache: resolveApp('node_modules/.cache/.progress-estimator'),
};
Loading

0 comments on commit 0d9f1e1

Please sign in to comment.