Browse Source

fix example

sainw 3 years ago
parent
commit
87187dc3bc
3 changed files with 8 additions and 7 deletions
  1. 4 4
      example/package-lock.json
  2. 1 1
      example/package.json
  3. 3 2
      example/src/App.js

+ 4 - 4
example/package-lock.json

@@ -19,7 +19,7 @@
         "@babel/helper-plugin-utils": "^7.8.0"
       }
     },
-    "mokkon-reactjs": {
+    "@mokkon/reactjs": {
       "version": "file:..",
       "dependencies": {
         "@babel/code-frame": {
@@ -28706,7 +28706,7 @@
       }
     },
     "react": {
-      "version": "file:https:/registry.npmjs.org/react/-/react-16.14.0.tgz",
+      "version": "file:../node_modules/react",
       "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==",
       "requires": {
         "loose-envify": "^1.1.0",
@@ -28750,7 +28750,7 @@
       }
     },
     "react-dom": {
-      "version": "file:https:/registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz",
+      "version": "file:../node_modules/react-dom",
       "integrity": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==",
       "requires": {
         "loose-envify": "^1.1.0",
@@ -28804,7 +28804,7 @@
       }
     },
     "react-scripts": {
-      "version": "file:https:/registry.npmjs.org/react-scripts/-/react-scripts-3.4.4.tgz",
+      "version": "file:../node_modules/react-scripts",
       "integrity": "sha512-7J7GZyF/QvZkKAZLneiOIhHozvOMHey7hO9cdO9u68jjhGZlI8hDdOm6UyuHofn6Ajc9Uji5I6Psm/nKNuWdyw==",
       "requires": {
         "@babel/core": "7.9.0",

+ 1 - 1
example/package.json

@@ -13,7 +13,7 @@
     "react": "file:../node_modules/react",
     "react-dom": "file:../node_modules/react-dom",
     "react-scripts": "file:../node_modules/react-scripts",
-    "mokkon-reactjs": "file:.."
+    "@mokkon/reactjs": "file:.."
   },
   "devDependencies": {
     "@babel/plugin-syntax-object-rest-spread": "^7.8.3"

+ 3 - 2
example/src/App.js

@@ -1,7 +1,8 @@
 import React from 'react'
 
-import { List } from 'mokkon-reactjs'
-import 'mokkon-reactjs/dist/index.css'
+import { List } from '@mokkon/reactjs'
+import '@mokkon/reactjs/dist/index.css'
+
 
 const App = () => {
   const pediatricians = [