@liner-fe/icon 0.0.41 → 0.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @liner-fe/icon
2
2
 
3
+ ## 0.0.42
4
+
5
+ ### Patch Changes
6
+
7
+ - 27547ca: fix: icon import 에러
8
+
3
9
  ## 0.0.41
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,20 @@
1
+ import { defineConfig } from 'tsup';
2
+ import { nodeExternalsPlugin } from 'esbuild-node-externals';
3
+
4
+ export default defineConfig({
5
+ entry: ['index.tsx'],
6
+ outDir: 'lib',
7
+ format: 'cjs',
8
+ bundle: true,
9
+ minify: false,
10
+ keepNames: true,
11
+ clean: true,
12
+ loader: {
13
+ '.ts': 'ts',
14
+ '.tsx': 'tsx',
15
+ },
16
+ tsconfig: './tsconfig.build.json',
17
+ platform: 'neutral',
18
+ dts: true,
19
+ esbuildPlugins: [nodeExternalsPlugin()],
20
+ });
package/index.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import React, { forwardRef } from 'react';
1
+ import { forwardRef } from 'react';
2
2
  import { BasicColorType } from '@liner-fe/design-token-primitive';
3
3
  import { ArrowUpward } from './assets/arrow-upward';
4
4
  import { ArrowDownward } from './assets/arrow-downward';
@@ -188,7 +188,7 @@ import { MoreVertical } from './assets/more-vertical';
188
188
  import { CheckMarkInCircle } from './assets/check-mark-in-circle';
189
189
  import { Star } from './assets/star';
190
190
 
191
- const IconMap = {
191
+ const IconMap: Record<string, React.ForwardRefExoticComponent<any>> = {
192
192
  "arrow-upward": ArrowUpward,
193
193
  "arrow-downward": ArrowDownward,
194
194
  "arrow-back": ArrowBack,
package/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "@liner-fe/icon",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "scripts": {
5
- "build": ""
5
+ "build": "yarn tsup --config ./config/tsup/tsup.config.ts"
6
6
  },
7
7
  "publishConfig": {
8
8
  "access": "public",
9
- "main": "./index.tsx"
9
+ "main": "./lib/index.js"
10
10
  },
11
11
  "files": [
12
12
  "*"
13
13
  ],
14
- "main": "./index.tsx",
14
+ "main": "./lib/index.js",
15
+ "types": "./lib/index.d.ts",
15
16
  "dependencies": {
16
- "@liner-fe/design-token-primitive": "workspace:^"
17
+ "@liner-fe/design-token-primitive": "workspace:^",
18
+ "tsup": "^8.5.0"
17
19
  }
18
20
  }
@@ -0,0 +1,25 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "target": "ESNext",
5
+ "emitDeclarationOnly": true,
6
+ "skipLibCheck": true,
7
+ "allowJs": true,
8
+ "incremental": false,
9
+ "jsx": "react-jsx",
10
+ "rootDir": ".",
11
+ "outDir": "lib",
12
+ "module": "ESNext",
13
+ "esModuleInterop": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "declaration": true,
16
+ "strict": true,
17
+ "noImplicitAny": true,
18
+ "moduleResolution": "Bundler",
19
+ "paths": {
20
+ "@/*": ["./src/*"]
21
+ }
22
+ },
23
+ "include": ["**/*.ts", "**/*.tsx"],
24
+ "exclude": ["node_modules", "lib"]
25
+ }