Skip to content

Commit

Permalink
chore: remove experimental messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kpanot committed Jan 26, 2024
1 parent bcbb716 commit 52eeaa0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
2 changes: 0 additions & 2 deletions packages/@ama-sdk/create/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ npm create @ama-sdk typescript <package-name> -- [...options]

### Yarn

This feature is experimental for yarn package manager

```shell
yarn create @ama-sdk typescript <project-name> [...options]
```
Expand Down
18 changes: 0 additions & 18 deletions packages/@ama-sdk/create/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const binPath = resolve(require.resolve('@angular-devkit/schematics-cli/package.
const args = process.argv.slice(2);
const argv = minimist(args);

const packageManagerEnv = process.env.npm_config_user_agent?.split('/')[0];
let defaultPackageManager = 'npm';
if (packageManagerEnv && ['npm', 'yarn'].includes(packageManagerEnv)) {
defaultPackageManager = packageManagerEnv;
Expand Down Expand Up @@ -46,14 +45,6 @@ const schematicsToRun = [
...(argv['spec-path'] ? [`${schematicsPackage}:typescript-core`] : [])
];

const packageManagerEnv = process.env.npm_config_user_agent?.split('/')[0];
let defaultPackageManager = 'npm';
if (packageManagerEnv && ['npm', 'yarn'].includes(packageManagerEnv)) {
defaultPackageManager = packageManagerEnv;
}

const packageManager = argv['package-manager'] || defaultPackageManager;

const getYarnVersion = () => {
try {
return execSync('yarn --version', {
Expand Down Expand Up @@ -105,15 +96,6 @@ const run = () => {

if (errors.length > 0) {
errors.forEach((err) => console.error(err));
if (packageManagerEnv !== 'npm') {
console.error(`Other package managers than 'npm' are experimental for @ama-sdk create for the time being.
Please use the following command:
'npm create @ama-sdk typescript <package-name> -- [...options]'
https://github.com/AmadeusITGroup/otter/tree/main/packages/%40ama-sdk/create#usage
`);
}
process.exit(1);
}
};
Expand Down
2 changes: 0 additions & 2 deletions packages/@o3r/create/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ npm create @o3r <project-name> -- [...options]

### Yarn

This feature is experimental for yarn package manager

```shell
yarn create @o3r <project-name> [...options]
```

0 comments on commit 52eeaa0

Please sign in to comment.