Skip to content

Commit

Permalink
build: updates back-ported from package migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Jan 4, 2021
1 parent 4bffffc commit 7869420
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
10 changes: 3 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
/.vscode
*.ignore
/dist
/build
/.vscode
/.env
/external-scripts/bin
/next-env.d.ts
/node_modules
/dist
/coverage
/npm.pipe
/tmp-docs
/tmp-docs-diff
/docs-diff
/bundle-stats.json
/CHANGELOG.md.tmp
*.ignore
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ The ideal contributor flow is as follows:
more sense to use `npm install` feel free to use that instead
- If `.env.example` exists, consider copying it to `.env` and configuring
sensible defaults
- If you're using `npm@<=6`, you'll need to install any [peer
dependencies][54] manually. If you're using `npm@>=7`, you may have to
[forcefully][55] allow peer deps to be satisfied by custom forks of
certain packages
3. Before making any changes, ensure all unit tests are passing: `npm run test`
4. _(optional but recommended)_ Create a new branch, usually off `main`
- Example: `git checkout -b contrib-feature-1`
Expand Down Expand Up @@ -421,3 +425,7 @@ which of the following scripts are available for this project.
https://github.com/semantic-release/commit-analyzer/blob/e8c560459d7ef8752180154ed0263ce262aa22a7/lib/default-release-rules.js#L8
[52]: https://github.com/semantic-release/npm#options
[53]: .github/workflows/cleanup.yml
[54]:
https://docs.npmjs.com/cli/v6/configuring-npm/package-json#peerdependencies
[55]:
https://docs.npmjs.com/cli/v7/commands/npm-install#configuration-options-affecting-dependency-resolution-and-tree-design
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@xunnamius/do-not-install",
"version": "7.2.2",
"description": "A dummy package used for testing workflow pipelines. Not to be installed!",
"keywords": [],
"repository": {
"type": "git",
"url": "https://github.com/Xunnamius/workflow-playground"
Expand Down
6 changes: 4 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// This webpack config is used for helping transpile src/ => dist/ as dual
// UMD/CJS2+ES2015
// This webpack config is used to transpile src to dist, compile externals, etc

const debug = require('debug')(`${require('./package.json').name}:webpack-config`);

Expand All @@ -24,6 +23,9 @@ module.exports = {
usedExports: true
},

//externals: [nodeExternals()],
//externalsPresets: { node: true },

resolve: { extensions: ['.ts', '.wasm', '.mjs', '.cjs', '.js', '.json'] },
module: {
rules: [{ test: /\.(ts|js)x?$/, loader: 'babel-loader', exclude: /node_modules/ }]
Expand Down

0 comments on commit 7869420

Please sign in to comment.