Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remix-flat-routes

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remix-flat-routes - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

21

dist/cli.js

@@ -0,1 +1,18 @@

#!/usr/bin/env node
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var fs = __toESM(require("fs"));
var import_migrate = require("./migrate");

@@ -15,2 +32,6 @@ main();

}
if (!fs.existsSync(sourceDir)) {
console.error(`source directory '${sourceDir}' does not exist`);
process.exit(1);
}
let options = { convention: "flat-files" };

@@ -17,0 +38,0 @@ for (let option of argv.slice(2)) {

4

package.json
{
"name": "remix-flat-routes",
"version": "0.2.0",
"version": "0.2.1",
"description": "Package for generating routes using flat convention",
"main": "dist/cli.js",
"main": "dist/index.js",
"bin": {

@@ -7,0 +7,0 @@ "migrate-flat-routes": "dist/cli.js"

@@ -43,2 +43,9 @@ # Remix Flat Routes

Example:
npx migrate-flat-routes ./app/routes ./app/flatroutes --convention=flat-folders
NOTE:
sourceDir and targetDir are relative to project roo
Options:

@@ -45,0 +52,0 @@ --convention=<convention>

@@ -0,1 +1,4 @@

#!/usr/bin/env node
import * as fs from 'fs'
import { migrate, MigrateOptions } from './migrate'

@@ -19,2 +22,7 @@

if (!fs.existsSync(sourceDir)) {
console.error(`source directory '${sourceDir}' does not exist`)
process.exit(1)
}
let options: MigrateOptions = { convention: 'flat-files' }

@@ -21,0 +29,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc