Skip to content

Commit

Permalink
fix(blade): change re-exports to .js (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamleshchandnani authored Jul 26, 2021
1 parent 8374dc1 commit 26e6302
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ coverage
# build direcotries
**/docs
**/build
packages/blade/components.ts
packages/blade/components.js
packages/blade/components.d.ts
packages/blade/tokens.ts
packages/blade/tokens.js
packages/blade/tokens.d.ts
packages/blade/utils.ts
packages/blade/utils.js
packages/blade/utils.d.ts

#temporary ignore
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ coverage
# build direcotries
**/docs
**/build
packages/blade/components.ts
packages/blade/components.js
packages/blade/components.d.ts
packages/blade/tokens.ts
packages/blade/tokens.js
packages/blade/tokens.d.ts
packages/blade/utils.ts
packages/blade/utils.js
packages/blade/utils.d.ts

# misc
Expand Down
9 changes: 6 additions & 3 deletions packages/blade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
},
"files": [
"build",
"components.ts",
"tokens.ts",
"utils.ts"
"components.d.ts",
"components.js",
"tokens.d.ts",
"tokens.js",
"utils.d.ts",
"utils.js"
],
"exports": {
"./components": {
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/scripts/generateRootImports.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ try {
exportCategories.forEach((exportCategory) => {
// generate root export for js
const exportCategoryContent = `export * from './${buildDirectory}/${exportCategory}';\n`;
const exportCategoryFile = path.resolve(__dirname, `../${exportCategory}.ts`);
const exportCategoryFile = path.resolve(__dirname, `../${exportCategory}.js`);
fs.writeFileSync(exportCategoryFile, exportCategoryContent);

// generate root export for typings
Expand Down

1 comment on commit 26e6302

@vercel
Copy link

@vercel vercel bot commented on 26e6302 Jul 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.