diff --git a/molstar-extension/.npmignore b/molstar-extension/.npmignore new file mode 100644 index 00000000..fa7182d5 --- /dev/null +++ b/molstar-extension/.npmignore @@ -0,0 +1,2 @@ +*.tsbuildinfo +*.js.map \ No newline at end of file diff --git a/molstar-extension/esbuild.config.js b/molstar-extension/esbuild.config.js index 105bfd1f..fc9d0534 100644 --- a/molstar-extension/esbuild.config.js +++ b/molstar-extension/esbuild.config.js @@ -9,10 +9,10 @@ const console.log(`${ productionMode ? 'production' : 'development' } build`); -const staticFilesPluginOptions = { - src: './src', - dest: './lib', -} +// const staticFilesPluginOptions = { +// src: './src', +// dest: './lib', +// } // const buildLib = await esbuild.context({ // entryPoints: ['src/**/*.ts'], diff --git a/molstar-extension/package.json b/molstar-extension/package.json index 246c0c73..5f8f9a46 100644 --- a/molstar-extension/package.json +++ b/molstar-extension/package.json @@ -18,7 +18,9 @@ "bundle": "npm run init && node ./esbuild.config.js", "build": "npm run bundle -- production", "build-site": "npm run bundle -- production && mkdir ./site && cp ./build/* ./site/.", - "start": "npm run bundle -- development" + "start": "npm run bundle -- development", + "rebuild": "npm run clean && npm run build", + "version": "npm run rebuild && cpx .npmignore lib/" }, "files": [ "lib/",