Skip to content

Commit

Permalink
[#3] @naverpay/react-pdf 뼈대를 추가합니다
Browse files Browse the repository at this point in the history
  • Loading branch information
2-one-week committed Apr 11, 2024
1 parent 5a2fbd1 commit 3a712c6
Show file tree
Hide file tree
Showing 6 changed files with 1,320 additions and 108 deletions.
1 change: 1 addition & 0 deletions packages/react-pdf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## @naverpay/react-pdf
35 changes: 35 additions & 0 deletions packages/react-pdf/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "@naverpay/react-pdf",
"version": "0.0.0",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/cjs/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"types": "./dist/cjs/index.d.ts"
},
"./package.json": "./package.json"
},
"keywords": [
"naver",
"naverpay",
"pdf",
"react-pdf"
],
"files": [
"dist"
],
"scripts": {
"clean": "rm -rf dist",
"build-declarations": "tsc --declarationDir dist/cjs && tsc --declarationDir dist/esm",
"build": "pnpm run clean && pnpm run build-declarations && rollup -c"
},
"devDependencies": {
"rollup": "^2.79.1",
"@naverpay/tsconfig": "workspace:^",
"@naverpay/rollup": "workspace:^"
},
"dependencies": {}
}
8 changes: 8 additions & 0 deletions packages/react-pdf/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {generateRollupConfig} from '@naverpay/rollup'

module.exports = generateRollupConfig({
packageDir: __dirname,
entrypoint: './src/index.ts',
minify: false,
supportModules: ['cjs', 'esm'],
})
3 changes: 3 additions & 0 deletions packages/react-pdf/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function getRandom() {
return Math.floor(Math.random())
}
15 changes: 15 additions & 0 deletions packages/react-pdf/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "@naverpay/tsconfig/base.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"emitDeclarationOnly": false,
"outDir": "./dist",
"declarationDir": "./dist",
"module": "CommonJS",
"removeComments": false,
"target": "es2017"
},
"include": ["./src"],
"exclude": ["node_modules", "dist"]
}
Loading

0 comments on commit 3a712c6

Please sign in to comment.