Skip to content

Commit

Permalink
frontends: use pkgname
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Aug 4, 2024
1 parent 4aadef7 commit 4870698
Show file tree
Hide file tree
Showing 17 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion packages/eta/src/private/name.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default "@primate/eta";
export default "eta";
1 change: 1 addition & 0 deletions packages/eta/src/private/pkgname.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default "@primate/eta";
4 changes: 2 additions & 2 deletions packages/eta/src/public/default.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import build from "#build";
import default_extension from "#extension";
import name from "#name";
import pkgname from "#pkgname";
import serve from "#serve";

export default ({ extension = default_extension } = {}) => ({
name,
name: pkgname,
build: build(extension),
serve: serve(extension),
});
8 changes: 4 additions & 4 deletions packages/eta/src/public/runtime.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import default_extension from "extension";
import name from "name";
import serve from "serve";
import default_extension from "#extension";
import pkgname from "#pkgname";
import serve from "#serve";

export default ({ extension = default_extension } = {}) => ({
name: `primate:${name}`,
name: pkgname,
serve: serve(extension),
});
2 changes: 1 addition & 1 deletion packages/handlebars/src/private/name.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default "@primate/handlebars";
export default "handlebars";
1 change: 1 addition & 0 deletions packages/handlebars/src/private/pkgname.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default "@primate/handlebars";
4 changes: 2 additions & 2 deletions packages/handlebars/src/public/default.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import build from "#build";
import default_extension from "#extension";
import name from "#name";
import pkgname from "#pkgname";
import serve from "#serve";

export default ({ extension = default_extension } = {}) => ({
name,
name: pkgname,
build: build(extension),
serve: serve(extension),
});
4 changes: 2 additions & 2 deletions packages/handlebars/src/public/runtime.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import default_extension from "#extension";
import name from "#name";
import pkgname from "#pkgname";
import serve from "#serve";

export default ({ extension = default_extension } = {}) => ({
name,
name: pkgname,
serve: serve(extension),
});
2 changes: 1 addition & 1 deletion packages/markdown/src/private/name.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default "@primate/markdown";
export default "markdown";
1 change: 1 addition & 0 deletions packages/markdown/src/private/pkgname.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default "@primate/markdown";
4 changes: 2 additions & 2 deletions packages/markdown/src/public/default.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import build from "#build";
import default_extension from "#extension";
import name from "#name";
import pkgname from "#pkgname";
import serve from "#serve";

export default ({ extension = default_extension } = {}) => ({
name,
name: pkgname,
build: build(extension),
serve: serve(extension),
});
4 changes: 2 additions & 2 deletions packages/markdown/src/public/runtime.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import default_extension from "#extension";
import name from "#name";
import pkgname from "#pkgname";
import serve from "#serve";

export default ({ extension = default_extension } = {}) => ({
name,
name: pkgname,
serve: serve(extension),
});
2 changes: 1 addition & 1 deletion packages/marko/src/private/name.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default "@primate/marko";
export default "marko";
1 change: 1 addition & 0 deletions packages/marko/src/private/pkgname.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default "@primate/marko";
4 changes: 2 additions & 2 deletions packages/marko/src/public/default.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import build from "#build";
import default_extension from "#extension";
import name from "#name";
import pkgname from "#pkgname";
import serve from "#serve";

export default ({ extension = default_extension } = {}) => ({
name,
name: pkgname,
build: build(extension),
serve: serve(extension),
});
4 changes: 2 additions & 2 deletions packages/marko/src/public/runtime.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import default_extension from "#extension";
import name from "#name";
import pkgname from "#pkgname";
import serve from "#serve";

export default ({ extension = default_extension } = {}) => ({
name,
name: pkgname,
serve: serve(extension),
});
4 changes: 0 additions & 4 deletions packages/voby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
"@primate/lt": "./src/private/*.js",
"default": "./src/private/*.js"
},
"#pkg": {
"@primate/lt": "./package.json",
"default": "./package.json"
},
"#build": {
"@primate/lt": "./src/private/build/index.js",
"default": "./src/private/build/index.js"
Expand Down

0 comments on commit 4870698

Please sign in to comment.