osuresearch / mrm-preset-osuresearch

OSU Research preset and tasks for Mrm
MIT License
0 stars 0 forks source link

react-package codemod fails during alias policies task #1

Closed McManning closed 1 year ago

McManning commented 1 year ago

Console dump:

❯ npx mrm react-package --preset osuresearch
Running alias react-package...
Running init...
? Enter the name of the default branch main
? Select the contributor policy you want to use Allow only OSU staff, students, and faculty
? Select the OSU data classification for your project S1: Public Institutional Data
? Enter an email or website for reporting security issues ordevelopment@osu.edu
? Enter an email or website for reporting conduct issues ordevelopment@osu.edu
Update package.json
Running react...
Installing @types/react, @types/react-dom, microbundle, react, react-dom, and typescript...
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead

added 474 packages, and audited 475 packages in 12s

83 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
Update package.json
Create tsconfig.json
Create src/index.package.ts
Running alias policies...
C:\Users\cmcma\AppData\Local\npm-cache\_npx\3547fb6ad2b19488\node_modules\mrm\bin\mrm.js:55
                throw err;
                ^

Error: Cannot find module '../utils/mergeConfigs'
Require stack:
- C:\Users\cmcma\AppData\Local\npm-cache\_npx\27908\node_modules\mrm-preset-osuresearch\contributing\index.js
- C:\Users\cmcma\AppData\Local\npm-cache\_npx\3547fb6ad2b19488\node_modules\mrm\src\index.js
- C:\Users\cmcma\AppData\Local\npm-cache\_npx\3547fb6ad2b19488\node_modules\mrm\bin\mrm.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
    at Function.Module._load (node:internal/modules/cjs/loader:833:27)
    at Module.require (node:internal/modules/cjs/loader:1057:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (C:\Users\cmcma\AppData\Local\npm-cache\_npx\27908\node_modules\mrm-preset-osuresearch\contributing\index.js:7:22)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Module.require (node:internal/modules/cjs/loader:1057:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\cmcma\\AppData\\Local\\npm-cache\\_npx\\27908\\node_modules\\mrm-preset-osuresearch\\contributing\\index.js',
    'C:\\Users\\cmcma\\AppData\\Local\\npm-cache\\_npx\\3547fb6ad2b19488\\node_modules\\mrm\\src\\index.js',
    'C:\\Users\\cmcma\\AppData\\Local\\npm-cache\\_npx\\3547fb6ad2b19488\\node_modules\\mrm\\bin\\mrm.js'
  ]
}
McManning commented 1 year ago

Oh, it's because I omitted utils/* from the package.json files rule. Herp.

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: