From 2866d88cde10d626f81e13348dea02c5a13d0df8 Mon Sep 17 00:00:00 2001 From: luhc228 Date: Thu, 11 Apr 2024 10:17:24 +0800 Subject: [PATCH] chore: update templates of import source (#106) --- packages/template-pkg-monorepo-react/CHANGELOG.md | 4 ++++ packages/template-pkg-monorepo-react/package.json | 2 +- .../template/component/packages/component-a/dev/index.tsx | 2 +- .../template/component/packages/component-b/dev/index.tsx | 2 +- packages/template-pkg-react/CHANGELOG.md | 4 ++++ packages/template-pkg-react/package.json | 2 +- packages/template-pkg-react/template/component/dev/index.tsx | 2 +- 7 files changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/template-pkg-monorepo-react/CHANGELOG.md b/packages/template-pkg-monorepo-react/CHANGELOG.md index 01aa71c..5e6dc26 100644 --- a/packages/template-pkg-monorepo-react/CHANGELOG.md +++ b/packages/template-pkg-monorepo-react/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.1.2 + +- [chore] import `esm` instead of `src` code + ## 1.1.1 - [chore] rename internal -> isAliInternal diff --git a/packages/template-pkg-monorepo-react/package.json b/packages/template-pkg-monorepo-react/package.json index 3b9e640..d746ed6 100644 --- a/packages/template-pkg-monorepo-react/package.json +++ b/packages/template-pkg-monorepo-react/package.json @@ -1,6 +1,6 @@ { "name": "@ice/template-pkg-monorepo-react", - "version": "1.1.1", + "version": "1.1.2", "files": [ "template", "!template/component/build", diff --git a/packages/template-pkg-monorepo-react/template/component/packages/component-a/dev/index.tsx b/packages/template-pkg-monorepo-react/template/component/packages/component-a/dev/index.tsx index d792674..62d86c3 100644 --- a/packages/template-pkg-monorepo-react/template/component/packages/component-a/dev/index.tsx +++ b/packages/template-pkg-monorepo-react/template/component/packages/component-a/dev/index.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import Mod from '../src'; +import Mod from '../esm'; export default () => { return ; diff --git a/packages/template-pkg-monorepo-react/template/component/packages/component-b/dev/index.tsx b/packages/template-pkg-monorepo-react/template/component/packages/component-b/dev/index.tsx index d792674..62d86c3 100644 --- a/packages/template-pkg-monorepo-react/template/component/packages/component-b/dev/index.tsx +++ b/packages/template-pkg-monorepo-react/template/component/packages/component-b/dev/index.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import Mod from '../src'; +import Mod from '../esm'; export default () => { return ; diff --git a/packages/template-pkg-react/CHANGELOG.md b/packages/template-pkg-react/CHANGELOG.md index 2af01e1..e2c259d 100644 --- a/packages/template-pkg-react/CHANGELOG.md +++ b/packages/template-pkg-react/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.3.2 + +- [chore] import `esm` instead of `src` code + ## 1.3.1 - [chore] rename internal -> isAliInternal diff --git a/packages/template-pkg-react/package.json b/packages/template-pkg-react/package.json index 17cb175..be4ee51 100644 --- a/packages/template-pkg-react/package.json +++ b/packages/template-pkg-react/package.json @@ -1,6 +1,6 @@ { "name": "@ice/template-pkg-react", - "version": "1.3.1", + "version": "1.3.2", "files": [ "template" ], diff --git a/packages/template-pkg-react/template/component/dev/index.tsx b/packages/template-pkg-react/template/component/dev/index.tsx index d792674..62d86c3 100644 --- a/packages/template-pkg-react/template/component/dev/index.tsx +++ b/packages/template-pkg-react/template/component/dev/index.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import Mod from '../src'; +import Mod from '../esm'; export default () => { return ;