From 1be3811dee452a8ca3a97b6262b5e4c0c54480dc Mon Sep 17 00:00:00 2001 From: Paul Henschel Date: Tue, 6 Oct 2020 13:42:54 +0200 Subject: [PATCH] remove example from npm --- .npmignore | 2 +- cli.js | 2 +- src/components/App.js | 2 +- src/components/Test.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.npmignore b/.npmignore index 56bef8c..4949f09 100644 --- a/.npmignore +++ b/.npmignore @@ -1 +1 @@ -examples/ \ No newline at end of file +example/ \ No newline at end of file diff --git a/cli.js b/cli.js index 5c576bb..381b37e 100755 --- a/cli.js +++ b/cli.js @@ -5,7 +5,7 @@ const importJsx = require('import-jsx') const { render } = require('ink') const meow = require('meow') -const App = importJsx('./src/components/App.js') +const App = importJsx('./src/components/App') const cli = meow( ` diff --git a/src/components/App.js b/src/components/App.js index 88001e5..fc6361c 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -3,7 +3,7 @@ const React = require('react') const { Text, Box } = require('ink') const importJsx = require('import-jsx') const gltfjsx = require('../gltfjsx') -const ErrorBoundary = importJsx('./ErrorBoundary.js') +const ErrorBoundary = importJsx('./ErrorBoundary') function Conversion({ file, ...config }) { let nameExt = file.match(/[-_\w]+[.][\w]+$/i)[0] diff --git a/src/components/Test.js b/src/components/Test.js index 301f795..3602899 100644 --- a/src/components/Test.js +++ b/src/components/Test.js @@ -5,7 +5,7 @@ const importJsx = require('import-jsx') const fg = require('fast-glob') const fs = require('fs-extra') const gltfjsx = require('../gltfjsx') -const ErrorBoundary = importJsx('./ErrorBoundary.js') +const ErrorBoundary = importJsx('./ErrorBoundary') fs.removeSync('.test') fs.mkdirSync('.test')