-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removing yarn in favour of npm (#464)
* removing yarn in favour of npm * remove yarn lock for storybook * rebuild lock files & remove unused failing import * trying webpack fix --------- Co-authored-by: Reza Rahman <[email protected]>
- Loading branch information
1 parent
cd4d5b3
commit 57c70a6
Showing
41 changed files
with
73,089 additions
and
32,209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,24 +21,24 @@ jobs: | |
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
node-version: 16.x | ||
|
||
- name: Install dependencies | ||
run: yarn && pushd docs; yarn; popd | ||
run: npm ci --legacy-peer-deps --no-audit --no-fund && pushd docs; npm ci --legacy-peer-deps --no-audit --no-fund; popd | ||
|
||
- name: Build tokens | ||
run: yarn build | ||
run: npm run build | ||
|
||
- name: Build experimental tokens | ||
run: yarn build:tokens | ||
run: npm run build:tokens | ||
|
||
- name: Create release pull request or publish to npm | ||
id: changesets | ||
uses: changesets/[email protected] | ||
with: | ||
title: Release Tracking | ||
# This expects you to have a script called release which does a build for your packages and calls changeset publish | ||
publish: yarn release | ||
publish: npm run release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GPR_AUTH_TOKEN_SHARED }} | ||
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ node_modules | |
/dist/ | ||
/tokens-v2-private/ | ||
/tokens-v3-private/ | ||
package-lock.json | ||
yarn.lock | ||
coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const shared = { | ||
__DEV__: "process.env.NODE_ENV !== 'production'", | ||
} | ||
|
||
module.exports = { | ||
development: shared, | ||
test: shared, | ||
production: { | ||
...shared, | ||
__DEV__: 'false', | ||
'process.env.NODE_ENV': "'production'", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const defines = require('./babel-defines') | ||
|
||
exports.onCreateWebpackConfig = ({actions, plugins, getConfig}) => { | ||
const config = getConfig() | ||
// Add our `__DEV__` and `process.env.NODE_ENV` defines | ||
config.plugins.push(plugins.define(defines[process.env.NODE_ENV || 'development'])) | ||
|
||
// Polyfill `path` and stub `fs` for use in the browser | ||
// https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/#webpack-5-node-configuration-changed-nodefs-nodepath- | ||
config.resolve = { | ||
...config.resolve, | ||
alias: { | ||
...config.resolve.alias, | ||
path: require.resolve('path-browserify'), | ||
}, | ||
fallback: { | ||
...config.resolve.fallback, | ||
fs: false, | ||
}, | ||
} | ||
|
||
actions.replaceWebpackConfig(config) | ||
} |
Oops, something went wrong.