Browse Source

downgrade to working parcel version, fix TS alias paths

Klaudiusz Dembler 4 years ago
parent
commit
4bf15d767e
3 changed files with 442 additions and 460 deletions
  1. 4 4
      packages/app/package.json
  2. 9 13
      packages/app/tsconfig.json
  3. 429 443
      yarn.lock

+ 4 - 4
packages/app/package.json

@@ -20,7 +20,7 @@
 		"start": "parcel public/index.html",
 		"build": "parcel build public/index.html",
 		"dev": "parcel public/index.html",
-		"storybook": "start-storybook -p 6006 -c src/shared/.storybook",
+		"storybook": "start-storybook -p 6006 --quiet -c src/shared/.storybook",
 		"build-storybook": "build-storybook -c src/shared/.storybook",
 		"test": "echo \"Error: run tests from root\" && exit 1",
 		"chromatic": "chromatic --project-token=qq8aetz26u"
@@ -30,8 +30,8 @@
 	},
 	"dependencies": {
 		"@emotion/core": "^10.0.28",
-		"@parcel/transformer-svg-react": "^2.0.0-nightly.1739",
-		"@parcel/transformer-svgo": "^2.0.0-nightly.1739",
+		"@parcel/transformer-svg-react": "2.0.0-beta.1",
+		"@parcel/transformer-svgo": "2.0.0-beta.1",
 		"@reach/router": "^1.3.3",
 		"@types/reach__router": "^1.3.5",
 		"@types/react": "^16.9.36",
@@ -40,7 +40,7 @@
 		"@types/redux": "^3.6.0",
 		"chromatic": "^4.0.3",
 		"emotion-normalize": "^10.1.0",
-		"parcel": "^2.0.0-beta.1",
+		"parcel": "2.0.0-beta.1",
 		"react": "^16.13.1",
 		"react-dom": "^16.13.1",
 		"react-player": "^2.2.0",

+ 9 - 13
packages/app/tsconfig.json

@@ -2,25 +2,21 @@
 	"extends": "../../tsconfig.json",
 
 	"compilerOptions": {
-		"baseUrl": "./",
+		"baseUrl": "./src",
 		"declaration": true,
 		"declarationDir": "dist",
 		"lib": ["DOM", "ES2019"],
 		"paths": {
-			"components": ["src/components"],
-			"shared": ["src/shared"],
-			"shared/*": ["src/shared/*"],
-			"store": ["src/store"],
-			"theme": ["src/theme"],
-			"views": ["src/views"]
+			"components": ["components"],
+			"shared": ["shared"],
+			"shared/*": ["shared/*"],
+			"store": ["store"],
+			"theme": ["theme"],
+			"views": ["views"]
 		}
 	},
 
-	"exclude": [
-		"node_modules", "dist", "src/shared/stories"
-	],
+	"exclude": ["node_modules", "dist", "src/shared/stories"],
 
-	"include": [
-		"src/shared/icons/types.d.ts"
-	]
+	"include": ["src/**/*.tsx", "src/**/*.ts"]
 }

File diff suppressed because it is too large
+ 429 - 443
yarn.lock


Some files were not shown because too many files changed in this diff